Class SourceIndexerRequestor
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.search.indexing.SourceIndexerRequestor
- All Implemented Interfaces:
ISourceElementRequestor
,IIndexConstants
public class SourceIndexerRequestor
extends Object
implements ISourceElementRequestor, IIndexConstants
This class is used by the JavaParserIndexer. When parsing the java file, the requestor
recognizes the java elements (methods, fields, ...) and add them to an index.
-
Nested Class Summary
Nested classes/interfaces inherited from interface 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
-
Field Summary
Fields inherited from interface org.aspectj.org.eclipse.jdt.internal.core.search.indexing.IIndexConstants
AND_PATTERN, ANNOT_REF_PATTERN, ANNOTATION_REF, ANNOTATION_TYPE_SUFFIX, CLASS_AND_ENUM_SUFFIX, CLASS_AND_INTERFACE_SUFFIX, CLASS_SUFFIX, CONSTRUCTOR_DECL, CONSTRUCTOR_PATTERN, CONSTRUCTOR_REF, COUNTS, DEFAULT_CONSTRUCTOR, ENUM_SUFFIX, FIELD_DECL, FIELD_PATTERN, INTERFACE_AND_ANNOTATION_SUFFIX, INTERFACE_SUFFIX, LOCAL_VAR_PATTERN, META_INDEX_CATEGORIES, META_INDEX_QUALIFIED_SUPER_TYPE_QUALIFIER_REF, META_INDEX_QUALIFIED_TYPE_QUALIFIER_REF, META_INDEX_SIMPLE_SUPER_TYPE_QUALIFIER_REF, META_INDEX_SIMPLE_TYPE_QUALIFIER_REF, METHOD_DECL, METHOD_DECL_PLUS, METHOD_PATTERN, METHOD_REF, MODULE_DECL, MODULE_INFO, MODULE_PATTERN, MODULE_REF, OBJECT, ONE_STAR, ONE_STAR_CHAR, ONE_ZERO, ONE_ZERO_CHAR, OR_PATTERN, PARAMETER_SEPARATOR, PKG_DECL_PATTERN, PKG_REF_PATTERN, REF, SECONDARY_SUFFIX, SEPARATOR, SUPER_REF, SUPER_REF_PATTERN, TYPE_DECL, TYPE_DECL_PATTERN, TYPE_PARAM_PATTERN, TYPE_REF_PATTERN, TYPE_SUFFIX, ZERO_CHAR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
acceptAnnotationTypeReference(char[][] typeName, int sourceStart, int sourceEnd)
void
acceptAnnotationTypeReference(char[] simpleTypeName, int sourcePosition)
void
acceptConstructorReference(char[] typeName, int argCount, int sourcePosition)
void
acceptFieldReference(char[] fieldName, int sourcePosition)
void
acceptImport(int declarationStart, int declarationEnd, int nameStart, int nameEnd, char[][] tokens, boolean onDemand, int modifiers)
void
acceptLineSeparatorPositions(int[] positions)
void
acceptMethodReference(char[] methodName, int argCount, int sourcePosition)
void
acceptPackage(ImportReference importReference)
void
acceptProblem(CategorizedProblem problem)
void
acceptTypeReference(char[][] typeName, int sourceStart, int sourceEnd)
void
acceptTypeReference(char[] simpleTypeName, int sourcePosition)
void
acceptUnknownReference(char[][] name, int sourceStart, int sourceEnd)
void
acceptUnknownReference(char[] name, int sourcePosition)
char[][]
void
void
enterConstructor(ISourceElementRequestor.MethodInfo methodInfo)
void
enterField(ISourceElementRequestor.FieldInfo fieldInfo)
void
enterInitializer(int declarationSourceStart, int modifiers)
void
enterMethod(ISourceElementRequestor.MethodInfo methodInfo)
void
enterModule(ISourceElementRequestor.ModuleInfo moduleInfo)
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
exitRecordComponent(int declarationEnd, int declarationSourceEnd)
void
exitType(int declarationEnd)
void
void
pushTypeName(char[] typeName)
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
exitModule
-
Constructor Details
-
SourceIndexerRequestor
-
-
Method Details
-
acceptAnnotationTypeReference
public void acceptAnnotationTypeReference(char[][] typeName, int sourceStart, int sourceEnd)- Specified by:
acceptAnnotationTypeReference
in interfaceISourceElementRequestor
- See Also:
ISourceElementRequestor.acceptAnnotationTypeReference(char[][], int, int)
-
acceptAnnotationTypeReference
public void acceptAnnotationTypeReference(char[] simpleTypeName, int sourcePosition)- Specified by:
acceptAnnotationTypeReference
in interfaceISourceElementRequestor
- See Also:
ISourceElementRequestor.acceptAnnotationTypeReference(char[], int)
-
acceptConstructorReference
public void acceptConstructorReference(char[] typeName, int argCount, int sourcePosition)- Specified by:
acceptConstructorReference
in interfaceISourceElementRequestor
- See Also:
ISourceElementRequestor.acceptConstructorReference(char[], int, int)
-
acceptFieldReference
public void acceptFieldReference(char[] fieldName, int sourcePosition)- Specified by:
acceptFieldReference
in interfaceISourceElementRequestor
- See Also:
ISourceElementRequestor.acceptFieldReference(char[], int)
-
acceptImport
public void acceptImport(int declarationStart, int declarationEnd, int nameStart, int nameEnd, char[][] tokens, boolean onDemand, int modifiers)- Specified by:
acceptImport
in interfaceISourceElementRequestor
- Parameters:
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.nameStart
- This is the position of the first character of the import declaration's name.nameEnd
- 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.- See Also:
ISourceElementRequestor.acceptImport(int, int, int, int, char[][], boolean, int)
-
acceptLineSeparatorPositions
public void acceptLineSeparatorPositions(int[] positions)- Specified by:
acceptLineSeparatorPositions
in interfaceISourceElementRequestor
- See Also:
ISourceElementRequestor.acceptLineSeparatorPositions(int[])
-
acceptMethodReference
public void acceptMethodReference(char[] methodName, int argCount, int sourcePosition)- Specified by:
acceptMethodReference
in interfaceISourceElementRequestor
- See Also:
ISourceElementRequestor.acceptMethodReference(char[], int, int)
-
acceptPackage
- Specified by:
acceptPackage
in interfaceISourceElementRequestor
- See Also:
ISourceElementRequestor.acceptPackage(ImportReference)
-
acceptProblem
- Specified by:
acceptProblem
in interfaceISourceElementRequestor
- See Also:
ISourceElementRequestor.acceptProblem(CategorizedProblem)
-
acceptTypeReference
public void acceptTypeReference(char[][] typeName, int sourceStart, int sourceEnd)- Specified by:
acceptTypeReference
in interfaceISourceElementRequestor
- See Also:
ISourceElementRequestor.acceptTypeReference(char[][], int, int)
-
acceptTypeReference
public void acceptTypeReference(char[] simpleTypeName, int sourcePosition)- Specified by:
acceptTypeReference
in interfaceISourceElementRequestor
- See Also:
ISourceElementRequestor.acceptTypeReference(char[], int)
-
acceptUnknownReference
public void acceptUnknownReference(char[][] name, int sourceStart, int sourceEnd)- Specified by:
acceptUnknownReference
in interfaceISourceElementRequestor
- See Also:
ISourceElementRequestor.acceptUnknownReference(char[][], int, int)
-
acceptUnknownReference
public void acceptUnknownReference(char[] name, int sourcePosition)- Specified by:
acceptUnknownReference
in interfaceISourceElementRequestor
- See Also:
ISourceElementRequestor.acceptUnknownReference(char[], int)
-
enclosingTypeNames
public char[][] enclosingTypeNames() -
enterCompilationUnit
public void enterCompilationUnit()- Specified by:
enterCompilationUnit
in interfaceISourceElementRequestor
- See Also:
ISourceElementRequestor.enterCompilationUnit()
-
enterConstructor
- Specified by:
enterConstructor
in interfaceISourceElementRequestor
- See Also:
ISourceElementRequestor.enterConstructor(ISourceElementRequestor.MethodInfo)
-
enterField
- Specified by:
enterField
in interfaceISourceElementRequestor
- See Also:
ISourceElementRequestor.enterField(ISourceElementRequestor.FieldInfo)
-
enterInitializer
public void enterInitializer(int declarationSourceStart, int modifiers)- Specified by:
enterInitializer
in interfaceISourceElementRequestor
- See Also:
ISourceElementRequestor.enterInitializer(int, int)
-
enterModule
- Specified by:
enterModule
in interfaceISourceElementRequestor
-
enterMethod
- Specified by:
enterMethod
in interfaceISourceElementRequestor
- See Also:
ISourceElementRequestor.enterMethod(ISourceElementRequestor.MethodInfo)
-
enterType
- Specified by:
enterType
in interfaceISourceElementRequestor
- See Also:
ISourceElementRequestor.enterType(ISourceElementRequestor.TypeInfo)
-
exitCompilationUnit
public void exitCompilationUnit(int declarationEnd)- Specified by:
exitCompilationUnit
in interfaceISourceElementRequestor
- See Also:
ISourceElementRequestor.exitCompilationUnit(int)
-
exitConstructor
public void exitConstructor(int declarationEnd)- Specified by:
exitConstructor
in interfaceISourceElementRequestor
- See Also:
ISourceElementRequestor.exitConstructor(int)
-
exitField
public void exitField(int initializationStart, int declarationEnd, int declarationSourceEnd)- Specified by:
exitField
in interfaceISourceElementRequestor
- See Also:
ISourceElementRequestor.exitField(int, int, int)
-
exitRecordComponent
public void exitRecordComponent(int declarationEnd, int declarationSourceEnd)- Specified by:
exitRecordComponent
in interfaceISourceElementRequestor
- See Also:
ISourceElementRequestor.exitRecordComponent(int, int)
-
exitInitializer
public void exitInitializer(int declarationEnd)- Specified by:
exitInitializer
in interfaceISourceElementRequestor
- See Also:
ISourceElementRequestor.exitInitializer(int)
-
exitMethod
- Specified by:
exitMethod
in interfaceISourceElementRequestor
- See Also:
ISourceElementRequestor.exitMethod(int, Expression)
-
exitType
public void exitType(int declarationEnd)- Specified by:
exitType
in interfaceISourceElementRequestor
- See Also:
ISourceElementRequestor.exitType(int)
-
popTypeName
public void popTypeName() -
pushTypeName
public void pushTypeName(char[] typeName)
-