org.test4j.tools.reflector.imposteriser
类 Invocation

java.lang.Object
  继承者 org.test4j.tools.reflector.imposteriser.Invocation
所有已实现的接口:
SelfDescribing

public class Invocation
extends Object
implements SelfDescribing

The static details about a method and the run-time details of its invocation.

从以下版本开始:
1.0

字段摘要
static Object[] NO_PARAMETERS
           
 
构造方法摘要
Invocation(Object invoked, Method method, Object... parameterValues)
           
 
方法摘要
 Object applyTo(Object target)
           
 void checkReturnTypeCompatibility(Object value)
           
 void describeTo(Description description)
           
 boolean equals(Invocation other)
           
 boolean equals(Object other)
           
 Method getInvokedMethod()
           
 Object getInvokedObject()
           
 Object getParameter(int i)
           
 int getParameterCount()
           
 Object[] getParametersAsArray()
           
 int hashCode()
           
 String toString()
           
 
从类 java.lang.Object 继承的方法
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

字段详细信息

NO_PARAMETERS

public static final Object[] NO_PARAMETERS
构造方法详细信息

Invocation

public Invocation(Object invoked,
                  Method method,
                  Object... parameterValues)
方法详细信息

toString

public String toString()
覆盖:
Object 中的 toString

equals

public boolean equals(Object other)
覆盖:
Object 中的 equals

equals

public boolean equals(Invocation other)

hashCode

public int hashCode()
覆盖:
Object 中的 hashCode

describeTo

public void describeTo(Description description)
指定者:
接口 SelfDescribing 中的 describeTo

getInvokedObject

public Object getInvokedObject()

getInvokedMethod

public Method getInvokedMethod()

getParameterCount

public int getParameterCount()

getParameter

public Object getParameter(int i)

getParametersAsArray

public Object[] getParametersAsArray()

applyTo

public Object applyTo(Object target)
               throws Throwable
抛出:
Throwable

checkReturnTypeCompatibility

public void checkReturnTypeCompatibility(Object value)


Copyright © 2013. All rights reserved.