com.android.dx.cf.direct
Class StdAttributeFactory
java.lang.Object
com.android.dx.cf.direct.AttributeFactory
com.android.dx.cf.direct.StdAttributeFactory
public class StdAttributeFactory
- extends AttributeFactory
Standard subclass of AttributeFactory, which knows how to parse
all the standard attribute types.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
THE_ONE
public static final StdAttributeFactory THE_ONE
non-null; shared instance of this class
StdAttributeFactory
public StdAttributeFactory()
- Constructs an instance.
parse0
protected Attribute parse0(DirectClassFile cf,
int context,
String name,
int offset,
int length,
ParseObserver observer)
- Parses attribute content. The base class implements this by constructing
an instance of
RawAttribute. Subclasses are expected to
override this to do something better in most cases.
- Overrides:
parse0 in class AttributeFactory
- Parameters:
cf - 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 any
- Returns:
non-null; an appropriately-constructed Attribute
Copyright © 2015. All rights reserved.