org.apache.bcel.generic
Class FieldGenOrMethodGen
- Cloneable, NamedAndTyped, java.io.Serializable
public abstract class FieldGenOrMethodGen
Super class for FieldGen and MethodGen objects, since they have
some methods in common!
Version:
- M. Dahm
- Serialized Form
getAccessFlags, getModifiers, isAbstract, isAbstract, isFinal, isFinal, isInterface, isInterface, isNative, isNative, isPrivate, isPrivate, isProtected, isProtected, isPublic, isPublic, isStatic, isStatic, isStrictfp, isStrictfp, isSynchronized, isSynchronized, isTransient, isTransient, isVolatile, isVolatile, setAccessFlags, setModifiers |
name
protected String name
FieldGenOrMethodGen
protected FieldGenOrMethodGen()
addAttribute
public void addAttribute(Attribute a)
Add an attribute to this method. Currently, the JVM knows about
the `Code', `ConstantValue', `Synthetic' and `Exceptions'
attributes. Other attributes will be ignored by the JVM but do no
harm.
a - attribute to be added
clone
public Object clone()
getAttributes
public Attribute[] getAttributes()
- all attributes of this method.
getSignature
public String getSignature()
- signature of method/field.
removeAttribute
public void removeAttribute(Attribute a)
Remove an attribute.
removeAttributes
public void removeAttributes()
Remove all attributes.