public abstract class FieldGenOrMethodGen extends AccessFlags implements NamedAndTyped, Cloneable
Modifier and Type | Field and Description |
---|---|
protected ConstantPoolGen |
cp
Deprecated.
(since 6.0) will be made private; do not access directly, use getter/setter
|
protected String |
name
Deprecated.
(since 6.0) will be made private; do not access directly, use getter/setter
|
protected Type |
type
Deprecated.
(since 6.0) will be made private; do not access directly, use getter/setter
|
access_flags
Modifier | Constructor and Description |
---|---|
protected |
FieldGenOrMethodGen() |
protected |
FieldGenOrMethodGen(int accessFlags) |
Modifier and Type | Method and Description |
---|---|
protected void |
addAll(Attribute[] attrs) |
void |
addAnnotationEntry(AnnotationEntryGen ag) |
void |
addAttribute(Attribute a)
Add an attribute to this method.
|
Object |
clone() |
AnnotationEntryGen[] |
getAnnotationEntries() |
Attribute[] |
getAttributes() |
ConstantPoolGen |
getConstantPool() |
String |
getName() |
abstract 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(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, isVarArgs, isVarArgs, isVolatile, isVolatile, setAccessFlags, setModifiers
@Deprecated protected String name
@Deprecated protected Type type
@Deprecated protected ConstantPoolGen cp
protected FieldGenOrMethodGen()
protected FieldGenOrMethodGen(int accessFlags)
protected void addAll(Attribute[] attrs)
public void addAnnotationEntry(AnnotationEntryGen ag)
public void addAttribute(Attribute a)
a
- attribute to be addedpublic AnnotationEntryGen[] getAnnotationEntries()
public Attribute[] getAttributes()
public ConstantPoolGen getConstantPool()
public String getName()
getName
in interface NamedAndTyped
public abstract String getSignature()
public Type getType()
getType
in interface NamedAndTyped
public void removeAnnotationEntries()
public void removeAnnotationEntry(AnnotationEntryGen ag)
public void removeAttribute(Attribute a)
public void removeAttributes()
public void setConstantPool(ConstantPoolGen cp)
public void setName(String name)
setName
in interface NamedAndTyped
public void setType(Type type)
setType
in interface NamedAndTyped
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.