|
||||||||||
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.VirtualTableDefinition
public final class VirtualTableDefinition
Virtual table definition AST.
Field Summary |
---|
Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node |
---|
ILLEGAL_LOCAL_ID_CHAR |
Constructor Summary | |
---|---|
VirtualTableDefinition(String id,
List<String> keys,
List<String> data)
Default constructor. |
Method Summary | |
---|---|
VirtualTableDefinition |
clone()
Clones this object (deep clone); including location info. |
void |
dispose()
Removes reference to id, keys, and data. |
String |
getDatum(int index)
Gets a datum at a specified index. |
String |
getEnumId()
Gets the optional enum id. |
String |
getId()
Gets the virtual table id. |
String |
getKey(int index)
Gets a key at a specified index. |
int |
getMappingCount()
Gets the number of mapping |
boolean |
isOnEnum()
Checks whether the key of the table is an enum. |
void |
setEnumId(String newEnumId)
Sets the enum id. |
void |
setId(String newId)
Sets the virtual table id. |
void |
setMapping(List<String> newKeys,
List<String> newData)
Sets the mapping. |
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 VirtualTableDefinition(String id, List<String> keys, List<String> data)
id
- The virtual table id. Must be non-null.keys
- The keys vector. Each element must be instance of String.data
- The data vector. Each element must be instance of String. Must
have the same number of elements as newKeys.Method Detail |
---|
public String getDatum(int index)
index
- The index of the datum. Must be within the array bound of
data.
public void setEnumId(String newEnumId)
newEnumId
- The new enum id. Must be non-null.public String getEnumId()
public void setId(String newId)
newId
- The new virtual table id. Must be non-null.public String getId()
public String getKey(int index)
index
- The index of the key. Must be within the array bound of keys.
public void setMapping(List<String> newKeys, List<String> newData)
newKeys
- The new keys vector. Each element must be instance of String.
The number of element must be greater than zero.newData
- The new data vector. Each element must be instance of String.
Must have the same number of elements as newKeys.public int getMappingCount()
public boolean isOnEnum()
public VirtualTableDefinition 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 |