|
|||||||||
| 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.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 org.aspectj.org.eclipse.jdt.internal.core.JavaElementInfo |
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 static byte[] |
NO_BYTES
Empty collections used for efficient initialization |
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 | |
|---|---|
void |
acceptImport(int declarationStart,
int declarationEnd,
char[][] tokens,
boolean onDemand,
int modifiers)
|
void |
acceptLineSeparatorPositions(int[] positions)
|
void |
acceptPackage(int declarationStart,
int declarationEnd,
char[] name)
|
void |
acceptProblem(CategorizedProblem problem)
|
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)
|
protected void |
enterTypeParameter(ISourceElementRequestor.TypeParameterInfo typeParameterInfo)
|
void |
exitCompilationUnit(int declarationEnd)
|
void |
exitConstructor(int declarationEnd)
|
void |
exitField(int initializationStart,
int declarationEnd,
int declarationSourceEnd)
|
void |
exitInitializer(int declarationEnd)
|
protected void |
exitMember(int declarationEnd)
common processing for classes and interfaces |
void |
exitMethod(int declarationEnd,
int defaultValueStart,
int defaultValueEnd)
|
void |
exitType(int declarationEnd)
|
protected void |
resolveDuplicates(SourceRefElement handle)
Resolves duplicate handles by incrementing the occurrence count of the handle being created until there is no conflict. |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.util.ReferenceInfoAdapter |
|---|
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 |
|---|
acceptConstructorReference, acceptFieldReference, acceptMethodReference, acceptTypeReference, acceptTypeReference, acceptUnknownReference, acceptUnknownReference |
| Field Detail |
|---|
protected ICompilationUnit unit
protected CompilationUnitElementInfo unitInfo
protected org.aspectj.org.eclipse.jdt.internal.core.JavaElementInfo importContainerInfo
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 static byte[] NO_BYTES
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,
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.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 ISourceElementRequestor
public void acceptPackage(int declarationStart,
int declarationEnd,
char[] name)
acceptPackage in interface ISourceElementRequestorISourceElementRequestorpublic void acceptProblem(CategorizedProblem problem)
acceptProblem in interface ISourceElementRequestorpublic 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 ISourceElementRequestorISourceElementRequestorprotected void enterTypeParameter(ISourceElementRequestor.TypeParameterInfo typeParameterInfo)
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 ISourceElementRequestorISourceElementRequestorprotected void exitMember(int declarationEnd)
public void exitMethod(int declarationEnd,
int defaultValueStart,
int defaultValueEnd)
exitMethod in interface ISourceElementRequestorISourceElementRequestorpublic void exitType(int declarationEnd)
exitType in interface ISourceElementRequestorISourceElementRequestorprotected void resolveDuplicates(SourceRefElement handle)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||