|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavassist.bytecode.AttributeInfo
javassist.bytecode.EnclosingMethodAttribute
public class EnclosingMethodAttribute
EnclosingMethod_attribute
.
Field Summary | |
---|---|
static java.lang.String |
tag
The name of this attribute "EnclosingMethod" . |
Constructor Summary | |
---|---|
EnclosingMethodAttribute(ConstPool cp,
java.lang.String className)
Constructs an EnclosingMethod attribute. |
|
EnclosingMethodAttribute(ConstPool cp,
java.lang.String className,
java.lang.String methodName,
java.lang.String methodDesc)
Constructs an EnclosingMethod attribute. |
Method Summary | |
---|---|
int |
classIndex()
Returns the value of class_index . |
java.lang.String |
className()
Returns the name of the class specified by class_index . |
AttributeInfo |
copy(ConstPool newCp,
java.util.Map classnames)
Makes a copy. |
java.lang.String |
methodDescriptor()
Returns the method descriptor specified by method_index . |
int |
methodIndex()
Returns the value of method_index . |
java.lang.String |
methodName()
Returns the method name specified by method_index . |
Methods inherited from class javassist.bytecode.AttributeInfo |
---|
get, getConstPool, getName, length, set |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String tag
"EnclosingMethod"
.
Constructor Detail |
---|
public EnclosingMethodAttribute(ConstPool cp, java.lang.String className, java.lang.String methodName, java.lang.String methodDesc)
cp
- a constant pool table.className
- the name of the innermost enclosing class.methodName
- the name of the enclosing method.methodDesc
- the descriptor of the enclosing method.public EnclosingMethodAttribute(ConstPool cp, java.lang.String className)
method_index
is set to 0.
cp
- a constant pool table.className
- the name of the innermost enclosing class.Method Detail |
---|
public int classIndex()
class_index
.
public int methodIndex()
method_index
.
public java.lang.String className()
class_index
.
public java.lang.String methodName()
method_index
.
public java.lang.String methodDescriptor()
method_index
.
public AttributeInfo copy(ConstPool newCp, java.util.Map classnames)
Map
object.
copy
in class AttributeInfo
newCp
- the constant pool table used by the new copy.classnames
- pairs of replaced and substituted
class names.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |