CompilationUnit
::= Modifiers
;- Type Hierarchy:
java.lang.Object
beaver.Symbol
AST.ASTNode<ASTNode>
AST.CompilationUnit
AST.AnnotatedCompilationUnit
- All Implemented Interfaces:
- java.lang.Cloneable, java.lang.Iterable<ASTNode>
|
|||||||
FRAMES NO FRAMES |
CompilationUnit
::= Modifiers
;java.lang.Objectbeaver.Symbol
AST.ASTNode<ASTNode>
AST.CompilationUnit
AST.AnnotatedCompilationUnit
Java1.5Frontend/Annotations.ast
at line 16
public AnnotatedCompilationUnit()
public AnnotatedCompilationUnit(java.lang.String p0, List<ImportDecl> p1, List<TypeDecl> p2, Modifiers p3)
public AnnotatedCompilationUnit(beaver.Symbol p0, List<ImportDecl> p1, List<TypeDecl> p2, Modifiers p3)
public void flushCache()
flushCache
in class CompilationUnit
public void flushCollectionCache()
flushCollectionCache
in class CompilationUnit
public AnnotatedCompilationUnit clone() throws java.lang.CloneNotSupportedException
clone
in class CompilationUnit
java.lang.CloneNotSupportedException
public AnnotatedCompilationUnit copy()
copy
in class CompilationUnit
public AnnotatedCompilationUnit fullCopy()
fullCopy
in class CompilationUnit
public void nameCheck()
nameCheck
in class CompilationUnit
Java1.5Frontend/Annotations.jrag
at line 21
public void toString(java.lang.StringBuffer s)
toString
in class CompilationUnit
Java1.5Frontend/Annotations.jrag
at line 557
public void init$Children()
init$Children
in class CompilationUnit
protected int numChildren()
numChildren
in class CompilationUnit
public boolean mayHaveRewrite()
mayHaveRewrite
in class CompilationUnit
public void setPackageDecl(java.lang.String value)
setPackageDecl
in class CompilationUnit
value
- The new value for the lexeme PackageDecl.public void setPackageDecl(beaver.Symbol symbol)
setPackageDecl
in class CompilationUnit
public java.lang.String getPackageDecl()
getPackageDecl
in class CompilationUnit
public void setImportDeclList(List<ImportDecl> list)
setImportDeclList
in class CompilationUnit
list
- The new list node to be used as the ImportDecl list.public int getNumImportDecl()
getNumImportDecl
in class CompilationUnit
public int getNumImportDeclNoTransform()
getNumImportDeclNoTransform
in class CompilationUnit
public ImportDecl getImportDecl(int i)
i
in the ImportDecl list..getImportDecl
in class CompilationUnit
i
- Index of the element to return.
i
in the ImportDecl list.public void addImportDecl(ImportDecl node)
addImportDecl
in class CompilationUnit
node
- The element to append to the ImportDecl list.public void addImportDeclNoTransform(ImportDecl node)
addImportDeclNoTransform
in class CompilationUnit
public void setImportDecl(ImportDecl node, int i)
i
with the new node node
.setImportDecl
in class CompilationUnit
node
- The new node to replace the old list element.i
- The list index of the node to be replaced.public List<ImportDecl> getImportDecls()
getImportDecls
in class CompilationUnit
public List<ImportDecl> getImportDeclsNoTransform()
This method does not invoke AST transformations.
getImportDeclsNoTransform
in class CompilationUnit
public List<ImportDecl> getImportDeclList()
getImportDeclList
in class CompilationUnit
public List<ImportDecl> getImportDeclListNoTransform()
This method does not invoke AST transformations.
getImportDeclListNoTransform
in class CompilationUnit
public void setTypeDeclList(List<TypeDecl> list)
setTypeDeclList
in class CompilationUnit
list
- The new list node to be used as the TypeDecl list.public int getNumTypeDecl()
getNumTypeDecl
in class CompilationUnit
public int getNumTypeDeclNoTransform()
getNumTypeDeclNoTransform
in class CompilationUnit
public TypeDecl getTypeDecl(int i)
i
in the TypeDecl list..getTypeDecl
in class CompilationUnit
i
- Index of the element to return.
i
in the TypeDecl list.public void addTypeDecl(TypeDecl node)
addTypeDecl
in class CompilationUnit
node
- The element to append to the TypeDecl list.public void addTypeDeclNoTransform(TypeDecl node)
addTypeDeclNoTransform
in class CompilationUnit
public void setTypeDecl(TypeDecl node, int i)
i
with the new node node
.setTypeDecl
in class CompilationUnit
node
- The new node to replace the old list element.i
- The list index of the node to be replaced.public List<TypeDecl> getTypeDecls()
getTypeDecls
in class CompilationUnit
public List<TypeDecl> getTypeDeclsNoTransform()
This method does not invoke AST transformations.
getTypeDeclsNoTransform
in class CompilationUnit
public List<TypeDecl> getTypeDeclList()
getTypeDeclList
in class CompilationUnit
public List<TypeDecl> getTypeDeclListNoTransform()
This method does not invoke AST transformations.
getTypeDeclListNoTransform
in class CompilationUnit
public void setModifiers(Modifiers node)
node
- The new node to replace the Modifiers child.public Modifiers getModifiers()
public Modifiers getModifiersNoTransform()
This method does not invoke AST transformations.
public boolean Define_boolean_mayUseAnnotationTarget(ASTNode caller, ASTNode child, java.lang.String name)
Define_boolean_mayUseAnnotationTarget
in class ASTNode<ASTNode>
Java1.5Frontend/Annotations.jrag
at line 71
public java.lang.String Define_String_hostPackage(ASTNode caller, ASTNode child)
Define_String_hostPackage
in class CompilationUnit
Java1.5Frontend/Annotations.jrag
at line 552
rewriteTo
in class CompilationUnit
|
|||||||
FRAMES NO FRAMES |