public class ThreadSafeSimpleEvaluator extends SimpleEvaluator implements IEvaluator
Modifier and Type | Method and Description |
---|---|
<T> T |
getFieldInvoker(java.lang.reflect.Type type,
java.lang.String name,
MemberInvokerData<T> info)
Generates an instance of the specified interface to provide one field getter.
|
<T> T |
getMethodInvoker(java.lang.reflect.Type type,
java.lang.String name,
MemberInvokerData<T> info)
Generates an instance of the specified interface to invoke one method.
|
<T> T |
setFieldInvoker(java.lang.reflect.Type type,
java.lang.String name,
MemberInvokerData<T> info)
Generates an instance of the specified interface to provide one field setter.
|
createEmptyClass, createEvaluator, exec, generateEvalInvoker
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createEmptyClass, createEvaluator, exec, generateEvalInvoker
public <T> T getMethodInvoker(java.lang.reflect.Type type, java.lang.String name, MemberInvokerData<T> info) throws StructuralIntercessionException
Generates an instance of the specified interface to invoke one method. The first parameter of the interface must be the class owner type, meaning, the class where the method is. This parameter is going to be the instance over the invokations are called.
getMethodInvoker
in interface IEvaluator
getMethodInvoker
in class SimpleEvaluator
type
- The class where the method isname
- The name of the methodinfo
- The invoker data needed to obtain the invoker of the specified
methodStructuralIntercessionException
- If a problem was encountered before finishingpublic <T> T getFieldInvoker(java.lang.reflect.Type type, java.lang.String name, MemberInvokerData<T> info) throws StructuralIntercessionException
Generates an instance of the specified interface to provide one field getter. The first parameter of the interface must be the class owner type, meaning, the class where the field is.
getFieldInvoker
in interface IEvaluator
getFieldInvoker
in class SimpleEvaluator
type
- The class where the field isname
- The name of the fieldinfo
- The invoker data needed to obtain the invoker of the specified
fieldStructuralIntercessionException
- If a problem was encountered before finishingpublic <T> T setFieldInvoker(java.lang.reflect.Type type, java.lang.String name, MemberInvokerData<T> info) throws StructuralIntercessionException
Generates an instance of the specified interface to provide one field setter. The first parameter of the interface must be the class owner type, meaning, the class where the field is.
setFieldInvoker
in interface IEvaluator
setFieldInvoker
in class SimpleEvaluator
type
- The class where the field isname
- The name of the fieldinfo
- The invoker data needed to obtain the invoker of the specified
fieldStructuralIntercessionException
- If a problem was encountered before finishing