|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.aspectj.org.eclipse.jdt.internal.core.util.ReferenceInfoAdapter
org.aspectj.org.eclipse.jdt.internal.core.CompilationUnitStructureRequestor
public class CompilationUnitStructureRequestor
A requestor for the fuzzy parser, used to compute the children of an ICompilationUnit.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.ISourceElementRequestor |
|---|
ISourceElementRequestor.FieldInfo, ISourceElementRequestor.MethodInfo, ISourceElementRequestor.ParameterInfo, ISourceElementRequestor.TypeInfo, ISourceElementRequestor.TypeParameterInfo |
| Field Summary | |
|---|---|
protected java.util.HashMap |
children
|
protected HashtableOfObject |
fieldRefCache
|
protected java.util.Stack |
handleStack
Stack of parent handles, corresponding to the info stack. |
protected boolean |
hasSyntaxErrors
Problem requestor which will get notified of discovered problems |
protected ImportContainer |
importContainer
|
protected ImportContainerInfo |
importContainerInfo
The import container info - null until created |
protected java.util.Stack |
infoStack
Stack of parent scope info objects. |
protected HashtableOfObject |
messageRefCache
|
protected java.util.Map |
newElements
Hashtable of children elements of the compilation unit. |
protected Parser |
parser
|
protected int |
referenceCount
The number of references reported thus far. |
protected HashtableOfObject |
typeRefCache
|
protected ICompilationUnit |
unit
The handle to the compilation unit being parsed |
protected CompilationUnitElementInfo |
unitInfo
The info object for the compilation unit being parsed |
protected HashtableOfObject |
unknownRefCache
|
| Constructor Summary | |
|---|---|
protected |
CompilationUnitStructureRequestor(ICompilationUnit unit,
CompilationUnitElementInfo unitInfo,
java.util.Map newElements)
|
| Method Summary | |
|---|---|
protected IAnnotation |
acceptAnnotation(Annotation annotation,
AnnotatableInfo parentInfo,
JavaElement parentHandle)
|
void |
acceptImport(int declarationStart,
int declarationEnd,
int nameSourceStart,
int nameSourceEnd,
char[][] tokens,
boolean onDemand,
int modifiers)
|
void |
acceptLineSeparatorPositions(int[] positions)
|
void |
acceptPackage(ImportReference importReference)
|
void |
acceptProblem(CategorizedProblem problem)
|
protected void |
acceptTypeParameter(ISourceElementRequestor.TypeParameterInfo typeParameterInfo,
JavaElementInfo parentInfo)
|
protected static java.lang.String[] |
convertTypeNamesToSigs(char[][] typeNames)
Convert these type names to signatures. |
protected Annotation |
createAnnotation(JavaElement parent,
java.lang.String name)
|
protected SourceField |
createField(JavaElement parent,
ISourceElementRequestor.FieldInfo fieldInfo)
|
protected ImportContainer |
createImportContainer(ICompilationUnit parent)
|
protected ImportDeclaration |
createImportDeclaration(ImportContainer parent,
java.lang.String name,
boolean onDemand)
|
protected Initializer |
createInitializer(JavaElement parent)
|
protected SourceMethod |
createMethodHandle(JavaElement parent,
ISourceElementRequestor.MethodInfo methodInfo)
|
protected PackageDeclaration |
createPackageDeclaration(JavaElement parent,
java.lang.String name)
|
protected SourceType |
createTypeHandle(JavaElement parent,
ISourceElementRequestor.TypeInfo typeInfo)
|
protected TypeParameter |
createTypeParameter(JavaElement parent,
java.lang.String name)
|
void |
enterCompilationUnit()
|
void |
enterConstructor(ISourceElementRequestor.MethodInfo methodInfo)
|
void |
enterField(ISourceElementRequestor.FieldInfo fieldInfo)
|
void |
enterInitializer(int declarationSourceStart,
int modifiers)
|
void |
enterMethod(ISourceElementRequestor.MethodInfo methodInfo)
|
void |
enterType(ISourceElementRequestor.TypeInfo typeInfo)
|
void |
exitCompilationUnit(int declarationEnd)
|
void |
exitConstructor(int declarationEnd)
|
void |
exitField(int initializationStart,
int declarationEnd,
int declarationSourceEnd)
|
void |
exitInitializer(int declarationEnd)
|
void |
exitMethod(int declarationEnd,
Expression defaultValue)
|
void |
exitType(int declarationEnd)
|
protected java.lang.Object |
getMemberValue(MemberValuePair memberValuePair,
Expression expression)
|
protected IMemberValuePair |
getMemberValuePair(MemberValuePair memberValuePair)
|
protected IMemberValuePair[] |
getMemberValuePairs(MemberValuePair[] memberValuePairs)
|
protected void |
resolveDuplicates(SourceRefElement handle)
Resolves duplicate handles by incrementing the occurrence count of the handle being created. |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.util.ReferenceInfoAdapter |
|---|
acceptAnnotationTypeReference, acceptAnnotationTypeReference, acceptConstructorReference, acceptFieldReference, acceptMethodReference, acceptTypeReference, acceptTypeReference, acceptUnknownReference, acceptUnknownReference |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.ISourceElementRequestor |
|---|
acceptAnnotationTypeReference, acceptAnnotationTypeReference, acceptConstructorReference, acceptFieldReference, acceptMethodReference, acceptTypeReference, acceptTypeReference, acceptUnknownReference, acceptUnknownReference |
| Field Detail |
|---|
protected ICompilationUnit unit
protected CompilationUnitElementInfo unitInfo
protected ImportContainerInfo importContainerInfo
protected ImportContainer importContainer
protected java.util.Map newElements
protected java.util.Stack infoStack
protected java.util.HashMap children
protected java.util.Stack handleStack
protected int referenceCount
protected boolean hasSyntaxErrors
protected Parser parser
protected HashtableOfObject fieldRefCache
protected HashtableOfObject messageRefCache
protected HashtableOfObject typeRefCache
protected HashtableOfObject unknownRefCache
| Constructor Detail |
|---|
protected CompilationUnitStructureRequestor(ICompilationUnit unit,
CompilationUnitElementInfo unitInfo,
java.util.Map newElements)
| Method Detail |
|---|
public void acceptImport(int declarationStart,
int declarationEnd,
int nameSourceStart,
int nameSourceEnd,
char[][] tokens,
boolean onDemand,
int modifiers)
acceptImport in interface ISourceElementRequestordeclarationStart - This is the position of the first character of the import
keyword.declarationEnd - This is the position of the ';' ending the import statement or
the end of the comment following the import.nameSourceStart - This is the position of the first character of the import declaration's
name.nameSourceEnd - This is the position of the last character of the import declaration's
name.tokens - This are the tokens of the import like specified in the source.onDemand - set to true if the import is an import on demand (e.g. import
java.io.*). False otherwise.modifiers - can be set to static from 1.5 on.ISourceElementRequestorpublic void acceptLineSeparatorPositions(int[] positions)
acceptLineSeparatorPositions in interface ISourceElementRequestorpublic void acceptPackage(ImportReference importReference)
acceptPackage in interface ISourceElementRequestorISourceElementRequestorpublic void acceptProblem(CategorizedProblem problem)
acceptProblem in interface ISourceElementRequestor
protected Annotation createAnnotation(JavaElement parent,
java.lang.String name)
protected SourceField createField(JavaElement parent,
ISourceElementRequestor.FieldInfo fieldInfo)
protected ImportContainer createImportContainer(ICompilationUnit parent)
protected ImportDeclaration createImportDeclaration(ImportContainer parent,
java.lang.String name,
boolean onDemand)
protected Initializer createInitializer(JavaElement parent)
protected SourceMethod createMethodHandle(JavaElement parent,
ISourceElementRequestor.MethodInfo methodInfo)
protected PackageDeclaration createPackageDeclaration(JavaElement parent,
java.lang.String name)
protected SourceType createTypeHandle(JavaElement parent,
ISourceElementRequestor.TypeInfo typeInfo)
protected TypeParameter createTypeParameter(JavaElement parent,
java.lang.String name)
protected static java.lang.String[] convertTypeNamesToSigs(char[][] typeNames)
Signature
protected IAnnotation acceptAnnotation(Annotation annotation,
AnnotatableInfo parentInfo,
JavaElement parentHandle)
public void enterCompilationUnit()
enterCompilationUnit in interface ISourceElementRequestorISourceElementRequestorpublic void enterConstructor(ISourceElementRequestor.MethodInfo methodInfo)
enterConstructor in interface ISourceElementRequestorISourceElementRequestorpublic void enterField(ISourceElementRequestor.FieldInfo fieldInfo)
enterField in interface ISourceElementRequestorISourceElementRequestor
public void enterInitializer(int declarationSourceStart,
int modifiers)
enterInitializer in interface ISourceElementRequestorISourceElementRequestorpublic void enterMethod(ISourceElementRequestor.MethodInfo methodInfo)
enterMethod in interface ISourceElementRequestorISourceElementRequestorpublic void enterType(ISourceElementRequestor.TypeInfo typeInfo)
enterType in interface ISourceElementRequestorISourceElementRequestor
protected void acceptTypeParameter(ISourceElementRequestor.TypeParameterInfo typeParameterInfo,
JavaElementInfo parentInfo)
public void exitCompilationUnit(int declarationEnd)
exitCompilationUnit in interface ISourceElementRequestorISourceElementRequestorpublic void exitConstructor(int declarationEnd)
exitConstructor in interface ISourceElementRequestorISourceElementRequestor
public void exitField(int initializationStart,
int declarationEnd,
int declarationSourceEnd)
exitField in interface ISourceElementRequestorISourceElementRequestorpublic void exitInitializer(int declarationEnd)
exitInitializer in interface ISourceElementRequestorISourceElementRequestor
public void exitMethod(int declarationEnd,
Expression defaultValue)
exitMethod in interface ISourceElementRequestorISourceElementRequestorpublic void exitType(int declarationEnd)
exitType in interface ISourceElementRequestorISourceElementRequestorprotected void resolveDuplicates(SourceRefElement handle)
protected IMemberValuePair getMemberValuePair(MemberValuePair memberValuePair)
protected IMemberValuePair[] getMemberValuePairs(MemberValuePair[] memberValuePairs)
protected java.lang.Object getMemberValue(MemberValuePair memberValuePair,
Expression expression)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||