public class BinaryTypeFactory
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BinaryTypeFactory.NotInIndexException |
| Constructor and Description |
|---|
BinaryTypeFactory() |
| Modifier and Type | Method and Description |
|---|---|
static IBinaryType |
create(IClassFile classFile,
IProgressMonitor monitor) |
static BinaryTypeDescriptor |
createDescriptor(IClassFile classFile) |
static BinaryTypeDescriptor |
createDescriptor(IType type) |
static ClassFileReader |
rawReadType(BinaryTypeDescriptor descriptor,
boolean fullyInitialize) |
static ClassFileReader |
rawReadTypeTestForExists(BinaryTypeDescriptor descriptor,
boolean fullyInitialize,
boolean useInvalidArchiveCache)
Read the class file from disk, circumventing the index's cache.
|
static IBinaryType |
readFromIndex(JavaIndex index,
BinaryTypeDescriptor descriptor,
IProgressMonitor monitor)
Tries to read the given IBinaryType from the index.
|
static IBinaryType |
readType(BinaryTypeDescriptor descriptor,
IProgressMonitor monitor)
Reads the given binary type.
|
public static BinaryTypeDescriptor createDescriptor(IClassFile classFile)
public static BinaryTypeDescriptor createDescriptor(IType type)
public static IBinaryType create(IClassFile classFile, IProgressMonitor monitor) throws JavaModelException, ClassFormatException
public static IBinaryType readType(BinaryTypeDescriptor descriptor, IProgressMonitor monitor) throws JavaModelException, ClassFormatException
public static ClassFileReader rawReadType(BinaryTypeDescriptor descriptor, boolean fullyInitialize) throws JavaModelException, ClassFormatException
public static ClassFileReader rawReadTypeTestForExists(BinaryTypeDescriptor descriptor, boolean fullyInitialize, boolean useInvalidArchiveCache) throws JavaModelException, ClassFormatException, java.io.FileNotFoundException
ClassFormatException - if the class file existed but was corruptJavaModelException - if unable to read the class file due to a transient failurejava.io.FileNotFoundException - if the file does not existpublic static IBinaryType readFromIndex(JavaIndex index, BinaryTypeDescriptor descriptor, IProgressMonitor monitor) throws JavaModelException, BinaryTypeFactory.NotInIndexException