Class MethodParameter


  • public class MethodParameter
    extends Object
    Represents a method parameter in the MethodParameters attribute.
    • Constructor Detail

      • MethodParameter

        public MethodParameter​(ConstPool constPool,
                               int nameIndex,
                               int accessFlags)
        Constructs a method parameter entry.
        Parameters:
        constPool - the constant pool for resolving references
        nameIndex - constant pool index of the parameter name, or 0 if unnamed
        accessFlags - access flags for the parameter
    • Method Detail

      • getNameIndex

        public int getNameIndex()
        Returns:
        the name index
      • getAccessFlags

        public int getAccessFlags()
        Returns:
        the access flags
      • getName

        public String getName()
        Returns the parameter name.
        Returns:
        the parameter name, or "<unnamed>" if not specified