ASTNode ::= <ID:String> Dims* [Init:Expr];- Type Hierarchy:
java.lang.Object
beaver.Symbol
AST.ASTNode<ASTNode>
AST.VariableDecl
- All Implemented Interfaces:
- java.lang.Cloneable, java.lang.Iterable<ASTNode>
|
|||||||
| FRAMES NO FRAMES | |||||||
Java1.4Frontend/java.ast at line 85public VariableDecl()
public VariableDecl(java.lang.String p0, List<Dims> p1, Opt<Expr> p2)
public VariableDecl(beaver.Symbol p0, List<Dims> p1, Opt<Expr> p2)
syn java.lang.String name()
Java1.4Frontend/VariableDeclaration.jrag at line 84
public void flushCache()
flushCache in class ASTNode<ASTNode>public void flushCollectionCache()
flushCollectionCache in class ASTNode<ASTNode>public VariableDecl clone() throws java.lang.CloneNotSupportedException
public VariableDecl copy()
public VariableDecl fullCopy()
public VariableDeclaration createVariableDeclarationFrom(Modifiers modifiers, Access type)
Java1.4Frontend/VariableDeclaration.jrag at line 182
public FieldDeclaration createFieldDeclarationFrom(Modifiers modifiers, Access type)
Java1.4Frontend/VariableDeclaration.jrag at line 196
public void init$Children()
init$Children in class ASTNode<ASTNode>protected int numChildren()
numChildren in class ASTNode<ASTNode>public boolean mayHaveRewrite()
mayHaveRewrite in class ASTNode<ASTNode>public void setID(java.lang.String value)
value - The new value for the lexeme ID.public void setID(beaver.Symbol symbol)
public java.lang.String getID()
public void setDimsList(List<Dims> list)
list - The new list node to be used as the Dims list.public int getNumDims()
public int getNumDimsNoTransform()
i in the Dims list..i - Index of the element to return.
i in the Dims list.node - The element to append to the Dims list.public void addDimsNoTransform(Dims node)
i with the new node node.node - The new node to replace the old list element.i - The list index of the node to be replaced.public List<Dims> getDimssNoTransform()
This method does not invoke AST transformations.
public List<Dims> getDimsList()
public List<Dims> getDimsListNoTransform()
This method does not invoke AST transformations.
public void setInitOpt(Opt<Expr> opt)
Opt node containing the child Init, not the actual child!opt - The new node to be used as the optional node for the Init child.public boolean hasInit()
true if the optional Init child exists, false if it does not.null otherwise.node - The new node to be used as the Init child.public Opt<Expr> getInitOpt()
public Opt<Expr> getInitOptNoTransform()
Opt node containing the child Init, not the actual child!
This method does not invoke AST transformations.
public boolean Define_boolean_isSource(ASTNode caller, ASTNode child)
Define_boolean_isSource in class ASTNode<ASTNode>Java1.4Frontend/DefiniteAssignment.jrag at line 41public TypeDecl Define_TypeDecl_expectedType(ASTNode caller, ASTNode child)
Define_TypeDecl_expectedType in class ASTNode<ASTNode>Java1.4Backend/InnerClasses.jrag at line 69
|
|||||||
| FRAMES NO FRAMES | |||||||