public class EnclosingMethod extends Attribute
constant_pool, length, name_index, tag
Constructor and Description |
---|
EnclosingMethod(int nameIndex,
int len,
DataInputStream dis,
ConstantPool cpool) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class.
|
Attribute |
copy(ConstantPool constant_pool) |
void |
dump(DataOutputStream file)
Dump attribute to file stream in binary format.
|
ConstantClass |
getEnclosingClass() |
int |
getEnclosingClassIndex() |
ConstantNameAndType |
getEnclosingMethod() |
int |
getEnclosingMethodIndex() |
void |
setEnclosingClassIndex(int idx) |
void |
setEnclosingMethodIndex(int idx) |
addAttributeReader, clone, getConstantPool, getLength, getName, getNameIndex, getTag, readAttribute, removeAttributeReader, setConstantPool, setLength, setNameIndex, toString
public EnclosingMethod(int nameIndex, int len, DataInputStream dis, ConstantPool cpool) throws IOException
IOException
public void accept(Visitor v)
Attribute
public Attribute copy(ConstantPool constant_pool)
public final int getEnclosingClassIndex()
public final int getEnclosingMethodIndex()
public final void setEnclosingClassIndex(int idx)
public final void setEnclosingMethodIndex(int idx)
public final ConstantClass getEnclosingClass()
public final ConstantNameAndType getEnclosingMethod()
public final void dump(DataOutputStream file) throws IOException
Attribute
dump
in class Attribute
file
- Output file streamIOException
Copyright © 2017. All rights reserved.