Package org.extendj.neobeaver.ast
Class GDecl
- java.lang.Object
-
- org.extendj.neobeaver.ast.ASTNode<ASTNode>
-
- org.extendj.neobeaver.ast.GDecl
-
- All Implemented Interfaces:
java.lang.Cloneable,Parser.Symbol
- Direct Known Subclasses:
ClassDecl,EmbedCode,Goal,GProduction,HeaderCode,LeftAssoc,NonAssoc,PackageDecl,RightAssoc,Terminals,TypeOf
public abstract class GDecl extends ASTNode<ASTNode> implements java.lang.Cloneable
Productions and directives.
-
-
Field Summary
-
Fields inherited from class org.extendj.neobeaver.ast.ASTNode
children, generatedWithCacheCycle, numChildren, parent
-
-
Constructor Summary
Constructors Constructor Description GDecl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description GDeclclone()voidflushAttrCache()voidflushCollectionCache()abstract GDeclfullCopy()Deprecated.Please use treeCopy or treeCopyNoTransform insteadvoidinit$Children()Initializes the child array to the correct size.protected intnumChildren()abstract GDecltreeCopy()Create a deep copy of the AST subtree at this node.abstract GDecltreeCopyNoTransform()Create a deep copy of the AST subtree at this node.-
Methods inherited from class org.extendj.neobeaver.ast.ASTNode
accept, addChild, astChildIterator, astChildren, copy, doFullTraversal, flushAttrAndCollectionCache, flushCache, flushTreeCache, getChild, getChildNoTransform, getIndexOfChild, getNumChild, getNumChildNoTransform, getParent, getPosition, insertChild, is$Equal, is$Equal, removeChild, resetState, rewrittenNode, setChild, setParent, setPosition, state
-
-
-
-
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 classASTNode<ASTNode>
-
numChildren
protected int numChildren()
- Overrides:
numChildrenin classASTNode<ASTNode>
-
flushAttrCache
public void flushAttrCache()
- Overrides:
flushAttrCachein classASTNode<ASTNode>
-
flushCollectionCache
public void flushCollectionCache()
- Overrides:
flushCollectionCachein classASTNode<ASTNode>
-
clone
public GDecl clone() throws java.lang.CloneNotSupportedException
-
fullCopy
@Deprecated public abstract GDecl 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 abstract GDecl treeCopyNoTransform()
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.- Overrides:
treeCopyNoTransformin classASTNode<ASTNode>- Returns:
- dangling copy of the subtree at this node
-
treeCopy
public abstract GDecl 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.
-
-