de.xabsl.jxabslx.io
Class InputFromMethod
java.lang.Object
de.xabsl.jxabslx.io.MethodAccess
de.xabsl.jxabslx.io.InputFromMethod
- All Implemented Interfaces:
- Input
public class InputFromMethod
- extends MethodAccess
- implements Input
Reads a value from a native java method.
Constructor Summary |
InputFromMethod(java.lang.reflect.Method method,
java.lang.Object container)
|
Method Summary |
java.lang.Object[] |
getParameters()
An array to which parameters will be written to prior to getValue() |
java.lang.Class<?>[] |
getParamTypes()
The parameter types as java classes in the correct order |
java.lang.Object |
getValue()
Returns the value. |
protected java.lang.Object |
invokeMethod()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InputFromMethod
public InputFromMethod(java.lang.reflect.Method method,
java.lang.Object container)
getParameters
public java.lang.Object[] getParameters()
- Description copied from interface:
Input
- An array to which parameters will be written to prior to getValue()
- Specified by:
getParameters
in interface Input
getParamTypes
public java.lang.Class<?>[] getParamTypes()
- Description copied from interface:
Input
- The parameter types as java classes in the correct order
- Specified by:
getParamTypes
in interface Input
invokeMethod
protected java.lang.Object invokeMethod()
getValue
public java.lang.Object getValue()
- Description copied from interface:
Input
- Returns the value. Set parameters before calling this function
- Specified by:
getValue
in interface Input
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object