|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sourceforge.ifx.tools.JavaSource
This class provides an abstraction to collect information about a generated Java class file. Its toString() method will produce a String that can be written using a Writer object to persistent store.
Constructor Summary | |
JavaSource()
|
Method Summary | |
void |
addMemberVariable(java.lang.String mVarClass,
boolean isArray)
Adds a new member variable object for the class. |
void |
addMemberVariable(java.lang.String mVarName,
java.lang.String mVarClass,
boolean isArray)
Adds a new member variable for the class. |
java.lang.String |
getClassJavadocs()
Returns the class javadocs for this class. |
java.lang.String |
getClassName()
Returns the class name. |
java.lang.String |
getInterface()
Gets the fully qualified interface for this class if specified, |
java.util.List |
getMemberVariables()
Returns a list of member variable objects in this class. |
int |
getNumberOfMemberVariables()
Returns the number of member variables for this class. |
java.lang.String |
getPackageName()
Returns the package name for the class. |
java.lang.String |
getSuperClass()
Gets the superclass name for this class. |
boolean |
hasInterface()
Convenience methods since velocity does not understand the conditional "== null". |
boolean |
hasSuperClass()
Convenience method since velocity does not understand the conditional "== null". |
void |
setClassJavadocs(java.lang.String classJavadocs)
Allows setting the class javadocs for this class. |
void |
setClassName(java.lang.String className)
Sets the class name. |
void |
setInterface(java.lang.String interfaceName)
Sets the fully qualified interface name for this class. |
void |
setPackageName(java.lang.String packageName)
Allows setting the package name for the class. |
void |
setSuperClass(java.lang.String superClass)
Sets the superclass name if applicable. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JavaSource()
Method Detail |
public java.lang.String getPackageName()
public void setPackageName(java.lang.String packageName)
packageName
- the package name to set.public java.lang.String getClassJavadocs()
public void setClassJavadocs(java.lang.String classJavadocs)
classJavadocs
- the class level javadocs to set.public java.lang.String getClassName()
public void setClassName(java.lang.String className)
className
- the class name.public java.lang.String getSuperClass()
public void setSuperClass(java.lang.String superClass)
superClass
- the super class name to set.public java.lang.String getInterface()
public void setInterface(java.lang.String interfaceName)
interfaceName
- the fully qualified interface name for this class.public java.util.List getMemberVariables()
public int getNumberOfMemberVariables()
public void addMemberVariable(java.lang.String mVarClass, boolean isArray)
mVarClass
- the class name for the member variable.isArray
- if the member variable type is an array.public void addMemberVariable(java.lang.String mVarName, java.lang.String mVarClass, boolean isArray)
mVarName
- the name of the member variable.mVarClass
- the class name for the member variable.isArray
- if the member variable type is an array.public boolean hasInterface()
public boolean hasSuperClass()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |