|
||||||||||
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
Fields inherited from class org.eclipse.jdt.internal.compiler.ast.Statement |
---|
COMPLAINED_FAKE_REACHABLE, COMPLAINED_UNREACHABLE, NOT_COMPLAINED |
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,
boolean eraseThrownExceptions)
|
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 |
parseMethods(Parser parser,
CompilationUnitDeclaration unit)
|
StringBuffer |
print(int indent,
StringBuffer output)
|
StringBuffer |
printBody(int indent,
StringBuffer output)
|
StringBuffer |
printHeader(int indent,
StringBuffer output)
|
StringBuffer |
printStatement(int tab,
StringBuffer output)
|
void |
resolve()
|
void |
resolve(BlockScope blockScope)
Resolve a local type declaration |
void |
resolve(ClassScope upperScope)
Resolve a member type declaration (can be a local member) |
void |
resolve(CompilationUnitScope upperScope)
Resolve a top level type declaration |
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, checkAgainstNullAnnotation, complainIfUnreachable, expectedType, generateArguments, isBoxingCompatible, isEmptyBlock, isKnowDeadCodePattern, 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 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
public CompilationResult compilationResult
public MethodDeclaration[] missingAbstractMethods
public Javadoc javadoc
public QualifiedAllocationExpression allocation
public TypeDeclaration enclosingType
public FieldBinding enumValuesSyntheticfield
public int enumConstantsCounter
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, boolean eraseThrownExceptions)
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 parseMethods(Parser parser, CompilationUnitDeclaration unit)
public StringBuffer print(int indent, StringBuffer output)
print
in class Statement
public StringBuffer printBody(int indent, StringBuffer output)
public StringBuffer printHeader(int indent, StringBuffer output)
public StringBuffer printStatement(int tab, 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 |