ClassHolder, EnumerationClassHolder, StructureClassHolderpublic interface IClassHolder
| Modifier and Type | Method | Description |
|---|---|---|
void |
addField(FieldDeclaration field) |
Add field declaration to class.
|
boolean |
addImport(java.lang.String type) |
Add import for class.
|
void |
addInterface(java.lang.String interf) |
Add an interface to this class definition.
|
void |
addMethod(MethodDeclaration method) |
Add method declaration to class.
|
void |
addType(TypeDeclaration type) |
Add inner type declaration to class.
|
FieldDeclaration[] |
getFields() |
Get the fields defined in this class.
|
java.lang.String |
getFullName() |
Get fully-qualified name.
|
java.lang.String[] |
getInterfaces() |
Get the interfaces implemented by this class.
|
MethodDeclaration[] |
getMethods() |
Get the methods defined in this class.
|
java.lang.String |
getName() |
Get simple name.
|
IClassHolder |
getOuterClass() |
Get containing class of inner class.
|
java.lang.String |
getSuperClassName() |
Get name of base class to be extended.
|
java.lang.String |
getTypeName(java.lang.String type) |
Get the name to be used for a type.
|
boolean |
isSuperClassForced() |
Check if superclass is forced by schema model.
|
void |
setListImplementation(java.lang.String list) |
Set name of list implementation class to be used for initializing instances.
|
void |
setSuperClassName(java.lang.String base) |
Set name of base class to be extended.
|
java.lang.String getName()
java.lang.String getFullName()
IClassHolder getOuterClass()
null if not an inner classboolean isSuperClassForced()
true if superclass forced, false if notjava.lang.String getSuperClassName()
null if none)void setSuperClassName(java.lang.String base)
isSuperClassForced() returns
false.base - fully-qualified class name of base class (null if none)void setListImplementation(java.lang.String list)
list - fully-qualified class name of list implementation (non-null)boolean addImport(java.lang.String type)
type - fully qualified class nametrue if added as importjava.lang.String getTypeName(java.lang.String type)
type - fully-qualified type namejava.lang.String[] getInterfaces()
FieldDeclaration[] getFields()
MethodDeclaration[] getMethods()
void addInterface(java.lang.String interf)
interf - interface typevoid addField(FieldDeclaration field)
field - void addMethod(MethodDeclaration method)
method - void addType(TypeDeclaration type)
type -