Package org.extendj.neobeaver.ast
Class HeaderCode
- java.lang.Object
-
- org.extendj.neobeaver.ast.ASTNode<ASTNode>
-
- org.extendj.neobeaver.ast.GDecl
-
- org.extendj.neobeaver.ast.HeaderCode
-
- All Implemented Interfaces:
java.lang.Cloneable,Parser.Symbol
public class HeaderCode extends GDecl implements java.lang.Cloneable
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringtokenString_Code-
Fields inherited from class org.extendj.neobeaver.ast.ASTNode
children, generatedWithCacheCycle, numChildren, parent
-
-
Constructor Summary
Constructors Constructor Description HeaderCode()HeaderCode(java.lang.String p0)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaccept(GVisitor vis)HeaderCodeclone()HeaderCodecopy()voidflushAttrCache()voidflushCollectionCache()HeaderCodefullCopy()Deprecated.Please use treeCopy or treeCopyNoTransform insteadjava.lang.StringgetCode()Retrieves the value for the lexeme Code.voidinit$Children()Initializes the child array to the correct size.protected booleanis$Equal(ASTNode node)protected intnumChildren()voidsetCode(java.lang.String value)Replaces the lexeme Code.HeaderCodetreeCopy()Create a deep copy of the AST subtree at this node.HeaderCodetreeCopyNoTransform()Create a deep copy of the AST subtree at this node.-
Methods inherited from class org.extendj.neobeaver.ast.ASTNode
addChild, astChildIterator, astChildren, doFullTraversal, flushAttrAndCollectionCache, flushCache, flushTreeCache, getChild, getChildNoTransform, getIndexOfChild, getNumChild, getNumChildNoTransform, getParent, getPosition, insertChild, is$Equal, removeChild, resetState, rewrittenNode, setChild, setParent, setPosition, state
-
-
-
-
Constructor Detail
-
HeaderCode
public HeaderCode()
-
HeaderCode
@Constructor(name="Code", type="String", kind="Token") public HeaderCode(java.lang.String p0)
-
-
Method Detail
-
init$Children
public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.- Overrides:
init$Childrenin classGDecl
-
numChildren
protected int numChildren()
- Overrides:
numChildrenin classGDecl
-
flushAttrCache
public void flushAttrCache()
- Overrides:
flushAttrCachein classGDecl
-
flushCollectionCache
public void flushCollectionCache()
- Overrides:
flushCollectionCachein classGDecl
-
clone
public HeaderCode clone() throws java.lang.CloneNotSupportedException
-
copy
public HeaderCode copy()
-
fullCopy
@Deprecated public HeaderCode fullCopy()
Deprecated.Please use treeCopy or treeCopyNoTransform insteadCreate a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
-
treeCopyNoTransform
public HeaderCode treeCopyNoTransform()
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.- Specified by:
treeCopyNoTransformin classGDecl- Returns:
- dangling copy of the subtree at this node
-
treeCopy
public HeaderCode treeCopy()
Create a deep copy of the AST subtree at this node. The subtree of this node is traversed to trigger rewrites before copy. The copy is dangling, i.e. has no parent.
-
setCode
public void setCode(java.lang.String value)
Replaces the lexeme Code.- Parameters:
value- The new value for the lexeme Code.
-
-