PrivateMethod

final class PrivateMethod[T]

Represent a private method, whose apply method returns an Invocation object that records the name of the private method to invoke, and any arguments to pass to it when invoked. The type parameter, T, is the return type of the private method.

Value parameters:
methodName

a Symbol representing the name of the private method to invoke

Throws:
NullArgumentException

if methodName is null

Companion:
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(args: Any*): Invocation[T]

Apply arguments to a private method. This method returns an Invocation object, ready to be passed to an invokePrivate method call. The type parameter, T, is the return type of the private method.

Apply arguments to a private method. This method returns an Invocation object, ready to be passed to an invokePrivate method call. The type parameter, T, is the return type of the private method.

Value parameters:
args

zero to many arguments to pass to the private method when invoked

Returns:

an Invocation object that can be passed to invokePrivate to invoke the private method