Class AttributeLayout
java.lang.Object
org.apache.commons.compress.harmony.unpack200.AttributeLayout
- All Implemented Interfaces:
IMatcher
AttributeLayout defines a layout that describes how an attribute will be transmitted.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final int
static final int
static final int
static final int
static final String[]
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeLayout
(String name, int context, String layout, int index) Construct a default AttributeLayout (equivalent tonew AttributeLayout(name, context, layout, index, true);
)AttributeLayout
(String name, int context, String layout, int index, boolean isDefault) -
Method Summary
Modifier and TypeMethodDescriptiongetCodec()
int
int
getIndex()
getName()
getValue
(long value, String type, SegmentConstantPool pool) getValue
(long value, SegmentConstantPool pool) int
hashCode()
boolean
boolean
matches
(long value) int
void
setBackwardsCallCount
(int backwardsCallCount) toString()
-
Field Details
-
ACC_ABSTRACT
- See Also:
-
ACC_ANNOTATION
- See Also:
-
ACC_ENUM
- See Also:
-
ACC_FINAL
- See Also:
-
ACC_INTERFACE
- See Also:
-
ACC_NATIVE
- See Also:
-
ACC_PRIVATE
- See Also:
-
ACC_PROTECTED
- See Also:
-
ACC_PUBLIC
- See Also:
-
ACC_STATIC
- See Also:
-
ACC_STRICT
- See Also:
-
ACC_SYNCHRONIZED
- See Also:
-
ACC_SYNTHETIC
- See Also:
-
ACC_TRANSIENT
- See Also:
-
ACC_VOLATILE
- See Also:
-
ATTRIBUTE_ANNOTATION_DEFAULT
- See Also:
-
ATTRIBUTE_CLASS_FILE_VERSION
- See Also:
-
ATTRIBUTE_CODE
- See Also:
-
ATTRIBUTE_CONSTANT_VALUE
- See Also:
-
ATTRIBUTE_DEPRECATED
- See Also:
-
ATTRIBUTE_ENCLOSING_METHOD
- See Also:
-
ATTRIBUTE_EXCEPTIONS
- See Also:
-
ATTRIBUTE_INNER_CLASSES
- See Also:
-
ATTRIBUTE_LINE_NUMBER_TABLE
- See Also:
-
ATTRIBUTE_LOCAL_VARIABLE_TABLE
- See Also:
-
ATTRIBUTE_LOCAL_VARIABLE_TYPE_TABLE
- See Also:
-
ATTRIBUTE_RUNTIME_INVISIBLE_ANNOTATIONS
- See Also:
-
ATTRIBUTE_RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS
- See Also:
-
ATTRIBUTE_RUNTIME_VISIBLE_ANNOTATIONS
- See Also:
-
ATTRIBUTE_RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS
- See Also:
-
ATTRIBUTE_SIGNATURE
- See Also:
-
ATTRIBUTE_SOURCE_FILE
- See Also:
-
CONTEXT_CLASS
- See Also:
-
CONTEXT_CODE
- See Also:
-
CONTEXT_FIELD
- See Also:
-
CONTEXT_METHOD
- See Also:
-
contextNames
-
-
Constructor Details
-
AttributeLayout
Construct a default AttributeLayout (equivalent tonew AttributeLayout(name, context, layout, index, true);
)- Parameters:
name
- TODOcontext
- TODOlayout
- TODOindex
- TODO- Throws:
Pack200Exception
- Attribute context out of range.Pack200Exception
- Cannot have a null layout.Pack200Exception
- Cannot have an unnamed layout.
-
AttributeLayout
public AttributeLayout(String name, int context, String layout, int index, boolean isDefault) throws Pack200Exception - Throws:
Pack200Exception
-
-
Method Details
-
getCodec
-
getContext
-
getIndex
-
getLayout
-
getName
-
getValue
- Throws:
Pack200Exception
-
getValue
public ClassFileEntry getValue(long value, String type, SegmentConstantPool pool) throws Pack200Exception - Throws:
Pack200Exception
-
hashCode
-
isDefaultLayout
-
matches
-
numBackwardsCallables
-
setBackwardsCallCount
-
toString
-