org.apache.bcel.generic
public abstract class FieldGenOrMethodGen extends AccessFlags implements NamedAndTyped, Cloneable
Version: $Id: FieldGenOrMethodGen.java 410087 2006-05-29 12:12:19Z tcurdt $
| Field Summary | |
|---|---|
| List | attribute_vec |
| protected ConstantPoolGen | cp |
| protected String | name |
| protected Type | type |
| Constructor Summary | |
|---|---|
| protected | FieldGenOrMethodGen() |
| Method Summary | |
|---|---|
| void | addAttribute(Attribute a)
Add an attribute to this method. |
| Object | clone() |
| Attribute[] | getAttributes() |
| ConstantPoolGen | getConstantPool() |
| String | getName() |
| abstract String | getSignature() |
| Type | getType() |
| 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.