AST
node type VarDeclStmt

General Info

Production
VarDeclStmt : Stmt ::= Modifiers TypeAccess:Access VariableDecl*;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by AST.ASTNode<ASTNode>
          extended by AST.Stmt
              extended by AST.VarDeclStmt
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>

Description

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

Member Filters

API level:

Aspect:

Constructors

public VarDeclStmt()
 
 

Attributes

syn boolean canCompleteNormally()
Overrides:canCompleteNormally in class Stmt
Source
Declared in Java1.4Frontend/UnreachableStatements.jrag at line 42
Aspect
UnreachableStatements
syn boolean modifiedInScope(Variable var)
Specified by:modifiedInScope in class Stmt
Source
Declared in Java7Frontend/PreciseRethrow.jrag at line 55
Aspect
PreciseRethrow

Methods

public void flushCache()
Overrides:flushCache in class Stmt
public void flushCollectionCache()
Overrides:flushCollectionCache in class Stmt
public VarDeclStmt clone()
                  throws java.lang.CloneNotSupportedException
Overrides:clone in class Stmt
Throws:
java.lang.CloneNotSupportedException
public VarDeclStmt copy()
Overrides:copy in class ASTNode<ASTNode>
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 Stmt
protected int numChildren()
Overrides:numChildren in class Stmt
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class Stmt
public void setModifiers(Modifiers node)
Replaces the Modifiers child.
Parameters:
node - The new node to replace the Modifiers child.
Retrieves the Modifiers child.
Returns:
The current node used as the Modifiers child.
Retrieves the Modifiers child.

This method does not invoke AST transformations.

Returns:
The current node used as the Modifiers child.
public void setTypeAccess(Access node)
Replaces the TypeAccess child.
Parameters:
node - The new node to replace the TypeAccess child.
Retrieves the TypeAccess child.
Returns:
The current node used as the TypeAccess child.
Retrieves the TypeAccess child.

This method does not invoke AST transformations.

Returns:
The current node used as the TypeAccess child.
Replaces the VariableDecl list.
Parameters:
list - The new list node to be used as the VariableDecl list.
public int getNumVariableDecl()
Retrieves the number of children in the VariableDecl list.
Returns:
Number of children in the VariableDecl list.
Retrieves the number of children in the VariableDecl list. Calling this method will not trigger rewrites..
Returns:
Number of children in the VariableDecl list.
Retrieves the element at index i in the VariableDecl list..
Parameters:
i - Index of the element to return.
Returns:
The element at position i in the VariableDecl list.
public void addVariableDecl(VariableDecl node)
Append an element to the VariableDecl list.
Parameters:
node - The element to append to the VariableDecl list.
public void setVariableDecl(VariableDecl node,
                            int i)
Replaces the VariableDecl list element at index i with the new node node.
Parameters:
node - The new node to replace the old list element.
i - The list index of the node to be replaced.
Retrieves the VariableDecl list.
Returns:
The node representing the VariableDecl list.
Retrieves the VariableDecl list.

This method does not invoke AST transformations.

Returns:
The node representing the VariableDecl list.
Retrieves the VariableDecl list.
Returns:
The node representing the VariableDecl list.
Retrieves the VariableDecl list.

This method does not invoke AST transformations.

Returns:
The node representing the VariableDecl list.
Overrides:Define_NameType_nameType in class ASTNode<ASTNode>
Source
Declared in Java1.4Frontend/SyntacticClassification.jrag at line 84
Overrides:Define_TypeDecl_declType in class ASTNode<ASTNode>
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 258
Overrides:rewriteTo in class Stmt

Fields

protected boolean canCompleteNormally_value

Inherited Members

Attributes inherited from AST.Stmt

Attributes inherited from AST.ASTNode

Methods inherited from class AST.Stmt

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.Stmt

Fields inherited from AST.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value