Package org.extendj.neobeaver.ast
Class TypeOf
- java.lang.Object
-
- org.extendj.neobeaver.ast.ASTNode<ASTNode>
-
- org.extendj.neobeaver.ast.GDecl
-
- org.extendj.neobeaver.ast.TypeOf
-
- All Implemented Interfaces:
java.lang.Cloneable,Parser.Symbol
public class TypeOf extends GDecl implements java.lang.Cloneable
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringtokenString_Nameprotected java.lang.StringtokenString_Type-
Fields inherited from class org.extendj.neobeaver.ast.ASTNode
children, generatedWithCacheCycle, numChildren, parent
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaccept(GVisitor vis)TypeOfclone()TypeOfcopy()voidflushAttrCache()voidflushCollectionCache()TypeOffullCopy()Deprecated.Please use treeCopy or treeCopyNoTransform insteadjava.lang.StringgetName()Retrieves the value for the lexeme Name.java.lang.StringgetType()Retrieves the value for the lexeme Type.voidinit$Children()Initializes the child array to the correct size.protected booleanis$Equal(ASTNode node)protected intnumChildren()voidsetName(java.lang.String value)Replaces the lexeme Name.voidsetType(java.lang.String value)Replaces the lexeme Type.TypeOftreeCopy()Create a deep copy of the AST subtree at this node.TypeOftreeCopyNoTransform()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
-
TypeOf
public TypeOf()
-
TypeOf
@Constructor(name={"Name","Type"}, type={"String","String"}, kind={"Token","Token"}) public TypeOf(java.lang.String p0, java.lang.String p1)
-
-
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 TypeOf clone() throws java.lang.CloneNotSupportedException
-
fullCopy
@Deprecated public TypeOf 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 TypeOf 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 TypeOf 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.
-
setName
public void setName(java.lang.String value)
Replaces the lexeme Name.- Parameters:
value- The new value for the lexeme Name.
-
getName
@Token(name="Name") public java.lang.String getName()
Retrieves the value for the lexeme Name.- Returns:
- The value for the lexeme Name.
-
setType
public void setType(java.lang.String value)
Replaces the lexeme Type.- Parameters:
value- The new value for the lexeme Type.
-
-