AST
node type FieldDecl

General Info

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

Description

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

Member Filters

API level:

Aspect:

Constructors

public FieldDecl()
 
public FieldDecl(Modifiers p0,
                 Access p1,
                 List<VariableDecl> p2)
 

Attributes

syn boolean isStatic()
Specified by:isStatic in class MemberDecl
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 243
Aspect
Modifiers

Methods

public void flushCache()
Overrides:flushCache in class MemberDecl
public void flushCollectionCache()
Overrides:flushCollectionCache in class MemberDecl
public FieldDecl clone()
                throws java.lang.CloneNotSupportedException
Overrides:clone in class MemberDecl
Throws:
java.lang.CloneNotSupportedException
public FieldDecl 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 MemberDecl
protected int numChildren()
Overrides:numChildren in class MemberDecl
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class MemberDecl
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 77
Overrides:Define_TypeDecl_declType in class ASTNode<ASTNode>
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 257
Overrides:rewriteTo in class MemberDecl

Inherited Members

Attributes inherited from AST.MemberDecl

Attributes inherited from AST.BodyDecl

Attributes inherited from AST.ASTNode

Methods inherited from class AST.MemberDecl

Methods inherited from class AST.BodyDecl

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

Fields inherited from AST.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value