lij.runtime
Class ConstraintInstance.ConstraintMethodInstance

java.lang.Object
  extended by lij.runtime.ConstraintInstance
      extended by lij.runtime.ConstraintInstance.ConstraintMethodInstance
Enclosing class:
ConstraintInstance

private static class ConstraintInstance.ConstraintMethodInstance
extends ConstraintInstance

A ConstraintInstance subclass for method constraints.


Field Summary
 
Fields inherited from class lij.runtime.ConstraintInstance
agentInstance, constraint, interpreter
 
Constructor Summary
private ConstraintInstance.ConstraintMethodInstance()
           
 
Method Summary
 Result.State check()
          This method needs to be implemented by any subclasses.
(package private)  Result.State executeConstraintMethod(java.lang.Object object, java.lang.String methodName, java.lang.Class[] parameterTypes, Accessor[] argumentAccessors)
           
 
Methods inherited from class lij.runtime.ConstraintInstance
createConstraintInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstraintInstance.ConstraintMethodInstance

private ConstraintInstance.ConstraintMethodInstance()
Method Detail

check

public Result.State check()
                   throws InterpreterException
Description copied from class: ConstraintInstance
This method needs to be implemented by any subclasses. It performs the evaluation (checking) of the constraint.

Specified by:
check in class ConstraintInstance
Returns:
The result of the evaluation (TRUE, FALSE or MAYBE).
Throws:
InterpreterException

executeConstraintMethod

Result.State executeConstraintMethod(java.lang.Object object,
                                     java.lang.String methodName,
                                     java.lang.Class[] parameterTypes,
                                     Accessor[] argumentAccessors)
                               throws java.lang.SecurityException,
                                      java.lang.NoSuchMethodException,
                                      java.lang.IllegalArgumentException,
                                      java.lang.IllegalAccessException,
                                      java.lang.reflect.InvocationTargetException
Throws:
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException