org.apache.bcel.classfile

## Class MethodParameter

- java.lang.Object
- - org.apache.bcel.classfile.MethodParameter

- All Implemented Interfaces:
    Cloneable

      public class MethodParameter
      extends Object
      implements Cloneable

  Entry of the parameters table.
  Since:
    6.0
  See Also:
    The class File Format : The MethodParameters Attribute

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MethodParameter()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `accept(Visitor v)`
    `MethodParameter` | `copy()`
    `void` | `dump(DataOutputStream file)` Dump object to file stream on binary format.
    `int` | `getAccessFlags()`
    `int` | `getNameIndex()`
    `String` | `getParameterName(ConstantPool constant_pool)` Returns the name of the parameter.
    `boolean` | `isFinal()`
    `boolean` | `isMandated()`
    `boolean` | `isSynthetic()`
    `void` | `setAccessFlags(int access_flags)`
    `void` | `setNameIndex(int name_index)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MethodParameter

          public MethodParameter()

  - ### Method Detail

    - #### accept

          public void accept(Visitor v)

    - #### copy

          public MethodParameter copy()

      Returns:
        deep copy of this object

    - #### dump

          public final void dump(DataOutputStream file)
                          throws IOException

      Dump object to file stream on binary format.
      Parameters:
        `file` - Output file stream
      Throws:
        `IOException` - if an I/O error occurs.

    - #### getAccessFlags

          public int getAccessFlags()

    - #### getNameIndex

          public int getNameIndex()

    - #### getParameterName

          public String getParameterName(ConstantPool constant_pool)

      Returns the name of the parameter.

    - #### isFinal

          public boolean isFinal()

    - #### isMandated

          public boolean isMandated()

    - #### isSynthetic

          public boolean isSynthetic()

    - #### setAccessFlags

          public void setAccessFlags(int access_flags)

    - #### setNameIndex

          public void setNameIndex(int name_index)

Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.