Packages

c

org.opalj.tac

Parameters

class Parameters[P <: AnyRef] extends (Int) => P

Information about a method's explicit and implicit parameters.

Source
Parameters.scala
Linear Supertypes
(Int) => P, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Parameters
  2. Function1
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Parameters(parameters: Array[P])

    parameters

    The (non-null) array with the information about the explicit method parameters. The array must not be mutated. The first explicit parameter is always stored at location 1 (also in case of static methods) to enable a unified access to a method's parameters whether the method is static or not.

Value Members

  1. def andThen[A](g: (P) => A): (Int) => A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  2. def apply(index: Int): P

    Returns the parameter with the specified index; the first (declared) parameter has the index 1.

    Returns the parameter with the specified index; the first (declared) parameter has the index 1. The (implicit) this parameter has the index 0, if it exists.

    Definition Classes
    Parameters → Function1
  3. def compose[A](g: (A) => Int): (A) => P
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  4. def equals(other: Any): Boolean
    Definition Classes
    Parameters → AnyRef → Any
  5. def hashCode(): ValueOrigin
    Definition Classes
    Parameters → AnyRef → Any
  6. def parameter(vo: ValueOrigin): P

    Returns the parameter with the respective value origin.

    Returns the parameter with the respective value origin.

    vo

    The origin of the associated parameter. The origin is used in the 3-address code to identify parameters. The origin -1 always identifies the this parameter in case of an instance method and is unused otherwise. The origins [-2..(-2-parametersCount)] correspond to the explicitly specified method parameters.

    returns

    The parameter with the respective value origin.

  7. val parameters: Array[P]
  8. def thisParameter: P

    The instance method's implicit this parameter.

    The instance method's implicit this parameter.

    returns

    The variable capturing information about the this parameter; if the underlying methods is static an UnsupportedOperationException is thrown.

  9. def toString(): String
    Definition Classes
    Parameters → Function1 → AnyRef → Any