|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ksu.cis.projects.bogor.ast.Node edu.ksu.cis.projects.bogor.ast.SystemMember edu.ksu.cis.projects.bogor.ast.Definition edu.ksu.cis.projects.bogor.ast.ExtensionDefinition
public final class ExtensionDefinition
Extension definition AST.
Field Summary |
---|
Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node |
---|
ILLEGAL_LOCAL_ID_CHAR |
Constructor Summary | |
---|---|
ExtensionDefinition(String id,
String name,
List<? extends Extension> extensions)
Default constructor. |
Method Summary | |
---|---|
ExtensionDefinition |
clone()
Clones this object (deep clone); including location info. |
void |
dispose()
Removes reference to id and name, and disposes extensions. |
Extension |
getExtension(int index)
Gets a extension at a specified index. |
int |
getExtensionCount()
Gets the number of extensions. |
String |
getId()
Gets the id. |
String |
getName()
Gets the fully qualified Java class name. |
void |
setExtensions(List<? extends Extension> newExtensions)
Sets the extensions. |
void |
setId(String newId)
Sets the id. |
void |
setName(String newName)
Sets the fully qualified Java class name. |
String |
toString()
Returns the string representation of this object. |
void |
visit(ASTVisitor visitor)
|
Methods inherited from class edu.ksu.cis.projects.bogor.ast.SystemMember |
---|
getParent, setParent |
Methods inherited from class edu.ksu.cis.projects.bogor.ast.Node |
---|
getLocationInfo, getProperty, putProperty, setLocationInfo |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExtensionDefinition(String id, String name, List<? extends Extension> extensions)
id
- The id. Must be non-null.name
- The fully qualified Java class name. Must be non-null.extensions
- The extensions. Must be non-null. Each element must be
instance of Extension.Method Detail |
---|
public Extension getExtension(int index)
index
- The index of the constant. Must be between 0 and
getExtensionCount() - 1, inclusive.
public int getExtensionCount()
public void setExtensions(List<? extends Extension> newExtensions)
newExtensions
- The new extensions. Must be non-null. Each element must be
instance of Extension.public void setId(String newId)
newId
- The new id. Must be non-null.public String getId()
public void setName(String newName)
newName
- The fully qualified Java class name. Must be non-null.public String getName()
public ExtensionDefinition clone()
clone
in class Definition
public void dispose()
dispose
in interface Disposable
dispose
in class SystemMember
public String toString()
toString
in class Node
public void visit(ASTVisitor visitor)
visit
in class Node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |