Class ConstantValueAttribute
java.lang.Object
org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
org.apache.commons.compress.harmony.unpack200.bytecode.Attribute
org.apache.commons.compress.harmony.unpack200.bytecode.ConstantValueAttribute
An
Attribute representing a constant.-
Field Summary
FieldsFields inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected intGets the length.protected ClassFileEntry[]Returns an empty array.inthashCode()protected voidresolve(ClassConstantPool pool) Allows the constant pool entries to resolve their nested entries.static voidsetAttributeName(CPUTF8 cpUTF8Value) toString()protected voidWrites this body to the given output stream.Methods inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.Attribute
doWrite, getAttributeName, getLengthIncludingHeader, hasBCIRenumbering, isSourceFileAttributeMethods inherited from class org.apache.commons.compress.harmony.unpack200.bytecode.ClassFileEntry
objectHashCode, write
-
Field Details
-
attributeName
-
constantIndex
private int constantIndex -
entry
-
-
Constructor Details
-
ConstantValueAttribute
Constructs a new instance.- Parameters:
entry- an entry.
-
-
Method Details
-
setAttributeName
-
equals
-
getLength
protected int getLength()Description copied from class:AttributeGets the length. -
getNestedClassFileEntries
Description copied from class:ClassFileEntryReturns an empty array.- Overrides:
getNestedClassFileEntriesin classAttribute- Returns:
- an empty array.
-
hashCode
public int hashCode() -
resolve
Description copied from class:ClassFileEntryAllows the constant pool entries to resolve their nested entries. -
toString
- Specified by:
toStringin classClassFileEntry
-
writeBody
Description copied from class:AttributeWrites this body to the given output stream.- Specified by:
writeBodyin classAttribute- Parameters:
dos- the output stream.- Throws:
IOException- if an I/O error occurs.
-