ist.palcom.resource.descriptor
Class ASTNode
java.lang.Object
ist.palcom.resource.descriptor.ASTNode
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- AbstractXMLRepresentable, BroadcastTopicList, ConnectionList, ControlItem, GroupcastGroupIDList, GroupID, HeartBeat, List, NetworkNode, Opt, Selector, Topic, Universe, URL, URN, URNLeaf, VariableType
public class ASTNode
- extends java.lang.Object
- implements java.lang.Cloneable
|
Method Summary |
void |
addASTtoList(java.util.ArrayList l)
Hack to add a whole (sub)tree to an ArrayList |
void |
addChild(ASTNode node)
|
java.lang.Object |
clone()
|
ASTNode |
copy()
|
AbstractResourceAddress |
Define_AbstractResourceAddress_custServiceAddress(ASTNode caller,
ASTNode child)
|
AbstractResourceAddress |
Define_AbstractResourceAddress_provServiceAddress(ASTNode caller,
ASTNode child)
|
CommandInfo |
Define_CommandInfo_ci(ASTNode caller,
ASTNode child)
|
Device |
Define_Device_parentDevice(ASTNode caller,
ASTNode child)
|
Identifier |
Define_Identifier_getLocalName(ASTNode caller,
ASTNode child)
|
NetworkNode |
Define_NetworkNode_lookup(ASTNode caller,
ASTNode child,
java.lang.Object o)
|
PRDAssemblyVer |
Define_PRDAssemblyVer_av(ASTNode caller,
ASTNode child)
|
Service |
Define_Service_inhCust(ASTNode caller,
ASTNode child,
Connection c)
|
Service |
Define_Service_inhProv(ASTNode caller,
ASTNode child,
Connection c)
|
Service |
Define_Service_parentService(ASTNode caller,
ASTNode child)
|
java.lang.String |
Define_String_expectedType(ASTNode caller,
ASTNode child)
|
Universe |
Define_Universe_universe(ASTNode caller,
ASTNode child)
|
boolean |
encloseInBraces()
|
void |
flushCache()
|
ASTNode |
fullCopy()
|
java.lang.String |
getAssemblyLabel()
|
java.lang.String |
getBrowserLabel()
|
ASTNode |
getChild(int i)
|
java.lang.Object[] |
getChildArray()
Helper method for the TreeView |
ASTNode |
getChildNoTransform(int i)
|
java.util.ArrayList |
getErrorList()
|
java.lang.String |
getIDforEditing()
get the ID (name, etc) of the attribute or child to be edited
when selecting the node. |
java.lang.String |
getIndent()
|
int |
getIndexOfChild(ASTNode node)
|
int |
getNumChild()
|
ASTNode |
getParent()
|
PRDAssemblyVer |
getParentPRDAssemblyVer()
This is a hack used for the released flag check. |
java.lang.String |
getPrettyClosingString()
|
java.lang.String |
getPrettyString()
|
void |
insertChild(ASTNode node,
int i)
|
protected int |
numChildren()
|
void |
prettyprint(java.io.PrintStream s)
|
boolean |
prettyPrintChildren()
|
boolean |
remove()
|
void |
removeChild(int i)
|
static void |
reset()
|
void |
resetTree()
|
void |
setChild(ASTNode node,
int i)
|
void |
setParent(ASTNode node)
|
boolean |
updateIDfromEditor(java.lang.String id)
Set the new name (ID, etc). |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
generatedWithCircularEnabled
public static boolean generatedWithCircularEnabled
generatedWithCacheCycle
public static boolean generatedWithCacheCycle
generatedWithComponentCheck
public static boolean generatedWithComponentCheck
IN_CIRCLE
public static boolean IN_CIRCLE
CHANGE
public static boolean CHANGE
LAST_CYCLE
public static boolean LAST_CYCLE
RESET_CYCLE
public static boolean RESET_CYCLE
parent
protected ASTNode parent
children
protected ASTNode[] children
numChildren
protected int numChildren
getParentPRDAssemblyVer_visited
protected boolean getParentPRDAssemblyVer_visited
getErrorList_visited
protected boolean getErrorList_visited
getBrowserLabel_visited
protected boolean getBrowserLabel_visited
getAssemblyLabel_visited
protected boolean getAssemblyLabel_visited
prettyPrintChildren_visited
protected boolean prettyPrintChildren_visited
getPrettyString_visited
protected boolean getPrettyString_visited
getPrettyClosingString_visited
protected boolean getPrettyClosingString_visited
encloseInBraces_visited
protected boolean encloseInBraces_visited
getIndent_visited
protected boolean getIndent_visited
ASTNode
public ASTNode()
flushCache
public void flushCache()
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException
copy
public ASTNode copy()
fullCopy
public ASTNode fullCopy()
getIDforEditing
public java.lang.String getIDforEditing()
- get the ID (name, etc) of the attribute or child to be edited
when selecting the node.
updateIDfromEditor
public boolean updateIDfromEditor(java.lang.String id)
- Set the new name (ID, etc).
- Returns:
- true if the tree was actually changed.
getChildArray
public java.lang.Object[] getChildArray()
- Helper method for the TreeView
- Returns:
- The (interesting) children of a node, as an Object array
possibly bypassing levels in the tree or ignoring certain children.
addASTtoList
public void addASTtoList(java.util.ArrayList l)
- Hack to add a whole (sub)tree to an ArrayList
prettyprint
public void prettyprint(java.io.PrintStream s)
resetTree
public void resetTree()
removeChild
public void removeChild(int i)
remove
public boolean remove()
getChild
public ASTNode getChild(int i)
getIndexOfChild
public int getIndexOfChild(ASTNode node)
addChild
public void addChild(ASTNode node)
getChildNoTransform
public ASTNode getChildNoTransform(int i)
numChildren
protected int numChildren()
getNumChild
public int getNumChild()
setChild
public void setChild(ASTNode node,
int i)
insertChild
public void insertChild(ASTNode node,
int i)
getParent
public ASTNode getParent()
setParent
public void setParent(ASTNode node)
reset
public static void reset()
getParentPRDAssemblyVer
public PRDAssemblyVer getParentPRDAssemblyVer()
- This is a hack used for the released flag check.
(as ASTNode cannot inherit ai())
- Returns:
- the PRDAssemblyVer at the root of the tree or null
Declared in AssemblyVersioning.jadd at line 195
getErrorList
public java.util.ArrayList getErrorList()
getBrowserLabel
public java.lang.String getBrowserLabel()
getAssemblyLabel
public java.lang.String getAssemblyLabel()
prettyPrintChildren
public boolean prettyPrintChildren()
getPrettyString
public java.lang.String getPrettyString()
getPrettyClosingString
public java.lang.String getPrettyClosingString()
encloseInBraces
public boolean encloseInBraces()
getIndent
public java.lang.String getIndent()
Define_Device_parentDevice
public Device Define_Device_parentDevice(ASTNode caller,
ASTNode child)
Define_AbstractResourceAddress_custServiceAddress
public AbstractResourceAddress Define_AbstractResourceAddress_custServiceAddress(ASTNode caller,
ASTNode child)
Define_Service_inhProv
public Service Define_Service_inhProv(ASTNode caller,
ASTNode child,
Connection c)
Define_Identifier_getLocalName
public Identifier Define_Identifier_getLocalName(ASTNode caller,
ASTNode child)
Define_CommandInfo_ci
public CommandInfo Define_CommandInfo_ci(ASTNode caller,
ASTNode child)
Define_String_expectedType
public java.lang.String Define_String_expectedType(ASTNode caller,
ASTNode child)
Define_NetworkNode_lookup
public NetworkNode Define_NetworkNode_lookup(ASTNode caller,
ASTNode child,
java.lang.Object o)
Define_Universe_universe
public Universe Define_Universe_universe(ASTNode caller,
ASTNode child)
Define_AbstractResourceAddress_provServiceAddress
public AbstractResourceAddress Define_AbstractResourceAddress_provServiceAddress(ASTNode caller,
ASTNode child)
Define_PRDAssemblyVer_av
public PRDAssemblyVer Define_PRDAssemblyVer_av(ASTNode caller,
ASTNode child)
Define_Service_parentService
public Service Define_Service_parentService(ASTNode caller,
ASTNode child)
Define_Service_inhCust
public Service Define_Service_inhCust(ASTNode caller,
ASTNode child,
Connection c)