AST
node type PrimitiveCompilationUnit

General Info

Production
PrimitiveCompilationUnit : CompilationUnit;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by AST.ASTNode<ASTNode>
          extended by AST.CompilationUnit
              extended by AST.PrimitiveCompilationUnit
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>

Description

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

Member Filters

API level:

Aspect:

Constructors

public PrimitiveCompilationUnit(java.lang.String p0,
                                List<ImportDecl> p1,
                                List<TypeDecl> p2)
 
public PrimitiveCompilationUnit(beaver.Symbol p0,
                                List<ImportDecl> p1,
                                List<TypeDecl> p2)
 

Attributes

Source
Declared in Java1.4Frontend/PrimitiveTypes.jrag at line 120
Aspect
PrimitiveTypes
Source
Declared in Java1.4Frontend/PrimitiveTypes.jrag at line 127
Aspect
PrimitiveTypes
Source
Declared in Java1.4Frontend/PrimitiveTypes.jrag at line 134
Aspect
PrimitiveTypes
Source
Declared in Java1.4Frontend/PrimitiveTypes.jrag at line 141
Aspect
PrimitiveTypes
Source
Declared in Java1.4Frontend/PrimitiveTypes.jrag at line 148
Aspect
PrimitiveTypes
Source
Declared in Java1.4Frontend/PrimitiveTypes.jrag at line 156
Aspect
PrimitiveTypes
Source
Declared in Java1.4Frontend/PrimitiveTypes.jrag at line 163
Aspect
PrimitiveTypes
Source
Declared in Java1.4Frontend/PrimitiveTypes.jrag at line 170
Aspect
PrimitiveTypes
Source
Declared in Java1.4Frontend/PrimitiveTypes.jrag at line 176
Aspect
PrimitiveTypes
Source
Declared in Java1.4Frontend/PrimitiveTypes.jrag at line 182
Aspect
PrimitiveTypes

Methods

public void flushCache()
Overrides:flushCache in class CompilationUnit
public PrimitiveCompilationUnit clone()
                               throws java.lang.CloneNotSupportedException
Overrides:clone in class CompilationUnit
Throws:
java.lang.CloneNotSupportedException
Overrides:copy in class CompilationUnit
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
Overrides:fullCopy in class CompilationUnit
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 CompilationUnit
protected int numChildren()
Overrides:numChildren in class CompilationUnit
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class CompilationUnit
public void setPackageDecl(java.lang.String value)
Replaces the lexeme PackageDecl.
Overrides:setPackageDecl in class CompilationUnit
Parameters:
value - The new value for the lexeme PackageDecl.
public void setPackageDecl(beaver.Symbol symbol)
JastAdd-internal setter for lexeme PackageDecl using the Beaver parser.
Overrides:setPackageDecl in class CompilationUnit
public java.lang.String getPackageDecl()
Retrieves the value for the lexeme PackageDecl.
Overrides:getPackageDecl in class CompilationUnit
Returns:
The value for the lexeme PackageDecl.
public void setImportDeclList(List<ImportDecl> list)
Replaces the ImportDecl list.
Overrides:setImportDeclList in class CompilationUnit
Parameters:
list - The new list node to be used as the ImportDecl list.
public int getNumImportDecl()
Retrieves the number of children in the ImportDecl list.
Overrides:getNumImportDecl in class CompilationUnit
Returns:
Number of children in the ImportDecl list.
Retrieves the number of children in the ImportDecl list. Calling this method will not trigger rewrites..
Overrides:getNumImportDeclNoTransform in class CompilationUnit
Returns:
Number of children in the ImportDecl list.
public ImportDecl getImportDecl(int i)
Retrieves the element at index i in the ImportDecl list..
Overrides:getImportDecl in class CompilationUnit
Parameters:
i - Index of the element to return.
Returns:
The element at position i in the ImportDecl list.
public void addImportDecl(ImportDecl node)
Append an element to the ImportDecl list.
Overrides:addImportDecl in class CompilationUnit
Parameters:
node - The element to append to the ImportDecl list.
public void setImportDecl(ImportDecl node,
                          int i)
Replaces the ImportDecl list element at index i with the new node node.
Overrides:setImportDecl in class CompilationUnit
Parameters:
node - The new node to replace the old list element.
i - The list index of the node to be replaced.
Retrieves the ImportDecl list.
Overrides:getImportDecls in class CompilationUnit
Returns:
The node representing the ImportDecl list.
Retrieves the ImportDecl list.

This method does not invoke AST transformations.

Overrides:getImportDeclsNoTransform in class CompilationUnit
Returns:
The node representing the ImportDecl list.
Retrieves the ImportDecl list.
Overrides:getImportDeclList in class CompilationUnit
Returns:
The node representing the ImportDecl list.
Retrieves the ImportDecl list.

This method does not invoke AST transformations.

Overrides:getImportDeclListNoTransform in class CompilationUnit
Returns:
The node representing the ImportDecl list.
public void setTypeDeclList(List<TypeDecl> list)
Replaces the TypeDecl list.
Overrides:setTypeDeclList in class CompilationUnit
Parameters:
list - The new list node to be used as the TypeDecl list.
public int getNumTypeDecl()
Retrieves the number of children in the TypeDecl list.
Overrides:getNumTypeDecl in class CompilationUnit
Returns:
Number of children in the TypeDecl list.
Retrieves the number of children in the TypeDecl list. Calling this method will not trigger rewrites..
Overrides:getNumTypeDeclNoTransform in class CompilationUnit
Returns:
Number of children in the TypeDecl list.
public TypeDecl getTypeDecl(int i)
Retrieves the element at index i in the TypeDecl list..
Overrides:getTypeDecl in class CompilationUnit
Parameters:
i - Index of the element to return.
Returns:
The element at position i in the TypeDecl list.
public void addTypeDecl(TypeDecl node)
Append an element to the TypeDecl list.
Overrides:addTypeDecl in class CompilationUnit
Parameters:
node - The element to append to the TypeDecl list.
public void setTypeDecl(TypeDecl node,
                        int i)
Replaces the TypeDecl list element at index i with the new node node.
Overrides:setTypeDecl in class CompilationUnit
Parameters:
node - The new node to replace the old list element.
i - The list index of the node to be replaced.
Retrieves the TypeDecl list.
Overrides:getTypeDecls in class CompilationUnit
Returns:
The node representing the TypeDecl list.
Retrieves the TypeDecl list.

This method does not invoke AST transformations.

Overrides:getTypeDeclsNoTransform in class CompilationUnit
Returns:
The node representing the TypeDecl list.
Retrieves the TypeDecl list.
Overrides:getTypeDeclList in class CompilationUnit
Returns:
The node representing the TypeDecl list.
Retrieves the TypeDecl list.

This method does not invoke AST transformations.

Overrides:getTypeDeclListNoTransform in class CompilationUnit
Returns:
The node representing the TypeDecl list.
Overrides:rewriteTo in class CompilationUnit

Fields

protected boolean typeBoolean_computed
protected boolean typeByte_computed
protected boolean typeShort_computed
protected boolean typeChar_computed
protected boolean typeInt_computed
protected boolean typeLong_computed
protected boolean typeFloat_computed
protected boolean typeDouble_computed
protected boolean typeVoid_computed
protected boolean typeNull_computed
protected boolean unknownType_computed

Inherited Members

Attributes inherited from AST.CompilationUnit

Attributes inherited from AST.ASTNode

Methods inherited from class AST.CompilationUnit

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

Fields inherited from AST.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value