AST
node type Dims

General Info

Production
Dims : ASTNode ::= [Expr];
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by AST.ASTNode<ASTNode>
          extended by AST.Dims
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>

Description

Source
Declared in Java1.4Frontend/java.ast at line 134

Member Filters

API level:

Aspect:

Constructors

public Dims()
 
public Dims(Opt<Expr> p0)
 

Methods

public void flushCache()
Overrides:flushCache in class ASTNode<ASTNode>
public void flushCollectionCache()
Overrides:flushCollectionCache in class ASTNode<ASTNode>
public Dims clone()
           throws java.lang.CloneNotSupportedException
Overrides:clone in class ASTNode<ASTNode>
Throws:
java.lang.CloneNotSupportedException
public Dims copy()
Overrides:copy in class ASTNode<ASTNode>
public Dims fullCopy()
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
Overrides:fullCopy in class ASTNode<ASTNode>
Returns:
dangling copy of the subtree at this node
public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.
Overrides:init$Children in class ASTNode<ASTNode>
protected int numChildren()
Overrides:numChildren in class ASTNode<ASTNode>
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class ASTNode<ASTNode>
public void setExprOpt(Opt<Expr> opt)
Replaces the optional node for the Expr child. This is the Opt node containing the child Expr, not the actual child!
Parameters:
opt - The new node to be used as the optional node for the Expr child.
public boolean hasExpr()
Check whether the optional Expr child exists.
Returns:
true if the optional Expr child exists, false if it does not.
public Expr getExpr()
Retrieves the (optional) Expr child.
Returns:
The Expr child, if it exists. Returns null otherwise.
public void setExpr(Expr node)
Replaces the (optional) Expr child.
Parameters:
node - The new node to be used as the Expr child.
public Opt<Expr> getExprOpt()
Retrieves the optional node for child Expr. This is the Opt node containing the child Expr, not the actual child!

This method does not invoke AST transformations.

Returns:
The optional node for child Expr.
Overrides:rewriteTo in class ASTNode<ASTNode>

Inherited Members

Attributes inherited from AST.ASTNode

Methods inherited from class AST.ASTNode

Methods inherited from class beaver.Symbol

getColumn
getEnd
getId
getLine
getStart
makePosition

Methods inherited from class java.lang.Object

equals
finalize
getClass
hashCode
notify
notifyAll
wait
wait
wait

Fields inherited from AST.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value