public final class ClassFileToIndexConverter
extends java.lang.Object
| Constructor and Description |
|---|
ClassFileToIndexConverter(NdResourceFile resourceFile) |
| Modifier and Type | Method and Description |
|---|---|
NdType |
addType(IBinaryType binaryType,
char[] fieldDescriptor,
IProgressMonitor monitor)
Adds a type to the index, given an input class file and a binary name.
|
NdConstant |
createConstantFromMixedType(java.lang.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.
|
public ClassFileToIndexConverter(NdResourceFile resourceFile)
protected static IBinaryType createInfoFromClassFileInJar(Openable classFile) throws CoreException
CoreExceptionpublic NdType addType(IBinaryType binaryType, char[] fieldDescriptor, IProgressMonitor monitor) throws CoreException
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.CoreExceptionpublic NdConstant createConstantFromMixedType(java.lang.Object value)
value - accepts all values returned from IBinaryElementValuePair.getValue()