|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectproguard.classfile.attribute.Attribute
public abstract class Attribute
This abstract class represents an attribute that is attached to a class, a class member, or a code attribute. Specific types of attributes are subclassed from it.
| Field Summary | |
|---|---|
int |
u2attributeNameIndex
|
java.lang.Object |
visitorInfo
An extra field in which visitors can store information. |
| Constructor Summary | |
|---|---|
protected |
Attribute()
Create an uninitialized Attribute. |
protected |
Attribute(int u2attributeNameIndex)
Create an initialized Attribute. |
| Method Summary | |
|---|---|
void |
accept(Clazz clazz,
AttributeVisitor attributeVisitor)
Accepts the given visitor. |
void |
accept(Clazz clazz,
Field field,
AttributeVisitor attributeVisitor)
Accepts the given visitor in the context of the given field. |
void |
accept(Clazz clazz,
Method method,
AttributeVisitor attributeVisitor)
Accepts the given visitor in the context of the given method. |
void |
accept(Clazz clazz,
Method method,
CodeAttribute codeAttribute,
AttributeVisitor attributeVisitor)
Accepts the given visitor in the context of the given code attribute. |
java.lang.String |
getAttributeName(Clazz clazz)
Returns the String name of the attribute. |
java.lang.Object |
getVisitorInfo()
Gets the visitor information of the visitor accepter. |
void |
setVisitorInfo(java.lang.Object visitorInfo)
Sets the visitor information of the visitor accepter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int u2attributeNameIndex
public java.lang.Object visitorInfo
| Constructor Detail |
|---|
protected Attribute()
protected Attribute(int u2attributeNameIndex)
| Method Detail |
|---|
public java.lang.String getAttributeName(Clazz clazz)
public void accept(Clazz clazz,
AttributeVisitor attributeVisitor)
public void accept(Clazz clazz,
Field field,
AttributeVisitor attributeVisitor)
public void accept(Clazz clazz,
Method method,
AttributeVisitor attributeVisitor)
public void accept(Clazz clazz,
Method method,
CodeAttribute codeAttribute,
AttributeVisitor attributeVisitor)
public java.lang.Object getVisitorInfo()
VisitorAccepter
getVisitorInfo in interface VisitorAccepterpublic void setVisitorInfo(java.lang.Object visitorInfo)
VisitorAccepter
setVisitorInfo in interface VisitorAccepter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||