public class EnclosingMethodAttribute extends 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 |
u2attributeNameIndex, visitorInfo| 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.
|
String |
getClassName(Clazz clazz)
Returns the class name.
|
String |
getName(Clazz clazz)
Returns the method/field name.
|
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, getAttributeName, getVisitorInfo, setVisitorInfopublic int u2classIndex
public int u2nameAndTypeIndex
public Clazz referencedClass
ClassReferenceInitializer.public Method referencedMethod
ClassReferenceInitializer.public EnclosingMethodAttribute()
public EnclosingMethodAttribute(int u2attributeNameIndex,
int u2classIndex,
int u2nameAndTypeIndex)
public void referencedClassAccept(ClassVisitor classVisitor)
public void referencedMethodAccept(MemberVisitor memberVisitor)
public void accept(Clazz clazz, AttributeVisitor attributeVisitor)
AttributeCopyright © 2015. All Rights Reserved.