final class PrivateMethod[T] extends AnyRef
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.
- Source
- PrivateMethodTester.scala
- Exceptions thrown
NullArgumentException
ifmethodName
isnull
- Alphabetic
- By Inheritance
- PrivateMethod
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
apply(args: Any*): Invocation[T]
Apply arguments to a private method.
Apply arguments to a private method. This method returns an
Invocation
object, ready to be passed to aninvokePrivate
method call. The type parameter,T
, is the return type of the private method.- args
zero to many arguments to pass to the private method when invoked
- returns
an
Invocation
object that can be passed toinvokePrivate
to invoke the private method