Klasse CompilationUnitStructureRequestor
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.ReferenceInfoAdapter
org.aspectj.org.eclipse.jdt.internal.core.CompilationUnitStructureRequestor
- Alle implementierten Schnittstellen:
ISourceElementRequestor
- Bekannte direkte Unterklassen:
CompletionUnitStructureRequestor
public class CompilationUnitStructureRequestor
extends ReferenceInfoAdapter
implements ISourceElementRequestor
A requestor for the fuzzy parser, used to compute the children of an ICompilationUnit.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.aspectj.org.eclipse.jdt.internal.compiler.ISourceElementRequestor
ISourceElementRequestor.FieldInfo, ISourceElementRequestor.MethodInfo, ISourceElementRequestor.ModuleInfo, ISourceElementRequestor.PackageExportInfo, ISourceElementRequestor.ParameterInfo, ISourceElementRequestor.RequiresInfo, ISourceElementRequestor.ServicesInfo, ISourceElementRequestor.TypeInfo, ISourceElementRequestor.TypeParameterInfo -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected HashMapprotected HashtableOfObjectprotected StackStack of parent handles, corresponding to the info stack.protected booleanProblem requestor which will get notified of discovered problemsprotected ImportContainerprotected ImportContainerInfoThe import container info - null until createdprotected StackStack of parent scope info objects.protected HashtableOfObjectprotected MapHashtable of children elements of the compilation unit.protected Parserprotected intThe number of references reported thus far.protected HashtableOfObjectprotected ICompilationUnitThe handle to the compilation unit being parsedprotected CompilationUnitElementInfoThe info object for the compilation unit being parsedprotected HashtableOfObject -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedCompilationUnitStructureRequestor(ICompilationUnit unit, CompilationUnitElementInfo unitInfo, Map newElements) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected IAnnotationacceptAnnotation(Annotation annotation, AnnotatableInfo parentInfo, JavaElement parentHandle) voidacceptImport(int declarationStart, int declarationEnd, int nameSourceStart, int nameSourceEnd, char[][] tokens, boolean onDemand, int modifiers) voidacceptLineSeparatorPositions(int[] positions) voidacceptPackage(ImportReference importReference) voidacceptProblem(CategorizedProblem problem) protected voidacceptTypeParameter(ISourceElementRequestor.TypeParameterInfo typeParameterInfo, JavaElementInfo parentInfo) protected static String[]convertTypeNamesToSigs(char[][] typeNames) Convert these type names to signatures.protected AnnotationcreateAnnotation(JavaElement parent, String name) protected SourceFieldcreateField(JavaElement parent, ISourceElementRequestor.FieldInfo fieldInfo) protected ImportContainerprotected ImportDeclarationcreateImportDeclaration(ImportContainer parent, String name, boolean onDemand) protected InitializercreateInitializer(JavaElement parent) protected SourceMethodcreateMethodHandle(JavaElement parent, ISourceElementRequestor.MethodInfo methodInfo) protected SourceModulecreateModuleHandle(JavaElement parent, ISourceElementRequestor.ModuleInfo modInfo) protected PackageDeclarationcreatePackageDeclaration(JavaElement parent, String name) protected SourceFieldcreateRecordComponent(JavaElement parent, ISourceElementRequestor.FieldInfo compInfo) protected SourceTypecreateTypeHandle(JavaElement parent, ISourceElementRequestor.TypeInfo typeInfo) protected TypeParametercreateTypeParameter(JavaElement parent, String name) voidvoidenterConstructor(ISourceElementRequestor.MethodInfo methodInfo) voidenterField(ISourceElementRequestor.FieldInfo fieldInfo) voidenterInitializer(int declarationSourceStart, int modifiers) voidenterMethod(ISourceElementRequestor.MethodInfo methodInfo) voidvoidenterType(ISourceElementRequestor.TypeInfo typeInfo) voidexitCompilationUnit(int declarationEnd) voidexitConstructor(int declarationEnd) voidexitField(int initializationStart, int declarationEnd, int declarationSourceEnd) voidexitInitializer(int declarationEnd) voidexitMethod(int declarationEnd, Expression defaultValue) voidexitModule(int declarationEnd) voidexitRecordComponent(int declarationEnd, int declarationSourceEnd) voidexitType(int declarationEnd) protected ObjectgetMemberValue(MemberValuePair memberValuePair, Expression expression) protected IMemberValuePairgetMemberValuePair(MemberValuePair memberValuePair) protected IMemberValuePair[]getMemberValuePairs(MemberValuePair[] memberValuePairs) protected voidresolveDuplicates(SourceRefElement handle) Resolves duplicate handles by incrementing the occurrence count of the handle being created.Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.util.ReferenceInfoAdapter
acceptAnnotationTypeReference, acceptAnnotationTypeReference, acceptConstructorReference, acceptFieldReference, acceptMethodReference, acceptTypeReference, acceptTypeReference, acceptUnknownReference, acceptUnknownReferenceVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.internal.compiler.ISourceElementRequestor
acceptAnnotationTypeReference, acceptAnnotationTypeReference, acceptConstructorReference, acceptFieldReference, acceptMethodReference, acceptTypeReference, acceptTypeReference, acceptUnknownReference, acceptUnknownReference
-
Felddetails
-
unit
The handle to the compilation unit being parsed -
unitInfo
The info object for the compilation unit being parsed -
importContainerInfo
The import container info - null until created -
importContainer
-
newElements
Hashtable of children elements of the compilation unit. Children are added to the table as they are found by the parser. Keys are handles, values are corresponding info objects. -
infoStack
Stack of parent scope info objects. The info on the top of the stack is the parent of the next element found. For example, when we locate a method, the parent info object will be the type the method is contained in. -
children
-
handleStack
Stack of parent handles, corresponding to the info stack. We keep both, since info objects do not have back pointers to handles. -
referenceCount
protected int referenceCountThe number of references reported thus far. Used to expand the arrays of reference kinds and names. -
hasSyntaxErrors
protected boolean hasSyntaxErrorsProblem requestor which will get notified of discovered problems -
parser
-
fieldRefCache
-
messageRefCache
-
typeRefCache
-
unknownRefCache
-
-
Konstruktordetails
-
CompilationUnitStructureRequestor
protected CompilationUnitStructureRequestor(ICompilationUnit unit, CompilationUnitElementInfo unitInfo, Map newElements)
-
-
Methodendetails
-
acceptImport
public void acceptImport(int declarationStart, int declarationEnd, int nameSourceStart, int nameSourceEnd, char[][] tokens, boolean onDemand, int modifiers) - Angegeben von:
acceptImportin SchnittstelleISourceElementRequestor- Parameter:
declarationStart- 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.- Siehe auch:
-
acceptLineSeparatorPositions
public void acceptLineSeparatorPositions(int[] positions) - Angegeben von:
acceptLineSeparatorPositionsin SchnittstelleISourceElementRequestor
-
acceptPackage
- Angegeben von:
acceptPackagein SchnittstelleISourceElementRequestor- Siehe auch:
-
acceptProblem
- Angegeben von:
acceptProblemin SchnittstelleISourceElementRequestor
-
createAnnotation
-
createField
-
createRecordComponent
protected SourceField createRecordComponent(JavaElement parent, ISourceElementRequestor.FieldInfo compInfo) -
createImportContainer
-
createImportDeclaration
protected ImportDeclaration createImportDeclaration(ImportContainer parent, String name, boolean onDemand) -
createInitializer
-
createMethodHandle
protected SourceMethod createMethodHandle(JavaElement parent, ISourceElementRequestor.MethodInfo methodInfo) -
createPackageDeclaration
-
createTypeHandle
protected SourceType createTypeHandle(JavaElement parent, ISourceElementRequestor.TypeInfo typeInfo) -
createModuleHandle
protected SourceModule createModuleHandle(JavaElement parent, ISourceElementRequestor.ModuleInfo modInfo) -
createTypeParameter
-
convertTypeNamesToSigs
Convert these type names to signatures.- Siehe auch:
-
acceptAnnotation
protected IAnnotation acceptAnnotation(Annotation annotation, AnnotatableInfo parentInfo, JavaElement parentHandle) -
enterCompilationUnit
public void enterCompilationUnit()- Angegeben von:
enterCompilationUnitin SchnittstelleISourceElementRequestor- Siehe auch:
-
enterConstructor
- Angegeben von:
enterConstructorin SchnittstelleISourceElementRequestor- Siehe auch:
-
enterField
- Angegeben von:
enterFieldin SchnittstelleISourceElementRequestor- Siehe auch:
-
enterInitializer
public void enterInitializer(int declarationSourceStart, int modifiers) - Angegeben von:
enterInitializerin SchnittstelleISourceElementRequestor- Siehe auch:
-
enterMethod
- Angegeben von:
enterMethodin SchnittstelleISourceElementRequestor- Siehe auch:
-
enterModule
- Angegeben von:
enterModulein SchnittstelleISourceElementRequestor
-
enterType
- Angegeben von:
enterTypein SchnittstelleISourceElementRequestor- Siehe auch:
-
acceptTypeParameter
protected void acceptTypeParameter(ISourceElementRequestor.TypeParameterInfo typeParameterInfo, JavaElementInfo parentInfo) -
exitCompilationUnit
public void exitCompilationUnit(int declarationEnd) - Angegeben von:
exitCompilationUnitin SchnittstelleISourceElementRequestor- Siehe auch:
-
exitConstructor
public void exitConstructor(int declarationEnd) - Angegeben von:
exitConstructorin SchnittstelleISourceElementRequestor- Siehe auch:
-
exitField
public void exitField(int initializationStart, int declarationEnd, int declarationSourceEnd) - Angegeben von:
exitFieldin SchnittstelleISourceElementRequestor- Siehe auch:
-
exitRecordComponent
public void exitRecordComponent(int declarationEnd, int declarationSourceEnd) - Angegeben von:
exitRecordComponentin SchnittstelleISourceElementRequestor- Siehe auch:
-
exitInitializer
public void exitInitializer(int declarationEnd) - Angegeben von:
exitInitializerin SchnittstelleISourceElementRequestor- Siehe auch:
-
exitMethod
- Angegeben von:
exitMethodin SchnittstelleISourceElementRequestor- Siehe auch:
-
exitModule
public void exitModule(int declarationEnd) - Angegeben von:
exitModulein SchnittstelleISourceElementRequestor
-
exitType
public void exitType(int declarationEnd) - Angegeben von:
exitTypein SchnittstelleISourceElementRequestor- Siehe auch:
-
resolveDuplicates
Resolves duplicate handles by incrementing the occurrence count of the handle being created. -
getMemberValuePair
-
getMemberValuePairs
-
getMemberValue
-