java.lang.Object
com.sun.jdo.api.persistence.enhancer.classfile.ClassMember
com.sun.jdo.api.persistence.enhancer.classfile.ClassMethod
All Implemented Interfaces:
VMConstants

public class ClassMethod extends ClassMember
ClassMethod models the static and non-static methods of a class within a class file. This includes constructors and initializer code.
  • Field Details

  • Constructor Details

  • Method Details

    • access

      public int access()
      Return the access flags for the method - see VMConstants
      Specified by:
      access in class ClassMember
    • setAccess

      public void setAccess(int newFlags)
      Update the access flags for the field - see VMConstants
      Specified by:
      setAccess in class ClassMember
    • isAbstract

      public boolean isAbstract()
      Is the method abstract?
    • isNative

      public boolean isNative()
      Is the method native?
    • name

      public ConstUtf8 name()
      Return the name of the method
      Specified by:
      name in class ClassMember
    • changeName

      public void changeName(ConstUtf8 name)
      Change the name of the method
    • signature

      public ConstUtf8 signature()
      Return the type signature of the method
      Specified by:
      signature in class ClassMember
    • changeSignature

      public void changeSignature(ConstUtf8 newSig)
      Change the type signature of the method
    • attributes

      public AttributeVector attributes()
      Return the attributes associated with the method
      Specified by:
      attributes in class ClassMember
    • codeAttribute

      public CodeAttribute codeAttribute()
      Returns the CodeAttribute associated with this method (if any)