public class StdAttributeFactory extends AttributeFactory
AttributeFactory, which knows how to parse
all the standard attribute types.| Modifier and Type | Field and Description |
|---|---|
static StdAttributeFactory |
THE_ONE
non-null; shared instance of this class |
CTX_CLASS, CTX_CODE, CTX_COUNT, CTX_FIELD, CTX_METHOD| Constructor and Description |
|---|
StdAttributeFactory()
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected Attribute |
parse0(DirectClassFile cf,
int context,
java.lang.String name,
int offset,
int length,
ParseObserver observer)
Parses attribute content.
|
parsepublic static final StdAttributeFactory THE_ONE
non-null; shared instance of this classprotected Attribute parse0(DirectClassFile cf, int context, java.lang.String name, int offset, int length, ParseObserver observer)
RawAttribute. Subclasses are expected to
override this to do something better in most cases.parse0 in class AttributeFactorycf - non-null; class file to parse fromcontext - context to parse in; one of the CTX_*
constantsname - non-null; the attribute nameoffset - offset into bytes to start parsing at; this
is the offset to the start of attribute data, not to the headerlength - the length of the attribute dataobserver - null-ok; parse observer to report to, if anynon-null; an appropriately-constructed AttributeCopyright © 2020. All Rights Reserved.