Class Util
java.lang.Object
com.sun.tools.corba.ee.idl.Util
com.sun.tools.corba.ee.idl.toJavaPortable.Util
Class Util is a repository of static members available for general
use by the IDL parser framework and any generator extensions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcollapseName(String name) Collapse primitive type names.static StringcontainerFullName(SymtabEntry container) static booleancorbaLevel(float min, float max) static StringfileName(SymtabEntry entry, NameModifier modifier, String extension) static StringfileName(SymtabEntry entry, String extension) Given a symbol table entry, return the name of the file which should be created.static GenFileStreamgetStream(String name, SymtabEntry entry) static StringFetch the version number of this build of the IDL-to-Java (portable) compiler from the appropriate properties file.static StringhelperName(SymtabEntry entry, boolean qualifiedName) static StringholderName(SymtabEntry entry) static booleanIDLEntity(SymtabEntry entry) static booleanisInterface(String name) static StringjavaName(SymtabEntry entry) Given a SymtabEntry, return the string which should be used for this entry.static StringjavaNativeName(String name) static StringjavaPrimName(String name) static StringjavaQualifiedName(SymtabEntry entry) Given a symtabEntry, return the name of this entry.static voidstatic Stringstatic StringsansArrayInfo(String name) static StringsansArrayInfo(Vector arrayInfo) static voidsetPackageTranslation(Hashtable pkgtrans) static GenFileStreamstream(SymtabEntry entry, NameModifier modifier, String extension) static GenFileStreamstream(SymtabEntry entry, String extension) static StringstripLeadingUnderscores(String string) static StringstripLeadingUnderscoresFromID(String string) static Stringstatic SymtabEntrytypeOf(SymtabEntry entry) static voidwriteInitializer(String indent, String name, String arrayDcl, SymtabEntry entry, PrintWriter stream) static voidwriteInitializer(String indent, String name, String arrayDcl, SymtabEntry entry, String initializer, PrintWriter stream) static voidwritePackage(PrintWriter stream, SymtabEntry entry) static voidwritePackage(PrintWriter stream, SymtabEntry entry, short type) static voidwritePackage(PrintWriter stream, SymtabEntry entry, String name, short type) static voidwriteProlog(PrintWriter stream, String filename) Methods inherited from class com.sun.tools.corba.ee.idl.Util
absDelta, capitalize, getAbsolutePath, getMessage, getMessage, getMessage, getVersion, isAttribute, isConst, isEnum, isException, isInterface, isMethod, isModule, isParameter, isPrimitive, isSequence, isString, isStruct, isTypedef, isUnion, registerMessageResource
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
getVersion
Fetch the version number of this build of the IDL-to-Java (portable) compiler from the appropriate properties file.- Returns:
- the version number of this compiler build.
-
setPackageTranslation
-
isInterface
-
sansArrayInfo
-
sansArrayInfo
-
fileName
Given a symbol table entry, return the name of the file which should be created. -
fileName
-
stream
-
stream
-
getStream
-
containerFullName
-
translate
-
javaName
Given a SymtabEntry, return the string which should be used for this entry. Enums are converted to ints, typedefs and sequences are converted to their info types. javaQualifiedName does not do any of these conversions. -
javaPrimName
-
javaNativeName
-
javaQualifiedName
Given a symtabEntry, return the name of this entry. This method does not do any conversions like javaName does. -
collapseName
Collapse primitive type names. -
typeOf
-
holderName
-
helperName
-
writePackage
-
writePackage
-
writePackage
-
writeInitializer
public static void writeInitializer(String indent, String name, String arrayDcl, SymtabEntry entry, PrintWriter stream) -
writeInitializer
public static void writeInitializer(String indent, String name, String arrayDcl, SymtabEntry entry, String initializer, PrintWriter stream) -
mkdir
-
writeProlog
-
stripLeadingUnderscores
-
stripLeadingUnderscoresFromID
-
parseExpression
-
IDLEntity
-
corbaLevel
public static boolean corbaLevel(float min, float max) - Returns:
- true if the current setting of corbaLevel is within delta of the range min <= corbaLevel <= max
-