@API(value=Experimental) public class JavaMethodSource extends java.lang.Object implements JavaSource
TestSource
.
This class stores the method name along with its parameter types because
Method
does not implement Serializable
.
Constructor and Description |
---|
JavaMethodSource(java.lang.reflect.Method method)
Create a new
JavaMethodSource using the supplied
method . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.Class<?> |
getJavaClass()
Get the declaring class of this source.
|
java.lang.String |
getJavaMethodName()
Get the method name of this source.
|
java.util.List<java.lang.Class<?>> |
getJavaMethodParameterTypes()
Get the method parameter types of this source.
|
int |
hashCode() |
java.lang.String |
toString() |
public JavaMethodSource(java.lang.reflect.Method method)
JavaMethodSource
using the supplied
method
.method
- the Java method; must not be null
public final java.lang.Class<?> getJavaClass()
Method.getDeclaringClass()
public final java.lang.String getJavaMethodName()
Method.getName()
public final java.util.List<java.lang.Class<?>> getJavaMethodParameterTypes()
Method.getParameterTypes()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object