AST
node type BodyDecl

General Info

Production
BodyDecl : ASTNode;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by AST.ASTNode<ASTNode>
          extended by AST.BodyDecl
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>
Direct Known Subclasses:
ConstructorDecl, InstanceInitializer, MemberDecl, StaticInitializer

Description

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

Member Filters

API level:

Aspect:

Constructors

public BodyDecl()
 

Attributes

syn boolean isDAafter(Variable v)
Source
Declared in Java1.4Frontend/DefiniteAssignment.jrag at line 243
Aspect
DA
syn boolean isDUafter(Variable v)
Source
Declared in Java1.4Frontend/DefiniteAssignment.jrag at line 708
Aspect
DU
syn boolean declaresType(java.lang.String name)
Source
Declared in Java1.4Frontend/LookupType.jrag at line 479
Aspect
TypeScopePropagation
syn TypeDecl type(java.lang.String name)
Source
Declared in Java1.4Frontend/LookupType.jrag at line 481
Aspect
TypeScopePropagation
syn boolean addsIndentationLevel()
Overrides:addsIndentationLevel in class ASTNode<ASTNode>
Source
Declared in Java1.4Frontend/PrettyPrint.jadd at line 758
Aspect
PrettyPrint
syn boolean isVoid()
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 271
Aspect
TypeAnalysis
syn java.util.Collection attributes()
Source
Declared in Java1.4Backend/Attributes.jrag at line 182
Aspect
Attributes
syn boolean isBytecodeField()
Source
Declared in Java1.4Backend/GenerateClassfile.jrag at line 293
Aspect
GenerateClassfile
syn boolean isBytecodeMethod()
Source
Declared in Java1.4Backend/GenerateClassfile.jrag at line 296
Aspect
GenerateClassfile
syn boolean generate()
Source
Declared in Java1.4Backend/GenerateClassfile.jrag at line 300
Aspect
GenerateClassfile
syn boolean hasAnnotationSuppressWarnings(java.lang.String s)
Source
Declared in Java1.5Frontend/Annotations.jrag at line 283
Aspect
Annotations
syn boolean isDeprecated()
Source
Declared in Java1.5Frontend/Annotations.jrag at line 326
Aspect
Annotations
syn boolean isEnumConstant()
Source
Declared in Java1.5Frontend/Enums.jrag at line 26
Aspect
Enums
syn boolean visibleTypeParameters()
Source
Declared in Java1.5Frontend/GenericsParTypeDecl.jrag at line 67
Aspect
GenericsParTypeDecl
Source
Declared in Java1.5Backend/GenericsCodegen.jrag at line 362
Aspect
GenericsCodegen
Returns:
true if the modifier list includes the SafeVarargs annotation
Source
Declared in Java7Frontend/SafeVarargs.jrag at line 20
Aspect
SafeVarargs
It is an error if the SafeVarargs annotation is used on something that is not a variable arity method or constructor.
Source
Declared in Java7Frontend/SafeVarargs.jrag at line 56
Aspect
SafeVarargs
inh boolean isDAbefore(Variable v)
Source
Declared in Java1.4Frontend/DefiniteAssignment.jrag at line 242
Aspect
DA
inh boolean isDUbefore(Variable v)
Source
Declared in Java1.4Frontend/DefiniteAssignment.jrag at line 707
Aspect
DU
Source
Declared in Java1.4Frontend/ExceptionHandling.jrag at line 22
Aspect
ExceptionHandling
inh java.util.Collection lookupMethod(java.lang.String name)
Source
Declared in Java1.4Frontend/LookupMethod.jrag at line 25
Aspect
LookupMethod
inh TypeDecl lookupType(java.lang.String packageName,
                    java.lang.String typeName)
Source
Declared in Java1.4Frontend/LookupType.jrag at line 97
Aspect
LookupFullyQualifiedTypes
inh SimpleSet lookupType(java.lang.String name)
Source
Declared in Java1.4Frontend/LookupType.jrag at line 261
Aspect
TypeScopePropagation
inh SimpleSet lookupVariable(java.lang.String name)
Source
Declared in Java1.4Frontend/LookupVariable.jrag at line 15
Aspect
VariableScope
Source
Declared in Java1.4Frontend/SyntacticClassification.jrag at line 21
Aspect
SyntacticClassification
inh java.lang.String hostPackage()
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 566
Aspect
NestedTypes
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 585
Aspect
NestedTypes

Methods

public void flushCache()
Overrides:flushCache in class ASTNode<ASTNode>
public void flushCollectionCache()
Overrides:flushCollectionCache in class ASTNode<ASTNode>
public BodyDecl clone()
               throws java.lang.CloneNotSupportedException
Overrides:clone in class ASTNode<ASTNode>
Throws:
java.lang.CloneNotSupportedException
public void collectFinally(Stmt branchStmt,
                           java.util.ArrayList list)
Overrides:collectFinally in class ASTNode<ASTNode>
Source
Declared in Java1.4Frontend/BranchTarget.jrag at line 210
Aspect
BranchTarget
public void generateMethod(java.io.DataOutputStream out,
                           ConstantPool cp)
                    throws java.io.IOException
Throws:
java.io.IOException
Source
Declared in Java1.4Backend/GenerateClassfile.jrag at line 242
Aspect
GenerateClassfile
public void touchMethod(ConstantPool cp)
Source
Declared in Java1.4Backend/GenerateClassfile.jrag at line 261
Aspect
GenerateClassfile
Source
Declared in Java1.5Frontend/Generics.jrag at line 1238
Aspect
LookupParTypeDecl
public void checkWarnings()
We must report illegal uses of the SafeVarargs annotation. It is only allowed on variable arity method and constructor declarations.
Overrides:checkWarnings in class ASTNode<ASTNode>
Source
Declared in Java7Frontend/SafeVarargs.jrag at line 93
Aspect
SafeVarargs
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 java.lang.String Define_String_typeDeclIndent(ASTNode caller,
                                                     ASTNode child)
Overrides:Define_String_typeDeclIndent in class ASTNode<ASTNode>
Source
Declared in Java1.4Frontend/PrettyPrint.jadd at line 353
Overrides:Define_BodyDecl_enclosingBodyDecl in class ASTNode<ASTNode>
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 514
public boolean Define_boolean_resourcePreviouslyDeclared(ASTNode caller,
                                                         ASTNode child,
                                                         java.lang.String name)
Overrides:Define_boolean_resourcePreviouslyDeclared in class ASTNode<ASTNode>
Source
Declared in Java7Frontend/TryWithResources.jrag at line 153
Overrides:rewriteTo in class ASTNode<ASTNode>

Fields

protected java.util.Map isDAafter_Variable_values
protected java.util.Map isDUafter_Variable_values
protected boolean attributes_computed
protected java.util.Collection attributes_value
protected java.util.Map isDAbefore_Variable_values
protected java.util.Map isDUbefore_Variable_values
protected boolean typeThrowable_computed
protected java.util.Map lookupVariable_String_values

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