org.aspectj.apache.bcel.generic
Class FieldGenOrMethodGen

java.lang.Object
  extended by org.aspectj.apache.bcel.classfile.Modifiers
      extended by 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!


Field Summary
protected  java.util.ArrayList<AnnotationGen> annotationList
           
protected  ConstantPool cp
           
protected  java.lang.String name
           
protected  Type type
           
 
Fields inherited from class org.aspectj.apache.bcel.classfile.Modifiers
modifiers
 
Constructor Summary
protected FieldGenOrMethodGen()
           
 
Method Summary
 void addAnnotation(AnnotationGen ag)
           
protected  void addAnnotationsAsAttribute(ConstantPool cp)
           
 void addAttribute(Attribute a)
           
 java.util.List<AnnotationGen> getAnnotations()
           
 java.util.List<Attribute> getAttributes()
           
 Attribute[] getAttributesImmutable()
           
 ConstantPool getConstantPool()
           
 java.lang.String getName()
           
abstract  java.lang.String getSignature()
           
 Type getType()
           
 void removeAnnotation(AnnotationGen ag)
           
 void removeAnnotations()
           
 void removeAttribute(Attribute a)
           
 void removeAttributes()
           
 void setConstantPool(ConstantPool cp)
           
 void setName(java.lang.String name)
           
 void setType(Type type)
           
 
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
 

Field Detail

name

protected java.lang.String name

type

protected Type type

cp

protected ConstantPool cp

annotationList

protected java.util.ArrayList<AnnotationGen> annotationList
Constructor Detail

FieldGenOrMethodGen

protected FieldGenOrMethodGen()
Method Detail

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()