org.apache.commons.jelly.tags.bsf
Class ScriptTag
java.lang.Object
|
+--org.apache.commons.jelly.TagSupport
|
+--org.apache.commons.jelly.tags.bsf.ScriptTag
- All Implemented Interfaces:
- org.apache.commons.jelly.LocationAware, org.apache.commons.jelly.Tag
- public class ScriptTag
- extends org.apache.commons.jelly.TagSupport
- implements org.apache.commons.jelly.LocationAware
A tag which evaluates its body using the current scripting language
- Version:
- $Revision: 1.5 $
- Author:
- James Strachan
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary |
ScriptTag(org.apache.bsf.BSFEngine engine,
org.apache.bsf.BSFManager manager)
|
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScriptTag
public ScriptTag(org.apache.bsf.BSFEngine engine,
org.apache.bsf.BSFManager manager)
doTag
public void doTag(org.apache.commons.jelly.XMLOutput output)
throws org.apache.commons.jelly.MissingAttributeException,
org.apache.commons.jelly.JellyTagException
- Overrides:
doTag
in class org.apache.commons.jelly.TagSupport
getColumnNumber
public int getColumnNumber()
- Specified by:
getColumnNumber
in interface org.apache.commons.jelly.LocationAware
- Returns:
- int
getElementName
public java.lang.String getElementName()
- Specified by:
getElementName
in interface org.apache.commons.jelly.LocationAware
- Returns:
- String
getEngine
public org.apache.bsf.BSFEngine getEngine()
- Returns:
- BSFEngine
getFileName
public java.lang.String getFileName()
- Specified by:
getFileName
in interface org.apache.commons.jelly.LocationAware
- Returns:
- String
getLineNumber
public int getLineNumber()
- Specified by:
getLineNumber
in interface org.apache.commons.jelly.LocationAware
- Returns:
- int
setColumnNumber
public void setColumnNumber(int columnNumber)
- Sets the columnNumber.
- Specified by:
setColumnNumber
in interface org.apache.commons.jelly.LocationAware
- Parameters:
columnNumber
- The columnNumber to set
setElementName
public void setElementName(java.lang.String elementName)
- Sets the elementName.
- Specified by:
setElementName
in interface org.apache.commons.jelly.LocationAware
- Parameters:
elementName
- The elementName to set
setEngine
public void setEngine(org.apache.bsf.BSFEngine engine)
- Sets the engine.
- Parameters:
engine
- The engine to set
setFileName
public void setFileName(java.lang.String fileName)
- Sets the fileName.
- Specified by:
setFileName
in interface org.apache.commons.jelly.LocationAware
- Parameters:
fileName
- The fileName to set
setLineNumber
public void setLineNumber(int lineNumber)
- Sets the lineNumber.
- Specified by:
setLineNumber
in interface org.apache.commons.jelly.LocationAware
- Parameters:
lineNumber
- The lineNumber to set
Copyright © 2002-2004 Apache Software Foundation. All Rights Reserved.