Package | Description |
---|---|
org.apache.commons.jelly |
This package contains the main jelly API classes.
|
org.apache.commons.jelly.expression |
Implementations of the Expression classes using commons-jexl.
|
org.apache.commons.jelly.expression.jexl |
Expressions used to turn the tag attribute values into compiled
expression objects for languages such as Jexl, XPath, Velocity, beanshell, Rhino
etc.
|
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.servlet |
Classes for using Jelly on the Servlet platform.
|
org.apache.commons.jelly.tags.core |
The core Tags from the JSTL plus Jelly extensions.
|
org.apache.commons.jelly.tags.junit |
A collection of JUnit tags for
performing unit tests written in Jelly script.
|
org.apache.commons.jelly.tags.xml |
The XML Tags from the JSTL
|
org.apache.commons.jelly.util |
Modifier and Type | Class and Description |
---|---|
class |
JellyTagException
A
JellyTagException is an exception generated by a Tag
implementation. |
class |
MissingAttributeException
JellyException is the root of all Jelly exceptions. |
Modifier and Type | Method and Description |
---|---|
void |
CompilableTag.compile()
Called by the parser to allow a more tag to create a more efficient
format of the tag.
|
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(org.xml.sax.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(java.lang.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(java.net.URL url)
Attempts to parse the script from the given URL using the
JellyContext.getResource(java.lang.String) method then returns the compiled script. |
Expression |
TagLibrary.createExpression(ExpressionFactory factory,
TagScript tagScript,
java.lang.String attributeName,
java.lang.String attributeValue)
Allows taglibs to use their own expression evaluation mechanism
|
Tag |
TagLibrary.createTag(java.lang.String name,
org.xml.sax.Attributes attributes)
Creates a new Tag for the given tag name and attributes
|
TagScript |
TagLibrary.createTagScript(java.lang.String name,
org.xml.sax.Attributes attributes)
Creates a new script to execute the given tag name and attributes
|
JellyContext |
JellyContext.runScript(java.io.File file,
XMLOutput output)
Parses the script from the given File then compiles it and runs it.
|
JellyContext |
JellyContext.runScript(java.io.File file,
XMLOutput output,
boolean export,
boolean inherit)
Parses the script from the given file then compiles it and runs it.
|
JellyContext |
JellyContext.runScript(org.xml.sax.InputSource source,
XMLOutput output)
Parses the script from the given InputSource then compiles it and runs it.
|
JellyContext |
JellyContext.runScript(org.xml.sax.InputSource source,
XMLOutput output,
boolean export,
boolean inherit)
Parses the script from the given InputSource then compiles it and runs it.
|
JellyContext |
JellyContext.runScript(java.lang.String uri,
XMLOutput output)
Parses the script from the given uri using the
JellyContext.getResource() API then compiles it and runs it.
|
JellyContext |
JellyContext.runScript(java.lang.String uri,
XMLOutput output,
boolean export,
boolean inherit)
Parses the script from the given uri using the
JellyContext.getResource() API then compiles it and runs it.
|
JellyContext |
JellyContext.runScript(java.net.URL url,
XMLOutput output)
Parses the script from the given URL then compiles it and runs it.
|
JellyContext |
JellyContext.runScript(java.net.URL url,
XMLOutput output,
boolean export,
boolean inherit)
Parses the script from the given URL then compiles it and runs it.
|
Modifier and Type | Method and Description |
---|---|
Expression |
ExpressionFactory.createExpression(java.lang.String text)
Creates a new expression for the given text
|
static Expression |
CompositeExpression.parse(java.lang.String text,
ExpressionFactory factory)
Parses the given String to be either a ConstantExpression, an Expression denoted as
"${foo}" or some String with embedded expressions such as "abc${something}def${else}xyz"
which results in a CompositeExpression being returned.
|
Modifier and Type | Method and Description |
---|---|
Expression |
JexlExpressionFactory.createExpression(java.lang.String text) |
Modifier and Type | Class and Description |
---|---|
class |
BreakException
BreakException is used to terminate loops such as
<forEach> and <while> tags. |
Modifier and Type | Method and Description |
---|---|
protected JellyException |
TagScript.createJellyException(java.lang.String reason)
Creates a new Jelly exception, adorning it with location information
|
protected JellyException |
TagScript.createJellyException(java.lang.String reason,
java.lang.Exception cause)
Creates a new Jelly exception, adorning it with location information
|
Modifier and Type | Method and Description |
---|---|
protected void |
TagScript.handleException(JellyException e)
A helper method to handle this Jelly exception.
|
Modifier and Type | Method and Description |
---|---|
Script |
ScriptBlock.compile() |
Script |
TagScript.compile()
Compiles the tags body
|
protected void |
TagScript.configureTag(Tag tag,
JellyContext context)
Compiles a newly created tag if required, sets its parent and body.
|
protected java.lang.Object |
TagScript.convertType(java.lang.Object value,
java.lang.Class requiredType)
Converts the given value to the required type.
|
protected Tag |
StaticTagScript.createTag() |
protected Tag |
TagScript.createTag()
Factory method to create a new Tag instance.
|
Tag |
TagFactory.createTag(java.lang.String name,
org.xml.sax.Attributes attributes)
Creates a Tag for the given local name and the SAX attributes
|
Tag |
DefaultTagFactory.createTag(java.lang.String name,
org.xml.sax.Attributes attributes) |
Tag |
DynamicTagLibrary.createTag(java.lang.String name,
org.xml.sax.Attributes attributes)
Creates a new Tag for the given tag name if it exists
|
TagScript |
DynamicTagLibrary.createTagScript(java.lang.String name,
org.xml.sax.Attributes attributes)
Creates a new script to execute the given tag name and attributes
|
protected Tag |
StaticTagScript.findDynamicTag(JellyContext context,
StaticTag tag)
Attempts to find a dynamically created tag that has been created since this
script was compiled
|
Tag |
TagScript.getTag(JellyContext context) |
Modifier and Type | Method and Description |
---|---|
protected void |
XMLParser.addTextScript(java.lang.String text,
boolean start)
Adds the text to the current script block parsing any embedded
expressions into ExpressionScript objects.
|
protected void |
XMLParser.configureStaticTagAttributes(TagScript script,
org.xml.sax.Attributes list) |
Modifier and Type | Method and Description |
---|---|
protected void |
JellyServlet.runScript(java.net.URL script,
JellyContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
Modifier and Type | Method and Description |
---|---|
TagScript |
CoreTagLibrary.createTagScript(java.lang.String name,
org.xml.sax.Attributes attributes) |
Modifier and Type | Method and Description |
---|---|
Expression |
JUnitTagLibrary.createExpression(ExpressionFactory factory,
TagScript tagScript,
java.lang.String attributeName,
java.lang.String attributeValue) |
Modifier and Type | Method and Description |
---|---|
Expression |
XMLTagLibrary.createExpression(ExpressionFactory factory,
TagScript tagScript,
java.lang.String attributeName,
java.lang.String attributeValue) |
protected Expression |
XMLTagLibrary.createXPathTextExpression(java.lang.String exprText) |
Modifier and Type | Method and Description |
---|---|
void |
CommandLineParser.invokeCommandLineJelly(java.lang.String[] args)
Parse out the command line options and configure
the give Jelly instance.
|
Copyright © 2014. All Rights Reserved.