org.databene.script
Class AbstractScript

java.lang.Object
  extended by org.databene.script.AbstractScript
All Implemented Interfaces:
Script
Direct Known Subclasses:
BeneratorScript, ConstantScript, FreeMarkerScript

public abstract class AbstractScript
extends java.lang.Object
implements Script

Abstract implementation of the Script interface. When inheriting from it, you must overwrite at least one of the methods evaluate() and execute().

Created at 23.12.2008 07:15:39

Since:
0.4.7
Author:
Volker Bergmann

Constructor Summary
AbstractScript()
           
 
Method Summary
 java.lang.Object evaluate(Context context)
           
 void execute(Context context, java.io.Writer out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractScript

public AbstractScript()
Method Detail

evaluate

public java.lang.Object evaluate(Context context)
                          throws ScriptException
Specified by:
evaluate in interface Script
Throws:
ScriptException

execute

public void execute(Context context,
                    java.io.Writer out)
             throws ScriptException,
                    java.io.IOException
Specified by:
execute in interface Script
Throws:
ScriptException
java.io.IOException


Copyright © 2010. All Rights Reserved.