|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.internal.compiler.ast.ASTNode
org.eclipse.jdt.internal.compiler.ast.Statement
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration
public class TypeDeclaration
Field Summary | |
---|---|
QualifiedAllocationExpression |
allocation
|
static int |
ANNOTATION_TYPE_DECL
|
Annotation[] |
annotations
|
static char[] |
ANONYMOUS_EMPTY_NAME
|
SourceTypeBinding |
binding
|
int |
bodyEnd
|
int |
bodyStart
|
static int |
CLASS_DECL
|
CompilationResult |
compilationResult
|
int |
declarationSourceEnd
|
int |
declarationSourceStart
|
TypeDeclaration |
enclosingType
|
static int |
ENUM_DECL
|
FieldBinding |
enumValuesSyntheticfield
|
FieldDeclaration[] |
fields
|
protected boolean |
hasBeenGenerated
|
boolean |
ignoreFurtherInvestigation
|
MethodScope |
initializerScope
|
static int |
INTERFACE_DECL
|
Javadoc |
javadoc
|
int |
maxFieldCount
|
TypeDeclaration[] |
memberTypes
|
AbstractMethodDeclaration[] |
methods
|
MethodDeclaration[] |
missingAbstractMethods
|
int |
modifiers
|
int |
modifiersSourceStart
|
char[] |
name
|
ClassScope |
scope
|
MethodScope |
staticInitializerScope
|
TypeReference |
superclass
|
TypeReference[] |
superInterfaces
|
TypeParameter[] |
typeParameters
|
Fields inherited from interface org.eclipse.jdt.internal.compiler.problem.ProblemSeverities |
---|
Abort, AbortCompilation, AbortCompilationUnit, AbortMethod, AbortType, Error, Fatal, Ignore, Optional, SecondaryError, Warning |
Constructor Summary | |
---|---|
TypeDeclaration(CompilationResult compilationResult)
|
Method Summary | |
---|---|
void |
abort(int abortLevel,
CategorizedProblem problem)
|
void |
addClinit()
This method is responsible for adding a |
MethodDeclaration |
addMissingAbstractMethodFor(MethodBinding methodBinding)
|
FlowInfo |
analyseCode(BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo)
Flow analysis for a local innertype |
void |
analyseCode(ClassScope enclosingClassScope)
Flow analysis for a member innertype |
void |
analyseCode(ClassScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo)
Flow analysis for a local member innertype |
void |
analyseCode(CompilationUnitScope unitScope)
Flow analysis for a package member type |
boolean |
checkConstructors(Parser parser)
Check for constructor vs. |
CompilationResult |
compilationResult()
|
ConstructorDeclaration |
createDefaultConstructor(boolean needExplicitConstructorCall,
boolean needToInsert)
|
MethodBinding |
createDefaultConstructorWithBinding(MethodBinding inheritedConstructorBinding)
|
FieldDeclaration |
declarationOf(FieldBinding fieldBinding)
Find the matching parse node, answers null if nothing found |
TypeDeclaration |
declarationOf(MemberTypeBinding memberTypeBinding)
Find the matching parse node, answers null if nothing found |
AbstractMethodDeclaration |
declarationOf(MethodBinding methodBinding)
Find the matching parse node, answers null if nothing found |
TypeDeclaration |
declarationOfType(char[][] typeName)
Finds the matching type amoung this type's member types. |
void |
generateCode(BlockScope blockScope,
CodeStream codeStream)
Bytecode generation for a local inner type (API as a normal statement code gen) |
void |
generateCode(ClassFile enclosingClassFile)
Generic bytecode generation for type |
void |
generateCode(ClassScope classScope,
ClassFile enclosingClassFile)
Bytecode generation for a member inner type |
void |
generateCode(CompilationUnitScope unitScope)
Bytecode generation for a package member |
boolean |
hasErrors()
|
boolean |
isSecondary()
Returns whether the type is a secondary one or not. |
static int |
kind(int flags)
|
void |
manageEnclosingInstanceAccessIfNecessary(BlockScope currentScope,
FlowInfo flowInfo)
|
void |
manageEnclosingInstanceAccessIfNecessary(ClassScope currentScope,
FlowInfo flowInfo)
Access emulation for a local member type force to emulation of access to direct enclosing instance. |
boolean |
needClassInitMethod()
A |
void |
parseMethod(Parser parser,
CompilationUnitDeclaration unit)
|
java.lang.StringBuffer |
print(int indent,
java.lang.StringBuffer output)
|
java.lang.StringBuffer |
printBody(int indent,
java.lang.StringBuffer output)
|
java.lang.StringBuffer |
printHeader(int indent,
java.lang.StringBuffer output)
|
java.lang.StringBuffer |
printStatement(int tab,
java.lang.StringBuffer output)
|
void |
resolve()
|
void |
resolve(BlockScope blockScope)
|
void |
resolve(ClassScope upperScope)
|
void |
resolve(CompilationUnitScope upperScope)
|
void |
tagAsHavingErrors()
|
void |
traverse(ASTVisitor visitor,
BlockScope blockScope)
Iteration for a local innertype |
void |
traverse(ASTVisitor visitor,
ClassScope classScope)
Iteration for a member innertype |
void |
traverse(ASTVisitor visitor,
CompilationUnitScope unitScope)
Iteration for a package member type |
Methods inherited from class org.eclipse.jdt.internal.compiler.ast.Statement |
---|
branchChainTo, complainIfUnreachable, generateArguments, isEmptyBlock, isValidJavaStatement, resolveCase |
Methods inherited from class org.eclipse.jdt.internal.compiler.ast.ASTNode |
---|
checkInvocationArguments, concreteStatement, isFieldUseDeprecated, isImplicitThis, isMethodUseDeprecated, isSuper, isThis, isTypeUseDeprecated, printAnnotations, printIndent, printModifiers, resolveAnnotations, resolveDeprecatedAnnotations, sourceEnd, sourceStart, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final char[] ANONYMOUS_EMPTY_NAME
public static final int CLASS_DECL
public static final int INTERFACE_DECL
public static final int ENUM_DECL
public static final int ANNOTATION_TYPE_DECL
public int modifiers
public int modifiersSourceStart
public Annotation[] annotations
public char[] name
public TypeReference superclass
public TypeReference[] superInterfaces
public FieldDeclaration[] fields
public AbstractMethodDeclaration[] methods
public TypeDeclaration[] memberTypes
public SourceTypeBinding binding
public ClassScope scope
public MethodScope initializerScope
public MethodScope staticInitializerScope
public boolean ignoreFurtherInvestigation
public int maxFieldCount
public int declarationSourceStart
public int declarationSourceEnd
public int bodyStart
public int bodyEnd
protected boolean hasBeenGenerated
public CompilationResult compilationResult
public MethodDeclaration[] missingAbstractMethods
public Javadoc javadoc
public QualifiedAllocationExpression allocation
public TypeDeclaration enclosingType
public FieldBinding enumValuesSyntheticfield
public TypeParameter[] typeParameters
Constructor Detail |
---|
public TypeDeclaration(CompilationResult compilationResult)
Method Detail |
---|
public void abort(int abortLevel, CategorizedProblem problem)
abort
in interface ReferenceContext
public final void addClinit()
ConstantPool.resetForClinit(int, int)
public MethodDeclaration addMissingAbstractMethodFor(MethodBinding methodBinding)
public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo)
analyseCode
in class Statement
public void analyseCode(ClassScope enclosingClassScope)
public void analyseCode(ClassScope currentScope, FlowContext flowContext, FlowInfo flowInfo)
public void analyseCode(CompilationUnitScope unitScope)
public boolean checkConstructors(Parser parser)
public CompilationResult compilationResult()
compilationResult
in interface ReferenceContext
public ConstructorDeclaration createDefaultConstructor(boolean needExplicitConstructorCall, boolean needToInsert)
public MethodBinding createDefaultConstructorWithBinding(MethodBinding inheritedConstructorBinding)
public FieldDeclaration declarationOf(FieldBinding fieldBinding)
public TypeDeclaration declarationOf(MemberTypeBinding memberTypeBinding)
public AbstractMethodDeclaration declarationOf(MethodBinding methodBinding)
public TypeDeclaration declarationOfType(char[][] typeName)
public void generateCode(ClassFile enclosingClassFile)
public void generateCode(BlockScope blockScope, CodeStream codeStream)
generateCode
in class Statement
public void generateCode(ClassScope classScope, ClassFile enclosingClassFile)
public void generateCode(CompilationUnitScope unitScope)
public boolean hasErrors()
hasErrors
in interface ReferenceContext
public static final int kind(int flags)
public void manageEnclosingInstanceAccessIfNecessary(BlockScope currentScope, FlowInfo flowInfo)
public void manageEnclosingInstanceAccessIfNecessary(ClassScope currentScope, FlowInfo flowInfo)
public final boolean needClassInitMethod()
public void parseMethod(Parser parser, CompilationUnitDeclaration unit)
public java.lang.StringBuffer print(int indent, java.lang.StringBuffer output)
print
in class Statement
public java.lang.StringBuffer printBody(int indent, java.lang.StringBuffer output)
public java.lang.StringBuffer printHeader(int indent, java.lang.StringBuffer output)
public java.lang.StringBuffer printStatement(int tab, java.lang.StringBuffer output)
printStatement
in class Statement
public void resolve()
public void resolve(BlockScope blockScope)
resolve
in class Statement
public void resolve(ClassScope upperScope)
public void resolve(CompilationUnitScope upperScope)
public void tagAsHavingErrors()
tagAsHavingErrors
in interface ReferenceContext
public void traverse(ASTVisitor visitor, CompilationUnitScope unitScope)
public void traverse(ASTVisitor visitor, BlockScope blockScope)
traverse
in class ASTNode
public void traverse(ASTVisitor visitor, ClassScope classScope)
public boolean isSecondary()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |