Class MethodParameter

java.lang.Object
org.apache.bcel.classfile.MethodParameter
All Implemented Interfaces:
Cloneable, Node

public class MethodParameter extends Object implements Cloneable, Node
Entry of the parameters table.

Implements Node as of 6.7.0.

Since:
6.0
See Also:
  • Constructor Details

  • Method Details

    • accept

      public void accept(Visitor v)
      Description copied from interface: Node
      Accepts a visitor.
      Specified by:
      accept in interface Node
      Parameters:
      v - the visitor.
    • copy

      Creates a deep copy of this object.
      Returns:
      deep copy of this object.
    • dump

      public final void dump(DataOutputStream file) throws IOException
      Dumps object to file stream on binary format.
      Parameters:
      file - Output file stream.
      Throws:
      IOException - if an I/O error occurs.
    • getAccessFlags

      public int getAccessFlags()
      Gets the access flags.
      Returns:
      the access flags.
    • getNameIndex

      public int getNameIndex()
      Gets the name index.
      Returns:
      the name index.
    • getParameterName

      public String getParameterName(ConstantPool constantPool)
      Gets the name of the parameter.
      Parameters:
      constantPool - The pool to query.
      Returns:
      Constant from the given pool.
    • isFinal

      public boolean isFinal()
      Checks if this parameter is final.
      Returns:
      true if this parameter is final.
    • isMandated

      public boolean isMandated()
      Checks if this parameter is mandated.
      Returns:
      true if this parameter is mandated.
    • isSynthetic

      public boolean isSynthetic()
      Checks if this parameter is synthetic.
      Returns:
      true if this parameter is synthetic.
    • setAccessFlags

      public void setAccessFlags(int accessFlags)
      Sets the access flags.
      Parameters:
      accessFlags - the access flags.
    • setNameIndex

      public void setNameIndex(int nameIndex)
      Sets the name index.
      Parameters:
      nameIndex - the name index.