Class SourceFileAttribute
java.lang.Object
kala.compress.harmony.unpack200.bytecode.ClassFileEntry
kala.compress.harmony.unpack200.bytecode.Attribute
kala.compress.harmony.unpack200.bytecode.SourceFileAttribute
Source file class file attribute
-
Field Summary
FieldsFields inherited from class kala.compress.harmony.unpack200.bytecode.ClassFileEntry
NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected intprotected ClassFileEntry[]inthashCode()booleanAnswer true if the receiver is a source file attribute (which gets special handling when the class is built); otherwise answer false.protected voidresolve(ClassConstantPool pool) Allows the constant pool entries to resolve their nested entries.static voidsetAttributeName(CPUTF8 cpUTF8Value) toString()protected voidMethods inherited from class kala.compress.harmony.unpack200.bytecode.Attribute
doWrite, getAttributeName, getLengthIncludingHeader, hasBCIRenumberingMethods inherited from class kala.compress.harmony.unpack200.bytecode.ClassFileEntry
objectHashCode, write
-
Field Details
-
attributeName
-
name
-
nameIndex
private int nameIndex
-
-
Constructor Details
-
SourceFileAttribute
-
-
Method Details
-
setAttributeName
-
equals
-
getLength
protected int getLength() -
getNestedClassFileEntries
- Overrides:
getNestedClassFileEntriesin classAttribute
-
hashCode
public int hashCode() -
isSourceFileAttribute
public boolean isSourceFileAttribute()Description copied from class:AttributeAnswer true if the receiver is a source file attribute (which gets special handling when the class is built); otherwise answer false.- Overrides:
isSourceFileAttributein classAttribute- Returns:
- boolean source file attribute
-
resolve
Description copied from class:ClassFileEntryAllows the constant pool entries to resolve their nested entries. -
toString
- Specified by:
toStringin classClassFileEntry
-
writeBody
- Specified by:
writeBodyin classAttribute- Throws:
IOException
-