Uses of Interface
org.apache.commons.jelly.Script
Packages that use Script
Package
Description
This package contains the main jelly API classes.
Core implementation classes for Jelly.
Jelly parsers both XML syntax and non-XML syntaxes are supported.
-
Uses of Script in org.apache.commons.jelly
Fields in org.apache.commons.jelly declared as ScriptMethods in org.apache.commons.jelly that return ScriptModifier and TypeMethodDescriptionScript.compile()
Called by the parser to allow a more efficient representation of the script to be used.Jelly.compileScript()
Compiles the scriptJellyContext.compileScript
(String uri) Attempts to parse the script from the given uri using theJellyContext.getResource(java.lang.String)
method then returns the compiled script.JellyContext.compileScript
(URL url) Attempts to parse the script from the given URL using theJellyContext.getResource(java.lang.String)
method then returns the compiled script.JellyContext.compileScript
(InputSource source) Attempts to parse the script from the given InputSource using theJellyContext.getResource(java.lang.String)
method then returns the compiled script.Tag.getBody()
TagSupport.getBody()
Methods in org.apache.commons.jelly with parameters of type Script -
Uses of Script in org.apache.commons.jelly.impl
Classes in org.apache.commons.jelly.impl that implement ScriptModifier and TypeClassDescriptionclass
CompositeTextScriptBlock
represents a text body of a a tag which contains expressions, so that whitespace trimming can be handled differently.class
ExpressionScript
outputs the value of an expression as text.class
ScriptBlock
a block of scripts.class
StaticTagScript
is a script that evaluates a StaticTag, a piece of static XML though its attributes or element content may contain dynamic expressions.class
TagScript
is a Script that evaluates a custom tag.class
TextScript
outputs some static text.Methods in org.apache.commons.jelly.impl that return ScriptModifier and TypeMethodDescriptionExpressionScript.compile()
ScriptBlock.compile()
TagScript.compile()
Compiles the tags bodyTextScript.compile()
DynamicTagLibrary.getDynamicTag
(String name) Returns the script associated with the given tag nameTagScript.getTagBody()
Returns the tagBody.DynamicTag.getTemplate()
The template to be executed by this tag which may well invoke this instances body from inside the templateMethods in org.apache.commons.jelly.impl with parameters of type ScriptModifier and TypeMethodDescriptionvoid
Add a new script to the end of this blockvoid
DynamicTagLibrary.registerDynamicTag
(String name, Script template) Creates a new tag with the given name and templatevoid
ScriptBlock.removeScript
(Script script) Removes a script from this blockvoid
TagScript.setTagBody
(Script tagBody) Sets the tagBody.void
DynamicTag.setTemplate
(Script template) Constructors in org.apache.commons.jelly.impl with parameters of type Script -
Uses of Script in org.apache.commons.jelly.parser
Methods in org.apache.commons.jelly.parser that return ScriptModifier and TypeMethodDescriptionParse the content of the specified file using this XMLParser.XMLParser.parse
(InputStream input) Parse the content of the specified input stream using this XMLParser.Parse the content of the specified reader using this XMLParser.Parse the content of the specified URI using this XMLParser.Parse the content of the specified file using this XMLParser.XMLParser.parse
(InputSource input) Parse the content of the specified input source using this XMLParser. -
Uses of Script in org.apache.commons.jelly.util
Methods in org.apache.commons.jelly.util with parameters of type ScriptModifier and TypeMethodDescriptionstatic void
TagUtils.trimScript
(Script body) Trims the whitespace from a script and its children.