Class MethodParametersAttribute

All Implemented Interfaces:
IClassFileAttribute, IMethodParametersAttribute

public class MethodParametersAttribute extends ClassFileAttribute implements IMethodParametersAttribute
Since:
3.10
  • Field Summary

    Fields inherited from class ClassFileAttribute

    NO_ATTRIBUTES
    Modifier and Type
    Field
    Description
    static final IClassFileAttribute[]
     
  • Method Summary

    Modifier and Type
    Method
    Description
    short
    Answer back the access flags for the i'th parameter, a mask of ACC_FINAL, ACC_SYNTHETIC, and ACC_MANDATED.
    int
    Answer back the number of parameters for this method as specified in the JVM specifications.
    char[]
    Answer back the name for the i'th parameter.

    Methods inherited from class ClassFileAttribute

    getAttributeLength, getAttributeName, getAttributeNameIndex
    Modifier and Type
    Method
    Description
    long
    Answer back the attribute length as specified in the JVM specifications.
    char[]
    Answer back the attribute name as specified in the JVM specifications.
    int
    Answer back the attribute name index in the constant pool as specified in the JVM specifications.

    Methods inherited from class ClassFileStruct

    doubleAt, floatAt, i1At, i2At, i4At, i8At, u1At, u2At, u4At, utf8At
    Modifier and Type
    Method
    Description
    protected double
    doubleAt(byte[] reference, int relativeOffset, int structOffset)
     
    protected float
    floatAt(byte[] reference, int relativeOffset, int structOffset)
     
    protected int
    i1At(byte[] reference, int relativeOffset, int structOffset)
     
    protected int
    i2At(byte[] reference, int relativeOffset, int structOffset)
     
    protected int
    i4At(byte[] reference, int relativeOffset, int structOffset)
     
    protected long
    i8At(byte[] reference, int relativeOffset, int structOffset)
     
    protected int
    u1At(byte[] reference, int relativeOffset, int structOffset)
     
    protected int
    u2At(byte[] reference, int relativeOffset, int structOffset)
     
    protected int
    u4At(byte[] reference, int relativeOffset, int structOffset)
    Returns an 32 bit integer created of 4 bytes.
    protected char[]
    utf8At(byte[] reference, int relativeOffset, int structOffset, int bytesAvailable)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.