scriptella.core
Class IfInterceptor

java.lang.Object
  extended by scriptella.core.ElementInterceptor
      extended by scriptella.core.IfInterceptor
All Implemented Interfaces:
ExecutableElement

public final class IfInterceptor
extends ElementInterceptor

Handles if expressions specified by if attribute on query/script elements.

Version:
1.0
Author:
Fyodor Kupolov
See Also:
JexlExpression

Constructor Summary
IfInterceptor(ExecutableElement next, ScriptingElement scr)
           
 
Method Summary
 void execute(DynamicContext ctx)
          Executes the element.
static ExecutableElement prepare(ExecutableElement next, ScriptingElement s)
           
 
Methods inherited from class scriptella.core.ElementInterceptor
executeNext, getCtxDecorator, getNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IfInterceptor

public IfInterceptor(ExecutableElement next,
                     ScriptingElement scr)
Method Detail

execute

public void execute(DynamicContext ctx)
Description copied from interface: ExecutableElement
Executes the element.

Note: the context may be decorated by DynamicContextDecorator.

Parameters:
ctx - context to use.

prepare

public static ExecutableElement prepare(ExecutableElement next,
                                        ScriptingElement s)


Copyright © Copyright 2006-2009 The Scriptella Project Team.