public abstract class Attribute extends Object implements VisitorAccepter
| Modifier and Type | Field and Description |
|---|---|
int |
u2attributeNameIndex |
Object |
visitorInfo
An extra field in which visitors can store information.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Attribute()
Create an uninitialized Attribute.
|
protected |
Attribute(int u2attributeNameIndex)
Create an initialized Attribute.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
getAttributeName(Clazz clazz)
Returns the String name of the attribute.
|
Object |
getVisitorInfo()
Gets the visitor information of the visitor accepter.
|
void |
setVisitorInfo(Object visitorInfo)
Sets the visitor information of the visitor accepter.
|
public int u2attributeNameIndex
public Object visitorInfo
protected Attribute()
protected Attribute(int u2attributeNameIndex)
public 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 Object getVisitorInfo()
VisitorAcceptergetVisitorInfo in interface VisitorAccepterpublic void setVisitorInfo(Object visitorInfo)
VisitorAcceptersetVisitorInfo in interface VisitorAccepterCopyright © 2015. All Rights Reserved.