com.waveset.expression
Class SimpleInterceptor
java.lang.Object
com.waveset.expression.SimpleInterceptor
- All Implemented Interfaces:
- InvokeInterceptor
- public class SimpleInterceptor
- extends java.lang.Object
- implements InvokeInterceptor
Field Summary |
static java.lang.String |
code_id
|
Method Summary |
java.lang.Object |
instantiate(java.lang.String className,
java.util.List args)
Return an object for a expression. |
java.lang.Object |
invoke(java.lang.String className,
java.lang.String methodName,
java.util.List args)
Evaluate an expression. |
boolean |
isIntercepted(java.lang.String className,
java.lang.String methodName,
java.util.List args)
Return true if you want to intercept an expression. |
boolean |
isNewIntercepted(java.lang.String className,
java.util.List args)
Return true if you want to intercept a expression. |
void |
setMethods(java.util.Map methods)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
code_id
public static final java.lang.String code_id
- See Also:
- Constant Field Values
SimpleInterceptor
public SimpleInterceptor()
SimpleInterceptor
public SimpleInterceptor(java.util.Map methods)
setMethods
public void setMethods(java.util.Map methods)
isNewIntercepted
public boolean isNewIntercepted(java.lang.String className,
java.util.List args)
- Return true if you want to intercept a expression.
You may change the argument list.
- Specified by:
isNewIntercepted
in interface InvokeInterceptor
instantiate
public java.lang.Object instantiate(java.lang.String className,
java.util.List args)
- Description copied from interface:
InvokeInterceptor
- Return an object for a expression.
- Specified by:
instantiate
in interface InvokeInterceptor
isIntercepted
public boolean isIntercepted(java.lang.String className,
java.lang.String methodName,
java.util.List args)
- Return true if you want to intercept an expression.
You may change the argument list.
- Specified by:
isIntercepted
in interface InvokeInterceptor
invoke
public java.lang.Object invoke(java.lang.String className,
java.lang.String methodName,
java.util.List args)
- Description copied from interface:
InvokeInterceptor
- Evaluate an expression.
- Specified by:
invoke
in interface InvokeInterceptor