public final class ClassFileReader extends MetadataReader
| Modifier and Type | Field and Description |
|---|---|
static int |
OPTION_PROCESS_ANNOTATIONS |
static int |
OPTION_PROCESS_CODE |
static int |
OPTIONS_DEFAULT |
| Modifier and Type | Method and Description |
|---|---|
MetadataParser |
getParser() |
protected IMetadataScope |
getScope() |
protected SourceAttribute |
readAttributeCore(java.lang.String name,
Buffer buffer,
int originalOffset,
int length)
Reads a
SourceAttribute from the specified buffer. |
static TypeDefinition |
readClass(IMetadataResolver resolver,
Buffer b) |
static TypeDefinition |
readClass(int options,
IMetadataResolver resolver,
Buffer b) |
protected boolean |
shouldProcessAnnotations() |
protected boolean |
shouldProcessCode() |
inflateAttribute, inflateAttribute, inflateAttributes, inflateAttributes, readAttribute, readAttributespublic static final int OPTION_PROCESS_ANNOTATIONS
public static final int OPTION_PROCESS_CODE
public static final int OPTIONS_DEFAULT
protected boolean shouldProcessAnnotations()
protected boolean shouldProcessCode()
protected IMetadataScope getScope()
getScope in class MetadataReaderpublic MetadataParser getParser()
getParser in class MetadataReaderprotected SourceAttribute readAttributeCore(java.lang.String name, Buffer buffer, int originalOffset, int length)
SourceAttribute from the specified buffer.readAttributeCore in class MetadataReadername - The name of the attribute to decode.buffer - A buffer containing the attribute blob.originalOffset - The offset of position 0 in the buffer relative to the start of the original class file.
This is needed during lazy inflation of CodeAttribute (and possibly others). In
the case of CodeAttribute, it is helpful to know exactly where each method's body
begins so we can load it on demand at some point in the future.length - The length of the attribute. Implementations should not rely on buffer.size().public static TypeDefinition readClass(IMetadataResolver resolver, Buffer b)
public static TypeDefinition readClass(int options, IMetadataResolver resolver, Buffer b)