Class ClassFile.MethodInfo

  • Enclosing class:
    ClassFile

    public class ClassFile.MethodInfo
    extends Object
    Representation of a "method_info" structure, as defined by JVMS7 4.6.
    • Method Detail

      • getModifierFlags

        public short getModifierFlags()
        Returns:
        The modifier flags of this method; or'ed values are the constants declared in Mod.
      • getAnnotations

        public Java.Annotation[] getAnnotations()
        Returns:
        The annotations of this method
      • getName

        public String getName()
        Returns:
        The method's name
      • getDescriptor

        public String getDescriptor()
        Returns:
        The method descriptor describing this method
      • addAttribute

        public void addAttribute​(ClassFile.AttributeInfo attribute)
        Adds the given attribute to this method.