org.aspectj.apache.bcel.generic
Class FieldGenOrMethodGen
java.lang.Object
org.aspectj.apache.bcel.classfile.Modifiers
org.aspectj.apache.bcel.generic.FieldGenOrMethodGen
- Direct Known Subclasses:
- FieldGen, MethodGen
public abstract class FieldGenOrMethodGen
- extends Modifiers
Super class for FieldGen and MethodGen objects, since they have some methods in common!
Methods inherited from class org.aspectj.apache.bcel.classfile.Modifiers |
getModifiers, isAbstract, isBridge, isFinal, isInterface, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVarargs, isVolatile, setModifiers |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected java.lang.String name
type
protected Type type
cp
protected ConstantPool cp
annotationList
protected java.util.ArrayList<AnnotationGen> annotationList
FieldGenOrMethodGen
protected FieldGenOrMethodGen()
setType
public void setType(Type type)
getType
public Type getType()
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getConstantPool
public ConstantPool getConstantPool()
setConstantPool
public void setConstantPool(ConstantPool cp)
addAttribute
public void addAttribute(Attribute a)
removeAttribute
public void removeAttribute(Attribute a)
removeAttributes
public void removeAttributes()
getAnnotations
public java.util.List<AnnotationGen> getAnnotations()
addAnnotation
public void addAnnotation(AnnotationGen ag)
removeAnnotation
public void removeAnnotation(AnnotationGen ag)
removeAnnotations
public void removeAnnotations()
getAttributes
public java.util.List<Attribute> getAttributes()
getAttributesImmutable
public Attribute[] getAttributesImmutable()
addAnnotationsAsAttribute
protected void addAnnotationsAsAttribute(ConstantPool cp)
getSignature
public abstract java.lang.String getSignature()