Class ClassFileToIndexConverter
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.nd.indexer.ClassFileToIndexConverter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddType(IBinaryType binaryType, char[] fieldDescriptor, org.eclipse.core.runtime.IProgressMonitor monitor)
Adds a type to the index, given an input class file and a binary name.createConstantFromMixedType(Object value)
protected static IBinaryType
createInfoFromClassFileInJar(Openable classFile)
Create a type info from the given class file in a jar and adds it to the given list of infos.
-
Constructor Details
-
ClassFileToIndexConverter
-
-
Method Details
-
createInfoFromClassFileInJar
protected static IBinaryType createInfoFromClassFileInJar(Openable classFile) throws org.eclipse.core.runtime.CoreExceptionCreate a type info from the given class file in a jar and adds it to the given list of infos.- Throws:
org.eclipse.core.runtime.CoreException
-
addType
public NdType addType(IBinaryType binaryType, char[] fieldDescriptor, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreExceptionAdds a type to the index, given an input class file and a binary name. Note that the given binary name is- Parameters:
binaryType
- an object used for parsing the .class file itselffieldDescriptor
- the name that is used to locate the class, computed from the .class file's name and location. In the event that the .class file has been moved, this may differ from the binary name stored in the .class file itself, which is why this is received as an argument rather than extracted from the .class file.- Throws:
org.eclipse.core.runtime.CoreException
-
createConstantFromMixedType
- Parameters:
value
- accepts all values returned fromIBinaryElementValuePair.getValue()
-