Class EnclosingMethodAttribute
- java.lang.Object
-
- kala.compress.harmony.unpack200.bytecode.ClassFileEntry
-
- kala.compress.harmony.unpack200.bytecode.Attribute
-
- kala.compress.harmony.unpack200.bytecode.EnclosingMethodAttribute
-
public class EnclosingMethodAttribute extends Attribute
Enclosing method class file attribute.
-
-
Field Summary
Fields Modifier and Type Field Description private static CPUTF8attributeNameprivate intclassIndexprivate CPClasscpClassprivate CPNameAndTypemethodprivate intmethodIndex-
Fields inherited from class kala.compress.harmony.unpack200.bytecode.ClassFileEntry
NONE
-
-
Constructor Summary
Constructors Constructor Description EnclosingMethodAttribute(CPClass cpClass, CPNameAndType method)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetLength()protected ClassFileEntry[]getNestedClassFileEntries()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, equals, getAttributeName, getLengthIncludingHeader, hasBCIRenumbering, hashCode, isSourceFileAttribute
-
Methods inherited from class kala.compress.harmony.unpack200.bytecode.ClassFileEntry
objectHashCode, write
-
-
-
-
Field Detail
-
attributeName
private static CPUTF8 attributeName
-
classIndex
private int classIndex
-
methodIndex
private int methodIndex
-
cpClass
private final CPClass cpClass
-
method
private final CPNameAndType method
-
-
Constructor Detail
-
EnclosingMethodAttribute
public EnclosingMethodAttribute(CPClass cpClass, CPNameAndType method)
-
-
Method Detail
-
setAttributeName
public static void setAttributeName(CPUTF8 cpUTF8Value)
-
getNestedClassFileEntries
protected ClassFileEntry[] getNestedClassFileEntries()
- Overrides:
getNestedClassFileEntriesin classAttribute
-
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
-
-