|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.enhancer.classfile.ClassMember
org.apache.jdo.impl.enhancer.classfile.ClassMethod
ClassMethod models the static and non-static methods of a class within a class file. This includes constructors and initializer code.
Field Summary | |
private int |
accessFlags
|
static java.lang.String |
intializerName
|
private AttributeVector |
methodAttributes
|
private ConstUtf8 |
methodName
|
private ConstUtf8 |
methodSignature
|
static java.lang.String |
staticIntializerName
|
Constructor Summary | |
ClassMethod(int accFlags,
ConstUtf8 name,
ConstUtf8 sig,
AttributeVector methodAttrs)
Construct a class method object |
Method Summary | |
int |
access()
Return the access flags for the method - see VMConstants |
AttributeVector |
attributes()
Return the attributes associated with the method |
void |
changeName(ConstUtf8 name)
Change the name of the method |
void |
changeSignature(ConstUtf8 newSig)
Change the type signature of the method |
CodeAttribute |
codeAttribute()
Returns the CodeAttribute associated with this method (if any) |
(package private) int |
codeSize()
Returns the size of the method byteCode (if any) |
ExceptionsAttribute |
exceptionsAttribute()
Returns the ExceptionsAttribute associated with this method (if any) |
SignatureAttribute |
getSignatureAttribute()
Returns the SignatureAttribute, if there's any, for this method. |
boolean |
isAbstract()
Is the method abstract? |
boolean |
isEqual(java.util.Stack msg,
java.lang.Object obj)
Compares this instance with another for structural equality. |
boolean |
isNative()
Is the method native? |
ConstUtf8 |
name()
Return the name of the method |
void |
print(java.io.PrintStream out,
int indent)
|
(package private) static ClassMethod |
read(java.io.DataInputStream data,
ConstantPool pool)
|
void |
setAccess(int newFlags)
Update the access flags for the field - see VMConstants |
ConstUtf8 |
signature()
Return the type signature of the method |
(package private) void |
write(java.io.DataOutputStream data)
|
Methods inherited from class org.apache.jdo.impl.enhancer.classfile.ClassMember |
isFinal, isPrivate, isProtected, isPublic, isStatic, setIsFinal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String intializerName
public static final java.lang.String staticIntializerName
private int accessFlags
private ConstUtf8 methodName
private ConstUtf8 methodSignature
private AttributeVector methodAttributes
Constructor Detail |
public ClassMethod(int accFlags, ConstUtf8 name, ConstUtf8 sig, AttributeVector methodAttrs)
Method Detail |
public int access()
access
in class ClassMember
public void setAccess(int newFlags)
setAccess
in class ClassMember
public boolean isAbstract()
public boolean isNative()
public ConstUtf8 name()
name
in class ClassMember
public void changeName(ConstUtf8 name)
public ConstUtf8 signature()
signature
in class ClassMember
public void changeSignature(ConstUtf8 newSig)
public AttributeVector attributes()
attributes
in class ClassMember
public SignatureAttribute getSignatureAttribute()
int codeSize()
public CodeAttribute codeAttribute()
public ExceptionsAttribute exceptionsAttribute()
public boolean isEqual(java.util.Stack msg, java.lang.Object obj)
isEqual
in class ClassMember
public void print(java.io.PrintStream out, int indent)
static ClassMethod read(java.io.DataInputStream data, ConstantPool pool) throws java.io.IOException
java.io.IOException
void write(java.io.DataOutputStream data) throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |