| java.lang.Object javassist.bytecode.AttributeInfo javassist.bytecode.EnclosingMethodAttribute
EnclosingMethodAttribute | public class EnclosingMethodAttribute extends AttributeInfo (Code) | | EnclosingMethod_attribute .
|
Field Summary | |
final public static String | tag The name of this attribute "EnclosingMethod" . |
tag | final public static String tag(Code) | | The name of this attribute "EnclosingMethod" .
|
EnclosingMethodAttribute | public EnclosingMethodAttribute(ConstPool cp, String className, String methodName, String methodDesc)(Code) | | Constructs an EnclosingMethod attribute.
Parameters: cp - a constant pool table. Parameters: className - the name of the innermost enclosing class. Parameters: methodName - the name of the enclosing method. Parameters: methodDesc - the descriptor of the enclosing method. |
EnclosingMethodAttribute | public EnclosingMethodAttribute(ConstPool cp, String className)(Code) | | Constructs an EnclosingMethod attribute.
The value of method_index is set to 0.
Parameters: cp - a constant pool table. Parameters: className - the name of the innermost enclosing class. |
classIndex | public int classIndex()(Code) | | Returns the value of class_index .
|
className | public String className()(Code) | | Returns the name of the class specified by class_index .
|
copy | public AttributeInfo copy(ConstPool newCp, Map classnames)(Code) | | Makes a copy. Class names are replaced according to the
given Map object.
Parameters: newCp - the constant pool table used by the new copy. Parameters: classnames - pairs of replaced and substitutedclass names. |
methodDescriptor | public String methodDescriptor()(Code) | | Returns the method descriptor specified by method_index .
|
methodIndex | public int methodIndex()(Code) | | Returns the value of method_index .
|
methodName | public String methodName()(Code) | | Returns the method name specified by method_index .
|
|
|