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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptAnnotationTypeReference(char[][] typeName, int sourceStart, int sourceEnd) voidacceptAnnotationTypeReference(char[] simpleTypeName, int sourcePosition) voidacceptConstructorReference(char[] typeName, int argCount, int sourcePosition) voidacceptFieldReference(char[] fieldName, int sourcePosition) voidacceptImport(int declarationStart, int declarationEnd, int nameStart, int nameEnd, char[][] tokens, boolean onDemand, int modifiers) voidacceptLineSeparatorPositions(int[] positions) voidacceptMethodReference(char[] methodName, int argCount, int sourcePosition) voidacceptPackage(ImportReference importReference) voidacceptProblem(CategorizedProblem problem) voidacceptTypeReference(char[][] typeName, int sourceStart, int sourceEnd) voidacceptTypeReference(char[] simpleTypeName, int sourcePosition) voidacceptUnknownReference(char[][] name, int sourceStart, int sourceEnd) voidacceptUnknownReference(char[] name, int sourcePosition) char[][]voidvoidvoidenterConstructor(ISourceElementRequestor.MethodInfo methodInfo) voidenterField(ISourceElementRequestor.FieldInfo fieldInfo) voidenterInitializer(int declarationSourceStart, int modifiers) voidenterMethod(ISourceElementRequestor.MethodInfo methodInfo) voidenterModule(ISourceElementRequestor.ModuleInfo moduleInfo) voidenterType(ISourceElementRequestor.TypeInfo typeInfo) voidexitCompactConstructor(int declarationEnd) voidexitCompilationUnit(int declarationEnd) voidexitConstructor(int declarationEnd) voidexitField(int initializationStart, int declarationEnd, int declarationSourceEnd) voidexitInitializer(int declarationEnd) voidexitMethod(int declarationEnd, Expression defaultValue) voidexitType(int declarationEnd) voidvoidpushTypeName(char[] typeName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
acceptAnnotationTypeReferencein interfaceISourceElementRequestor- See Also:
-
acceptAnnotationTypeReference
public void acceptAnnotationTypeReference(char[] simpleTypeName, int sourcePosition) - Specified by:
acceptAnnotationTypeReferencein interfaceISourceElementRequestor- See Also:
-
acceptConstructorReference
public void acceptConstructorReference(char[] typeName, int argCount, int sourcePosition) - Specified by:
acceptConstructorReferencein interfaceISourceElementRequestor- See Also:
-
acceptFieldReference
public void acceptFieldReference(char[] fieldName, int sourcePosition) - Specified by:
acceptFieldReferencein interfaceISourceElementRequestor- See Also:
-
acceptImport
public void acceptImport(int declarationStart, int declarationEnd, int nameStart, int nameEnd, char[][] tokens, boolean onDemand, int modifiers) - Specified by:
acceptImportin 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:
-
acceptLineSeparatorPositions
public void acceptLineSeparatorPositions(int[] positions) - Specified by:
acceptLineSeparatorPositionsin interfaceISourceElementRequestor- See Also:
-
acceptMethodReference
public void acceptMethodReference(char[] methodName, int argCount, int sourcePosition) - Specified by:
acceptMethodReferencein interfaceISourceElementRequestor- See Also:
-
acceptPackage
- Specified by:
acceptPackagein interfaceISourceElementRequestor- See Also:
-
acceptProblem
- Specified by:
acceptProblemin interfaceISourceElementRequestor- See Also:
-
acceptTypeReference
public void acceptTypeReference(char[][] typeName, int sourceStart, int sourceEnd) - Specified by:
acceptTypeReferencein interfaceISourceElementRequestor- See Also:
-
acceptTypeReference
public void acceptTypeReference(char[] simpleTypeName, int sourcePosition) - Specified by:
acceptTypeReferencein interfaceISourceElementRequestor- See Also:
-
acceptUnknownReference
public void acceptUnknownReference(char[][] name, int sourceStart, int sourceEnd) - Specified by:
acceptUnknownReferencein interfaceISourceElementRequestor- See Also:
-
acceptUnknownReference
public void acceptUnknownReference(char[] name, int sourcePosition) - Specified by:
acceptUnknownReferencein interfaceISourceElementRequestor- See Also:
-
enclosingTypeNames
public char[][] enclosingTypeNames() -
enterCompilationUnit
public void enterCompilationUnit()- Specified by:
enterCompilationUnitin interfaceISourceElementRequestor- See Also:
-
enterConstructor
- Specified by:
enterConstructorin interfaceISourceElementRequestor- See Also:
-
enterField
- Specified by:
enterFieldin interfaceISourceElementRequestor- See Also:
-
enterInitializer
public void enterInitializer(int declarationSourceStart, int modifiers) - Specified by:
enterInitializerin interfaceISourceElementRequestor- See Also:
-
enterModule
- Specified by:
enterModulein interfaceISourceElementRequestor
-
enterMethod
- Specified by:
enterMethodin interfaceISourceElementRequestor- See Also:
-
enterType
- Specified by:
enterTypein interfaceISourceElementRequestor- See Also:
-
exitCompilationUnit
public void exitCompilationUnit(int declarationEnd) - Specified by:
exitCompilationUnitin interfaceISourceElementRequestor- See Also:
-
exitConstructor
public void exitConstructor(int declarationEnd) - Specified by:
exitConstructorin interfaceISourceElementRequestor- See Also:
-
exitField
public void exitField(int initializationStart, int declarationEnd, int declarationSourceEnd) - Specified by:
exitFieldin interfaceISourceElementRequestor- See Also:
-
exitInitializer
public void exitInitializer(int declarationEnd) - Specified by:
exitInitializerin interfaceISourceElementRequestor- See Also:
-
exitMethod
- Specified by:
exitMethodin interfaceISourceElementRequestor- See Also:
-
exitType
public void exitType(int declarationEnd) - Specified by:
exitTypein interfaceISourceElementRequestor- See Also:
-
popTypeName
public void popTypeName() -
pushTypeName
public void pushTypeName(char[] typeName) -
enterCompactConstructor
- Specified by:
enterCompactConstructorin interfaceISourceElementRequestor
-
exitCompactConstructor
public void exitCompactConstructor(int declarationEnd) - Specified by:
exitCompactConstructorin interfaceISourceElementRequestor
-