terp - the Codemesh Modular
Template Interpreter v1.3.304

com.codemesh.terp.api
Class Executor.AbstractExecutor<T>

java.lang.Object
  extended by com.codemesh.terp.api.Executor.AbstractExecutor<T>
All Implemented Interfaces:
Executor<T>
Direct Known Subclasses:
ApplyExecutor, BooleanAnd, BooleanNot, BooleanOr, BuiltinRange, Builtins.Size, CollectionAdder, CollectionSubtracter, ComparableComparator, Conditional, Dummy, Emitter, Equals, EvalExecutor, Executor.ForMethod, Expander, Exporter, FileContentsGetter, FileContentsSetter, FirstGetter, FirstSetter, HelpExecutor, Importer, IndexOperatorGetter, IndexOperatorSetter, IsFileTypeExecutor, LastGetter, LastSetter, LvalueAssignment, LvalueDecrement, LvalueDivideAssignment, LvalueIncrement, LvalueMinusAssignment, LvalueModuloAssignment, LvalueMultiplyAssignment, LvaluePlusAssignment, MapAdder, NotEquals, NumericAdder, NumericBitwiseAnd, NumericBitwiseNot, NumericBitwiseOr, NumericComparator, NumericDivider, NumericModulo, NumericMultiplier, NumericNegator, NumericSubtracter, ProcessExecutor, StringMatcher, StringPlusAnythingAdder, TextMultiplier, VersionComparator
Enclosing interface:
Executor<T>

public abstract static class Executor.AbstractExecutor<T>
extends java.lang.Object
implements Executor<T>

A convenient base class for your own custom executors. It maps the Executor.execute(List) method to the Executor.execute(List) method by passing the TerpEvaluator returned by TerpEvaluatorImpl.getInstance() as the second argument and null as the context.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.codemesh.terp.api.Executor
Executor.AbstractExecutor<T>, Executor.ForMethod
 
Constructor Summary
Executor.AbstractExecutor()
           
 
Method Summary
 T execute(java.util.List<java.lang.Object> args)
          Performs the executor's action on the given arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.codemesh.terp.api.Executor
execute, matches
 

Constructor Detail

Executor.AbstractExecutor

public Executor.AbstractExecutor()
Method Detail

execute

public T execute(java.util.List<java.lang.Object> args)
Description copied from interface: Executor
Performs the executor's action on the given arguments. Typically, this method is implemented in terms of Executor.execute(List,TerpEvaluator,TerpContext).

Specified by:
execute in interface Executor<T>
Parameters:
args - the arguments.
Returns:
the execution result.

terp - the Codemesh Modular
Template Interpreter v1.3.304

Copyright © 2008-2012 by Codemesh, Inc. All Rights Reserved.