org.simantics.databoard.method
Class MethodReflectionBinding

java.lang.Object
  extended by org.simantics.databoard.method.MethodReflectionBinding

public class MethodReflectionBinding
extends java.lang.Object


Constructor Summary
MethodReflectionBinding()
           
 
Method Summary
 MethodTypeBinding[] getInterfaceBinding(java.lang.Class<?> interfaze)
           
 Interface getInterfaceType(java.lang.Class<?> interfaze)
           
 MethodTypeBinding getMethodBinding(java.lang.reflect.Method m)
          Get method binding of a method.
 MethodTypeDefinition getMethodDescription(java.lang.reflect.Method m)
          Get method description
 MethodType getMethodType(java.lang.reflect.Method m)
          Get method type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodReflectionBinding

public MethodReflectionBinding()
Method Detail

getMethodBinding

public MethodTypeBinding getMethodBinding(java.lang.reflect.Method m)
                                   throws BindingConstructionException
Get method binding of a method. Method arguments are wrapped into an Object[]. Throwables in an UnionType.

Parameters:
m -
Returns:
method bindings
Throws:
BindingConstructionException

getMethodDescription

public MethodTypeDefinition getMethodDescription(java.lang.reflect.Method m)
                                          throws DataTypeConstructionException
Get method description

Parameters:
m -
Returns:
method description
Throws:
DataTypeConstructionException

getMethodType

public MethodType getMethodType(java.lang.reflect.Method m)
                         throws DataTypeConstructionException
Get method type

Parameters:
m -
Returns:
method type
Throws:
DataTypeConstructionException

getInterfaceBinding

public MethodTypeBinding[] getInterfaceBinding(java.lang.Class<?> interfaze)
                                        throws BindingConstructionException
Throws:
BindingConstructionException

getInterfaceType

public Interface getInterfaceType(java.lang.Class<?> interfaze)
                           throws BindingConstructionException
Throws:
BindingConstructionException