public class EnclosingMethodAttribute extends Attribute
Attribute
represents an enclosing method attribute.Modifier and Type | Field and Description |
---|---|
Clazz |
referencedClass
An extra field pointing to the referenced Clazz object.
|
Method |
referencedMethod
An extra field optionally pointing to the referenced Method object.
|
int |
u2classIndex |
int |
u2nameAndTypeIndex |
ANNOTATION_DEFAULT, BOOTSTRAP_METHODS, CHARACTER_RANGE_TABLE, CODE, COMPILATION_I_D, CONSTANT_VALUE, DEPRECATED, ENCLOSING_METHOD, EXCEPTIONS, INNER_CLASSES, LINE_NUMBER_TABLE, LOCAL_VARIABLE_TABLE, LOCAL_VARIABLE_TYPE_TABLE, METHOD_PARAMETERS, MODULE, MODULE_MAIN_CLASS, MODULE_PACKAGES, NEST_HOST, NEST_MEMBERS, PERMITTED_SUBCLASSES, RECORD, RUNTIME_INVISIBLE_ANNOTATIONS, RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS, RUNTIME_INVISIBLE_TYPE_ANNOTATIONS, RUNTIME_VISIBLE_ANNOTATIONS, RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS, RUNTIME_VISIBLE_TYPE_ANNOTATIONS, SIGNATURE, SOURCE_DEBUG_EXTENSION, SOURCE_DIR, SOURCE_FILE, SOURCE_I_D, STACK_MAP, STACK_MAP_TABLE, SYNTHETIC, u2attributeNameIndex
processingFlags, processingInfo
Constructor and Description |
---|
EnclosingMethodAttribute()
Creates an uninitialized EnclosingMethodAttribute.
|
EnclosingMethodAttribute(int u2attributeNameIndex,
int u2classIndex,
int u2nameAndTypeIndex)
Creates an initialized EnclosingMethodAttribute.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(Clazz clazz,
AttributeVisitor attributeVisitor)
Accepts the given visitor.
|
java.lang.String |
getClassName(Clazz clazz)
Returns the class name.
|
java.lang.String |
getName(Clazz clazz)
Returns the method/field name.
|
java.lang.String |
getType(Clazz clazz)
Returns the type.
|
void |
referencedClassAccept(ClassVisitor classVisitor)
Lets the referenced class accept the given visitor.
|
void |
referencedMethodAccept(MemberVisitor memberVisitor)
Lets the referenced class member accept the given visitor.
|
accept, accept, accept, accept, getAttributeName
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfo
public int u2classIndex
public int u2nameAndTypeIndex
public Clazz referencedClass
ClassReferenceInitializer
.public Method referencedMethod
ClassReferenceInitializer
.public EnclosingMethodAttribute()
public EnclosingMethodAttribute(int u2attributeNameIndex, int u2classIndex, int u2nameAndTypeIndex)
public java.lang.String getClassName(Clazz clazz)
public java.lang.String getName(Clazz clazz)
public java.lang.String getType(Clazz clazz)
public void referencedClassAccept(ClassVisitor classVisitor)
public void referencedMethodAccept(MemberVisitor memberVisitor)
public void accept(Clazz clazz, AttributeVisitor attributeVisitor)
Attribute