|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.objectwave.sourceGenerator.ClassInformation
Used to define a bunch of 'InformationToken's that know how to get data from a JavaClassDef. The source code generation routines will create a new instance of this class, set the JavaClassDef attribute, and then this instance is passed to all of the InformationToken objects.
Field Summary | |
JavaClassDef |
classElement
|
protected static java.util.HashMap |
identifiers
|
Constructor Summary | |
ClassInformation()
|
Method Summary | |
static java.lang.String |
formatMethod(java.lang.String methodName,
java.lang.String[] parameterType,
java.lang.String retValType)
|
JavaClassDef |
getClassElement()
If we don't have one we we started with, well, then create one from the values that have been set. |
protected java.util.Enumeration |
getIdxEnumeration()
|
java.util.Enumeration |
getImplementsEnumeration()
|
protected java.util.Enumeration |
getImportEnumeration()
|
InformationToken[] |
getKnownTokens()
|
java.lang.String |
getMiscData()
|
protected java.util.Enumeration |
getVariableEnumeration()
This enumeration will contain the complete Variable declaration. |
protected java.util.Enumeration |
getVariableInitsEnumeration()
The Variable initializers. |
protected java.util.Enumeration |
getVariableIsCollectionEnumeration(boolean keepNatives)
Only native arrays are considered collections. |
protected java.util.Enumeration |
getVariableNameEnumeration(boolean upperCase)
This enumeration will contain just the Variable name. |
protected java.util.Enumeration |
getVariableNotStatics()
This enumeration will contain the complete Variable declaration. |
protected java.util.Enumeration |
getVariableNotTransient()
This enumeration will contain the complete Variable declaration. |
protected java.util.Enumeration |
getVariableScope()
This enumeration will contain the complete Variable declaration. |
protected java.util.Enumeration |
getVariableStatics()
This enumeration will contain the complete Variable declaration. |
protected java.util.Enumeration |
getVariableTransient()
This enumeration will contain the complete Variable declaration. |
protected java.util.Enumeration |
getVariableTypEnumeration()
This enumeration will contain just the Variable return type. |
protected ClassElement |
parseIt(java.io.StringReader rdr,
ClassParser def)
|
void |
setClassElement(JavaClassDef def)
|
void |
setClassName(java.lang.String str)
|
void |
setImports(java.lang.String[] imps)
|
void |
setMiscData(java.lang.String val)
|
void |
setPackageName(java.lang.String ident)
|
void |
setVariables(java.lang.String[] varDecls)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public JavaClassDef classElement
protected static java.util.HashMap identifiers
Constructor Detail |
public ClassInformation()
Method Detail |
public JavaClassDef getClassElement()
protected java.util.Enumeration getIdxEnumeration()
public java.util.Enumeration getImplementsEnumeration()
protected java.util.Enumeration getImportEnumeration()
public InformationToken[] getKnownTokens()
getKnownTokens
in interface TokenProvider
public java.lang.String getMiscData()
protected java.util.Enumeration getVariableEnumeration()
protected java.util.Enumeration getVariableInitsEnumeration()
protected java.util.Enumeration getVariableIsCollectionEnumeration(boolean keepNatives)
protected java.util.Enumeration getVariableNameEnumeration(boolean upperCase)
upperCase
- java.lang.boolean Should the first character of the variable name be capitalized.protected java.util.Enumeration getVariableNotStatics()
protected java.util.Enumeration getVariableNotTransient()
protected java.util.Enumeration getVariableScope()
protected java.util.Enumeration getVariableStatics()
protected java.util.Enumeration getVariableTransient()
protected java.util.Enumeration getVariableTypEnumeration()
protected ClassElement parseIt(java.io.StringReader rdr, ClassParser def)
public void setClassElement(JavaClassDef def)
public void setClassName(java.lang.String str)
public void setImports(java.lang.String[] imps)
public void setMiscData(java.lang.String val)
public void setPackageName(java.lang.String ident)
public void setVariables(java.lang.String[] varDecls)
public static java.lang.String formatMethod(java.lang.String methodName, java.lang.String[] parameterType, java.lang.String retValType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |