Class SourceFileAttribute
- java.lang.Object
-
- kala.compress.harmony.unpack200.bytecode.ClassFileEntry
-
- kala.compress.harmony.unpack200.bytecode.Attribute
-
- kala.compress.harmony.unpack200.bytecode.SourceFileAttribute
-
public class SourceFileAttribute extends Attribute
Source file class file attribute
-
-
Field Summary
Fields Modifier and Type Field Description private static CPUTF8attributeNameprivate CPUTF8nameprivate intnameIndex-
Fields inherited from class kala.compress.harmony.unpack200.bytecode.ClassFileEntry
NONE
-
-
Constructor Summary
Constructors Constructor Description SourceFileAttribute(CPUTF8 name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)protected intgetLength()protected ClassFileEntry[]getNestedClassFileEntries()inthashCode()booleanisSourceFileAttribute()Answer 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)java.lang.StringtoString()protected voidwriteBody(java.io.DataOutputStream dos)-
Methods inherited from class kala.compress.harmony.unpack200.bytecode.Attribute
doWrite, getAttributeName, getLengthIncludingHeader, hasBCIRenumbering
-
Methods inherited from class kala.compress.harmony.unpack200.bytecode.ClassFileEntry
objectHashCode, write
-
-
-
-
Constructor Detail
-
SourceFileAttribute
public SourceFileAttribute(CPUTF8 name)
-
-
Method Detail
-
setAttributeName
public static void setAttributeName(CPUTF8 cpUTF8Value)
-
getNestedClassFileEntries
protected ClassFileEntry[] getNestedClassFileEntries()
- Overrides:
getNestedClassFileEntriesin classAttribute
-
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
protected void resolve(ClassConstantPool pool)
Description copied from class:ClassFileEntryAllows the constant pool entries to resolve their nested entries.
-
toString
public java.lang.String toString()
- Specified by:
toStringin classClassFileEntry
-
-