public class GComponent extends ASTNode<ASTNode> implements java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
tokenString_Name |
protected java.lang.String |
tokenString_Quantifier |
children, generatedWithCacheCycle, numChildren, parent| Constructor and Description |
|---|
GComponent() |
GComponent(java.lang.String p0,
Opt<ActionName> p1,
java.lang.String p2) |
| Modifier and Type | Method and Description |
|---|---|
GComponent |
clone() |
GComponent |
copy() |
void |
flushAttrCache() |
void |
flushCollectionCache() |
GComponent |
fullCopy()
Deprecated.
Please use treeCopy or treeCopyNoTransform instead
|
ActionName |
getActionName()
Retrieves the (optional) ActionName child.
|
Opt<ActionName> |
getActionNameOpt()
Retrieves the optional node for the ActionName child.
|
Opt<ActionName> |
getActionNameOptNoTransform()
Retrieves the optional node for child ActionName.
|
java.lang.String |
getName()
Retrieves the value for the lexeme Name.
|
java.lang.String |
getQuantifier()
Retrieves the value for the lexeme Quantifier.
|
boolean |
hasActionName()
Check whether the optional ActionName child exists.
|
void |
init$Children()
Initializes the child array to the correct size.
|
protected boolean |
is$Equal(ASTNode node) |
protected int |
numChildren() |
void |
setActionName(ActionName node)
Replaces the (optional) ActionName child.
|
void |
setActionNameOpt(Opt<ActionName> opt)
Replaces the optional node for the ActionName child.
|
void |
setName(java.lang.String value)
Replaces the lexeme Name.
|
void |
setQuantifier(java.lang.String value)
Replaces the lexeme Quantifier.
|
GComponent |
treeCopy()
Create a deep copy of the AST subtree at this node.
|
GComponent |
treeCopyNoTransform()
Create a deep copy of the AST subtree at this node.
|
accept, addChild, astChildIterator, astChildren, doFullTraversal, flushAttrAndCollectionCache, flushCache, flushTreeCache, getChild, getChildNoTransform, getIndexOfChild, getNumChild, getNumChildNoTransform, getParent, getPosition, insertChild, is$Equal, removeChild, resetState, rewrittenNode, setChild, setParent, setPosition, stateprotected java.lang.String tokenString_Name
protected java.lang.String tokenString_Quantifier
public GComponent()
@ASTNodeAnnotation.Constructor(name={"Name","ActionName","Quantifier"}, type={"String","Opt<ActionName>","String"}, kind={"Token","Opt","Token"}) public GComponent(java.lang.String p0, Opt<ActionName> p1, java.lang.String p2)
public void init$Children()
init$Children in class ASTNode<ASTNode>protected int numChildren()
numChildren in class ASTNode<ASTNode>public void flushAttrCache()
flushAttrCache in class ASTNode<ASTNode>public void flushCollectionCache()
flushCollectionCache in class ASTNode<ASTNode>public GComponent clone() throws java.lang.CloneNotSupportedException
public GComponent copy()
@Deprecated public GComponent fullCopy()
public GComponent treeCopyNoTransform()
treeCopyNoTransform in class ASTNode<ASTNode>public GComponent treeCopy()
public void setName(java.lang.String value)
value - The new value for the lexeme Name.@ASTNodeAnnotation.Token(name="Name") public java.lang.String getName()
public void setActionNameOpt(Opt<ActionName> opt)
Opt
node containing the child ActionName, not the actual child!opt - The new node to be used as the optional node for the ActionName child.public void setActionName(ActionName node)
node - The new node to be used as the ActionName child.public boolean hasActionName()
true if the optional ActionName child exists, false if it does not.public ActionName getActionName()
null otherwise.@ASTNodeAnnotation.OptChild(name="ActionName") public Opt<ActionName> getActionNameOpt()
Opt node containing the child ActionName, not the actual child!public Opt<ActionName> getActionNameOptNoTransform()
Opt node containing the child ActionName, not the actual child!
This method does not invoke AST transformations.
public void setQuantifier(java.lang.String value)
value - The new value for the lexeme Quantifier.@ASTNodeAnnotation.Token(name="Quantifier") public java.lang.String getQuantifier()