public abstract class FieldGenOrMethodGen extends AccessFlags implements NamedAndTyped, Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected ConstantPoolGen |
cp |
protected String |
name |
protected Type |
type |
access_flags| Modifier | Constructor and Description |
|---|---|
protected |
FieldGenOrMethodGen() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(Attribute a)
Add an attribute to this method.
|
Object |
clone() |
Attribute[] |
getAttributes() |
ConstantPoolGen |
getConstantPool() |
String |
getName() |
abstract String |
getSignature() |
Type |
getType() |
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, isFinal, isFinal, isInterface, isInterface, isNative, isNative, isPrivate, isPrivate, isProtected, isProtected, isPublic, isPublic, isStatic, isStatic, isStrictfp, isStrictfp, isSynchronized, isSynchronized, isTransient, isTransient, isVolatile, isVolatile, setAccessFlags, setModifiersprotected String name
protected Type type
protected ConstantPoolGen cp
public void setType(Type type)
setType in interface NamedAndTypedpublic Type getType()
getType in interface NamedAndTypedpublic String getName()
getName in interface NamedAndTypedpublic void setName(String name)
setName in interface NamedAndTypedpublic ConstantPoolGen getConstantPool()
public void setConstantPool(ConstantPoolGen cp)
public void addAttribute(Attribute a)
a - attribute to be addedpublic void removeAttribute(Attribute a)
public void removeAttributes()
public Attribute[] getAttributes()
public abstract String getSignature()
Copyright © 2018–2021 mhoffrogge. All rights reserved.