org.apache.bcel.generic
public abstract class FieldGenOrMethodGen extends AccessFlags implements NamedAndTyped, Cloneable
Version: $Id: FieldGenOrMethodGen.java 420672 2006-07-11 01:57:19Z tcurdt $
Field Summary | |
---|---|
protected ArrayList | annotation_vec |
protected ConstantPoolGen | cp |
protected String | name |
protected Type | type |
Constructor Summary | |
---|---|
protected | FieldGenOrMethodGen() |
Method Summary | |
---|---|
void | addAnnotationEntry(AnnotationEntryGen ag) |
void | addAttribute(Attribute a)
Add an attribute to this method. |
Object | clone() |
AnnotationEntryGen[] | getAnnotationEntries() |
Attribute[] | getAttributes() |
ConstantPoolGen | getConstantPool() |
String | getName() |
abstract String | getSignature() |
Type | getType() |
void | removeAnnotationEntries() |
void | removeAnnotationEntry(AnnotationEntryGen ag) |
void | removeAttribute(Attribute a)
Remove an attribute. |
void | removeAttributes()
Remove all attributes. |
void | setConstantPool(ConstantPoolGen cp) |
void | setName(String name) |
void | setType(Type type) |
Parameters: a attribute to be added
Returns: all attributes of this method.
Returns: name of method/field.
Returns: signature of method/field.