org.databene.script
Class ConstantScript

java.lang.Object
  extended by org.databene.script.AbstractScript
      extended by org.databene.script.ConstantScript
All Implemented Interfaces:
Script

public class ConstantScript
extends AbstractScript

Script implementation that evaluates to a String constant.

Created: 16.06.2007 06:15:32

Author:
Volker Bergmann

Constructor Summary
ConstantScript(java.lang.String text)
           
 
Method Summary
 void execute(Context context, java.io.Writer out)
           
 void setVariable(java.lang.String variableName, java.lang.Object variableValue)
           
 
Methods inherited from class org.databene.script.AbstractScript
evaluate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantScript

public ConstantScript(java.lang.String text)
Method Detail

setVariable

public void setVariable(java.lang.String variableName,
                        java.lang.Object variableValue)

execute

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


Copyright © 2010. All Rights Reserved.