public abstract class FieldGenOrMethodGen extends AccessFlags implements NamedAndTyped, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected java.util.List<AnnotationEntryGen> |
annotation_vec |
protected ConstantPoolGen |
cp |
protected java.lang.String |
name |
protected Type |
type |
access_flags
Modifier | Constructor and Description |
---|---|
protected |
FieldGenOrMethodGen() |
Modifier and Type | Method and Description |
---|---|
void |
addAnnotationEntry(AnnotationEntryGen ag) |
void |
addAttribute(Attribute a)
Add an attribute to this method.
|
FieldGenOrMethodGen |
clone() |
AnnotationEntryGen[] |
getAnnotationEntries() |
Attribute[] |
getAttributes() |
ConstantPoolGen |
getConstantPool() |
java.lang.String |
getName() |
abstract java.lang.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(java.lang.String name) |
void |
setType(Type type) |
getAccessFlags, getModifiers, isAbstract, isAbstract, isAnnotation, isAnnotation, isEnum, isEnum, isFinal, isFinal, isInterface, isInterface, isNative, isNative, isPrivate, isPrivate, isProtected, isProtected, isPublic, isPublic, isStatic, isStatic, isStrictfp, isStrictfp, isSynchronized, isSynchronized, isSynthetic, isSynthetic, isTransient, isTransient, isVolatile, isVolatile, setAccessFlags, setModifiers
protected java.lang.String name
protected Type type
protected ConstantPoolGen cp
protected java.util.List<AnnotationEntryGen> annotation_vec
public void setType(Type type)
setType
in interface NamedAndTyped
public Type getType()
getType
in interface NamedAndTyped
public java.lang.String getName()
getName
in interface NamedAndTyped
public void setName(java.lang.String name)
setName
in interface NamedAndTyped
public ConstantPoolGen getConstantPool()
public void setConstantPool(ConstantPoolGen cp)
public void addAttribute(Attribute a)
a
- attribute to be addedpublic void addAnnotationEntry(AnnotationEntryGen ag)
public void removeAttribute(Attribute a)
public void removeAnnotationEntry(AnnotationEntryGen ag)
public void removeAttributes()
public void removeAnnotationEntries()
public Attribute[] getAttributes()
public AnnotationEntryGen[] getAnnotationEntries()
public abstract java.lang.String getSignature()
public FieldGenOrMethodGen clone()
clone
in class java.lang.Object