com.objectwave.sourceGenerator
Class ClassInformation

java.lang.Object
  |
  +--com.objectwave.sourceGenerator.ClassInformation
All Implemented Interfaces:
java.io.Serializable, TokenProvider

public class ClassInformation
extends java.lang.Object
implements java.io.Serializable, TokenProvider

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.

Version:
2.3
Author:
Dave Hoag
See Also:
Serialized Form

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

classElement

public JavaClassDef classElement

identifiers

protected static java.util.HashMap identifiers
Constructor Detail

ClassInformation

public ClassInformation()
Method Detail

getClassElement

public JavaClassDef getClassElement()
If we don't have one we we started with, well, then create one from the values that have been set.


getIdxEnumeration

protected java.util.Enumeration getIdxEnumeration()

getImplementsEnumeration

public java.util.Enumeration getImplementsEnumeration()

getImportEnumeration

protected java.util.Enumeration getImportEnumeration()

getKnownTokens

public InformationToken[] getKnownTokens()
Specified by:
getKnownTokens in interface TokenProvider

getMiscData

public java.lang.String getMiscData()

getVariableEnumeration

protected java.util.Enumeration getVariableEnumeration()
This enumeration will contain the complete Variable declaration.


getVariableInitsEnumeration

protected java.util.Enumeration getVariableInitsEnumeration()
The Variable initializers.


getVariableIsCollectionEnumeration

protected java.util.Enumeration getVariableIsCollectionEnumeration(boolean keepNatives)
Only native arrays are considered collections.


getVariableNameEnumeration

protected java.util.Enumeration getVariableNameEnumeration(boolean upperCase)
This enumeration will contain just the Variable name.

Parameters:
upperCase - java.lang.boolean Should the first character of the variable name be capitalized.

getVariableNotStatics

protected java.util.Enumeration getVariableNotStatics()
This enumeration will contain the complete Variable declaration.


getVariableNotTransient

protected java.util.Enumeration getVariableNotTransient()
This enumeration will contain the complete Variable declaration.


getVariableScope

protected java.util.Enumeration getVariableScope()
This enumeration will contain the complete Variable declaration.


getVariableStatics

protected java.util.Enumeration getVariableStatics()
This enumeration will contain the complete Variable declaration.


getVariableTransient

protected java.util.Enumeration getVariableTransient()
This enumeration will contain the complete Variable declaration.


getVariableTypEnumeration

protected java.util.Enumeration getVariableTypEnumeration()
This enumeration will contain just the Variable return type.


parseIt

protected ClassElement parseIt(java.io.StringReader rdr,
                               ClassParser def)

setClassElement

public void setClassElement(JavaClassDef def)

setClassName

public void setClassName(java.lang.String str)

setImports

public void setImports(java.lang.String[] imps)

setMiscData

public void setMiscData(java.lang.String val)

setPackageName

public void setPackageName(java.lang.String ident)

setVariables

public void setVariables(java.lang.String[] varDecls)

formatMethod

public static java.lang.String formatMethod(java.lang.String methodName,
                                            java.lang.String[] parameterType,
                                            java.lang.String retValType)