org.aspectj.org.eclipse.jdt.internal.core.search.indexing
Class SourceIndexerRequestor
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.search.indexing.SourceIndexerRequestor
- All Implemented Interfaces:
- ISourceElementRequestor, IIndexConstants
public class SourceIndexerRequestor
- extends java.lang.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.
| 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, METHOD_DECL, METHOD_PATTERN, METHOD_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 |
|
Method Summary |
void |
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[][] |
enclosingTypeNames()
|
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)
|
void |
popTypeName()
|
void |
pushTypeName(char[] typeName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SourceIndexerRequestor
public SourceIndexerRequestor(SourceIndexer indexer)
acceptAnnotationTypeReference
public void acceptAnnotationTypeReference(char[][] typeName,
int sourceStart,
int sourceEnd)
- Specified by:
acceptAnnotationTypeReference in interface ISourceElementRequestor
- See Also:
ISourceElementRequestor.acceptAnnotationTypeReference(char[][], int, int)
acceptAnnotationTypeReference
public void acceptAnnotationTypeReference(char[] simpleTypeName,
int sourcePosition)
- Specified by:
acceptAnnotationTypeReference in interface ISourceElementRequestor
- See Also:
ISourceElementRequestor.acceptAnnotationTypeReference(char[], int)
acceptConstructorReference
public void acceptConstructorReference(char[] typeName,
int argCount,
int sourcePosition)
- Specified by:
acceptConstructorReference in interface ISourceElementRequestor
- See Also:
ISourceElementRequestor.acceptConstructorReference(char[], int, int)
acceptFieldReference
public void acceptFieldReference(char[] fieldName,
int sourcePosition)
- Specified by:
acceptFieldReference in interface ISourceElementRequestor
- 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 interface ISourceElementRequestor
- 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 interface ISourceElementRequestor
- See Also:
ISourceElementRequestor.acceptLineSeparatorPositions(int[])
acceptMethodReference
public void acceptMethodReference(char[] methodName,
int argCount,
int sourcePosition)
- Specified by:
acceptMethodReference in interface ISourceElementRequestor
- See Also:
ISourceElementRequestor.acceptMethodReference(char[], int, int)
acceptPackage
public void acceptPackage(ImportReference importReference)
- Specified by:
acceptPackage in interface ISourceElementRequestor
- See Also:
ISourceElementRequestor.acceptPackage(ImportReference)
acceptProblem
public void acceptProblem(CategorizedProblem problem)
- Specified by:
acceptProblem in interface ISourceElementRequestor
- See Also:
ISourceElementRequestor.acceptProblem(CategorizedProblem)
acceptTypeReference
public void acceptTypeReference(char[][] typeName,
int sourceStart,
int sourceEnd)
- Specified by:
acceptTypeReference in interface ISourceElementRequestor
- See Also:
ISourceElementRequestor.acceptTypeReference(char[][], int, int)
acceptTypeReference
public void acceptTypeReference(char[] simpleTypeName,
int sourcePosition)
- Specified by:
acceptTypeReference in interface ISourceElementRequestor
- See Also:
ISourceElementRequestor.acceptTypeReference(char[], int)
acceptUnknownReference
public void acceptUnknownReference(char[][] name,
int sourceStart,
int sourceEnd)
- Specified by:
acceptUnknownReference in interface ISourceElementRequestor
- See Also:
ISourceElementRequestor.acceptUnknownReference(char[][], int, int)
acceptUnknownReference
public void acceptUnknownReference(char[] name,
int sourcePosition)
- Specified by:
acceptUnknownReference in interface ISourceElementRequestor
- See Also:
ISourceElementRequestor.acceptUnknownReference(char[], int)
enclosingTypeNames
public char[][] enclosingTypeNames()
enterCompilationUnit
public void enterCompilationUnit()
- Specified by:
enterCompilationUnit in interface ISourceElementRequestor
- See Also:
ISourceElementRequestor.enterCompilationUnit()
enterConstructor
public void enterConstructor(ISourceElementRequestor.MethodInfo methodInfo)
- Specified by:
enterConstructor in interface ISourceElementRequestor
- See Also:
ISourceElementRequestor.enterConstructor(ISourceElementRequestor.MethodInfo)
enterField
public void enterField(ISourceElementRequestor.FieldInfo fieldInfo)
- Specified by:
enterField in interface ISourceElementRequestor
- See Also:
ISourceElementRequestor.enterField(ISourceElementRequestor.FieldInfo)
enterInitializer
public void enterInitializer(int declarationSourceStart,
int modifiers)
- Specified by:
enterInitializer in interface ISourceElementRequestor
- See Also:
ISourceElementRequestor.enterInitializer(int, int)
enterMethod
public void enterMethod(ISourceElementRequestor.MethodInfo methodInfo)
- Specified by:
enterMethod in interface ISourceElementRequestor
- See Also:
ISourceElementRequestor.enterMethod(ISourceElementRequestor.MethodInfo)
enterType
public void enterType(ISourceElementRequestor.TypeInfo typeInfo)
- Specified by:
enterType in interface ISourceElementRequestor
- See Also:
ISourceElementRequestor.enterType(ISourceElementRequestor.TypeInfo)
exitCompilationUnit
public void exitCompilationUnit(int declarationEnd)
- Specified by:
exitCompilationUnit in interface ISourceElementRequestor
- See Also:
ISourceElementRequestor.exitCompilationUnit(int)
exitConstructor
public void exitConstructor(int declarationEnd)
- Specified by:
exitConstructor in interface ISourceElementRequestor
- See Also:
ISourceElementRequestor.exitConstructor(int)
exitField
public void exitField(int initializationStart,
int declarationEnd,
int declarationSourceEnd)
- Specified by:
exitField in interface ISourceElementRequestor
- See Also:
ISourceElementRequestor.exitField(int, int, int)
exitInitializer
public void exitInitializer(int declarationEnd)
- Specified by:
exitInitializer in interface ISourceElementRequestor
- See Also:
ISourceElementRequestor.exitInitializer(int)
exitMethod
public void exitMethod(int declarationEnd,
Expression defaultValue)
- Specified by:
exitMethod in interface ISourceElementRequestor
- See Also:
ISourceElementRequestor.exitMethod(int, Expression)
exitType
public void exitType(int declarationEnd)
- Specified by:
exitType in interface ISourceElementRequestor
- See Also:
ISourceElementRequestor.exitType(int)
popTypeName
public void popTypeName()
pushTypeName
public void pushTypeName(char[] typeName)