Package com.sun.tools.corba.se.idl
Class Util
java.lang.Object
com.sun.tools.corba.se.idl.Util
- Direct Known Subclasses:
Util
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic floatabsDelta(float f1, float f2) Compute the absolute value of the difference between two floating-point numbers having single precision.static Stringcapitalize(String lc) static StringgetAbsolutePath(String filename, Vector includePaths) Searches the current user directory and a list of directories for a given short file name and returns its absolute file specification.static StringgetMessage(String key) static StringgetMessage(String key, String fill) static StringgetMessage(String key, String[] fill) static StringFetch the version number of this build of the IDL Parser Framework from the appropriate properties file.static StringgetVersion(String filename) Fetch the version number of this build of the IDL Parser Framework.static booleanisAttribute(String name, Hashtable symbolTable) static booleanstatic booleanstatic booleanisException(String name, Hashtable symbolTable) static booleanisInterface(String name, Hashtable symbolTable) static booleanstatic booleanstatic booleanisParameter(String name, Hashtable symbolTable) static booleanisPrimitive(String name, Hashtable symbolTable) static booleanisSequence(String name, Hashtable symbolTable) static booleanstatic booleanstatic booleanstatic booleanstatic voidregisterMessageFile(String filename) Register a message file.
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
getVersion
Fetch the version number of this build of the IDL Parser Framework from the appropriate properties file.- Returns:
- the version number contained within the appropriate properties file, which indicates the build of this IDL Parser Framework.
-
getVersion
Fetch the version number of this build of the IDL Parser Framework. This method may be called before or after the framework has been initialized. If the framework is inititialized, the version information is extracted from the message properties object; otherwise, it is extracted from the indicated messages file.- Returns:
- the version number.
-
isAttribute
-
isConst
-
isEnum
-
isException
-
isInterface
-
isMethod
-
isModule
-
isParameter
-
isPrimitive
-
isSequence
-
isStruct
-
isString
-
isTypedef
-
isUnion
-
getMessage
-
getMessage
-
getMessage
-
registerMessageFile
Register a message file. This file will be searched for in the CLASSPATH. -
capitalize
-
getAbsolutePath
public static String getAbsolutePath(String filename, Vector includePaths) throws FileNotFoundException Searches the current user directory and a list of directories for a given short file name and returns its absolute file specification.- Returns:
- Absolute file name of a given short filename
- Throws:
FileNotFoundException- The file does not exist in the current user or specified directories.- See Also:
-
java.io.File.getAbsolutePath
-
absDelta
public static float absDelta(float f1, float f2) Compute the absolute value of the difference between two floating-point numbers having single precision.- Returns:
- the absolute value of the difference between two floats.
-