|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jdo.api.persistence.enhancer.classfile.ClassMember
com.sun.jdo.api.persistence.enhancer.classfile.ClassMethod
public class ClassMethod
ClassMethod models the static and non-static methods of a class within a class file. This includes constructors and initializer code.
| Field Summary | |
|---|---|
static String |
intializerName
|
static 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) |
boolean |
isAbstract()
Is the method abstract? |
boolean |
isNative()
Is the method native? |
ConstUtf8 |
name()
Return the name of the method |
void |
setAccess(int newFlags)
Update the access flags for the field - see VMConstants |
ConstUtf8 |
signature()
Return the type signature of the method |
| Methods inherited from class com.sun.jdo.api.persistence.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 String intializerName
public static final String staticIntializerName
| Constructor Detail |
|---|
public ClassMethod(int accFlags,
ConstUtf8 name,
ConstUtf8 sig,
AttributeVector methodAttrs)
| Method Detail |
|---|
public int access()
access in class ClassMemberpublic void setAccess(int newFlags)
setAccess in class ClassMemberpublic boolean isAbstract()
public boolean isNative()
public ConstUtf8 name()
name in class ClassMemberpublic void changeName(ConstUtf8 name)
public ConstUtf8 signature()
signature in class ClassMemberpublic void changeSignature(ConstUtf8 newSig)
public AttributeVector attributes()
attributes in class ClassMemberpublic CodeAttribute codeAttribute()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||