Class SourceIndexer
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.search.indexing.AbstractIndexer
org.aspectj.org.eclipse.jdt.internal.core.search.indexing.SourceIndexer
- All Implemented Interfaces:
ITypeRequestor,SuffixConstants,IIndexConstants
A SourceIndexer indexes java files using a java parser. The following items are indexed:
Declarations of:
- Classes
- Interfaces;
- Methods;
- Fields;
- Lambda expressions;
References to:
- Methods (with number of arguments);
- Fields;
- Types;
- Constructors.
- Classes
- Interfaces;
- Methods;
- Fields;
- Lambda expressions;
References to:
- Methods (with number of arguments);
- Fields;
- Types;
- Constructors.
-
Field Summary
FieldsFields 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_CHARFields inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.util.SuffixConstants
EXTENSION_aj, EXTENSION_AJ, EXTENSION_class, EXTENSION_CLASS, EXTENSION_java, EXTENSION_JAVA, EXTENSION_jmod, EXTENSION_JMOD, SUFFIX_aj, SUFFIX_AJ, SUFFIX_class, SUFFIX_CLASS, SUFFIX_java, SUFFIX_JAVA, SUFFIX_STRING_aj, SUFFIX_STRING_AJ, SUFFIX_STRING_class, SUFFIX_STRING_CLASS, SUFFIX_STRING_java, SUFFIX_STRING_JAVA -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IBinaryType binaryType, PackageBinding packageBinding, AccessRestriction accessRestriction) Accept the resolved binary form for the requested type.voidaccept(ICompilationUnit unit, AccessRestriction accessRestriction) Accept the requested type's compilation unit.voidaccept(ISourceType[] sourceTypes, PackageBinding packageBinding, AccessRestriction accessRestriction) Accept the unresolved source forms for the requested type.voidvoidvoidMethods inherited from class org.aspectj.org.eclipse.jdt.internal.core.search.indexing.AbstractIndexer
addAnnotationTypeDeclaration, addAnnotationTypeReference, addClassDeclaration, addConstructorDeclaration, addConstructorReference, addDefaultConstructorDeclaration, addEnumDeclaration, addFieldDeclaration, addFieldReference, addIndexEntry, addIndexMetaQualification, addInterfaceDeclaration, addMethodDeclaration, addMethodDeclaration, addMethodReference, addModuleDeclaration, addModuleExportedPackages, addModuleReference, addNameReference, addRecordComponentDecl, addTypeDeclaration, addTypeReference, addTypeReferenceMethods 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.impl.ITypeRequestor
accept
-
Field Details
-
requestor
-
-
Constructor Details
-
SourceIndexer
-
-
Method Details
-
indexDocument
public void indexDocument()- Specified by:
indexDocumentin classAbstractIndexer
-
accept
public void accept(IBinaryType binaryType, PackageBinding packageBinding, AccessRestriction accessRestriction) Description copied from interface:ITypeRequestorAccept the resolved binary form for the requested type.- Specified by:
acceptin interfaceITypeRequestor
-
accept
Description copied from interface:ITypeRequestorAccept the requested type's compilation unit.- Specified by:
acceptin interfaceITypeRequestor
-
accept
public void accept(ISourceType[] sourceTypes, PackageBinding packageBinding, AccessRestriction accessRestriction) Description copied from interface:ITypeRequestorAccept the unresolved source forms for the requested type. Note that the multiple source forms can be answered, in case the target compilation unit contains multiple types. The first one is then guaranteed to be the one corresponding to the requested type.- Specified by:
acceptin interfaceITypeRequestor
-
resolveDocument
public void resolveDocument() -
indexResolvedDocument
public void indexResolvedDocument()- Overrides:
indexResolvedDocumentin classAbstractIndexer
-