Class MethodParametersAttribute

All Implemented Interfaces:
IClassFileAttribute, IMethodParametersAttribute

public class MethodParametersAttribute extends ClassFileAttribute implements IMethodParametersAttribute
Since:
3.10
  • Method Details

    • getMethodParameterLength

      public int getMethodParameterLength()
      Description copied from interface: IMethodParametersAttribute
      Answer back the number of parameters for this method as specified in the JVM specifications.
      Specified by:
      getMethodParameterLength in interface IMethodParametersAttribute
      Returns:
      the number of parameters for this method as specified in the JVM specifications
    • getParameterName

      public char[] getParameterName(int i)
      Description copied from interface: IMethodParametersAttribute
      Answer back the name for the i'th parameter. Answer null if no name is available.
      Specified by:
      getParameterName in interface IMethodParametersAttribute
      Returns:
      back the name for the i'th parameter. Returns null if no name is available.
    • getAccessFlags

      public short getAccessFlags(int i)
      Description copied from interface: IMethodParametersAttribute
      Answer back the access flags for the i'th parameter, a mask of ACC_FINAL, ACC_SYNTHETIC, and ACC_MANDATED.
      Specified by:
      getAccessFlags in interface IMethodParametersAttribute
      Returns:
      the access flags for the i'th parameter.