Package | Description |
---|---|
org.apache.commons.jelly |
This package contains the main jelly API classes.
|
org.apache.commons.jelly.impl |
Core implementation classes for Jelly.
|
org.apache.commons.jelly.parser |
Jelly parsers both XML syntax and non-XML syntaxes are supported.
|
org.apache.commons.jelly.util |
Modifier and Type | Field and Description |
---|---|
protected Script |
TagSupport.body
the body of the tag
|
Modifier and Type | Method and Description |
---|---|
Script |
Script.compile()
Called by the parser to allow a more efficient
representation of the script to be used.
|
Script |
Jelly.compileScript()
Compiles the script
|
Script |
JellyContext.compileScript(InputSource source)
Attempts to parse the script from the given InputSource using the
JellyContext.getResource(java.lang.String) method then returns the compiled script. |
Script |
JellyContext.compileScript(String uri)
Attempts to parse the script from the given uri using the
JellyContext.getResource(java.lang.String) method then returns the compiled script. |
Script |
JellyContext.compileScript(URL url)
Attempts to parse the script from the given URL using the
JellyContext.getResource(java.lang.String) method then returns the compiled script. |
Script |
TagSupport.getBody() |
Script |
Tag.getBody() |
Modifier and Type | Method and Description |
---|---|
void |
TagSupport.setBody(Script body)
Sets the body of the tag
|
void |
Tag.setBody(Script body)
Sets the body of the tag
|
Modifier and Type | Class and Description |
---|---|
class |
CompositeTextScriptBlock
CompositeTextScriptBlock represents a text body of a
a tag which contains expressions, so that whitespace trimming
can be handled differently. |
class |
ExpressionScript
ExpressionScript outputs the value of an expression as text. |
class |
ScriptBlock
ScriptBlock a block of scripts. |
class |
StaticTagScript
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
TagScript is a Script that evaluates a custom tag. |
class |
TextScript
TextScript outputs some static text. |
Modifier and Type | Method and Description |
---|---|
Script |
ScriptBlock.compile() |
Script |
ExpressionScript.compile() |
Script |
TagScript.compile()
Compiles the tags body
|
Script |
TextScript.compile() |
Script |
DynamicTagLibrary.getDynamicTag(String name)
Returns the script associated with the given tag name
|
Script |
TagScript.getTagBody()
Returns the tagBody.
|
Script |
DynamicTag.getTemplate()
The template to be executed by this tag which may well
invoke this instances body from inside the template
|
Modifier and Type | Method and Description |
---|---|
void |
ScriptBlock.addScript(Script script)
Add a new script to the end of this block
|
void |
DynamicTagLibrary.registerDynamicTag(String name,
Script template)
Creates a new tag with the given name and template
|
void |
ScriptBlock.removeScript(Script script)
Removes a script from this block
|
void |
TagScript.setTagBody(Script tagBody)
Sets the tagBody.
|
void |
DynamicTag.setTemplate(Script template) |
Constructor and Description |
---|
DynamicTag(Script template) |
Modifier and Type | Method and Description |
---|---|
Script |
XMLParser.parse(File file)
Parse the content of the specified file using this XMLParser.
|
Script |
XMLParser.parse(InputSource input)
Parse the content of the specified input source using this XMLParser.
|
Script |
XMLParser.parse(InputStream input)
Parse the content of the specified input stream using this XMLParser.
|
Script |
XMLParser.parse(Reader reader)
Parse the content of the specified reader using this XMLParser.
|
Script |
XMLParser.parse(String uri)
Parse the content of the specified URI using this XMLParser.
|
Script |
XMLParser.parse(URL url)
Parse the content of the specified file using this XMLParser.
|
Modifier and Type | Method and Description |
---|---|
static void |
TagUtils.trimScript(Script body)
Trims the whitespace from a script and its children.
|
Copyright © 2014 Apache Software Foundation. All rights reserved.