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.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(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. |
Expression |
TagLibrary.createExpression(ExpressionFactory factory,
TagScript tagScript,
String attributeName,
String attributeValue)
Allows taglibs to use their own expression evaluation mechanism
|
Tag |
TagLibrary.createTag(String name,
Attributes attributes)
Creates a new Tag for the given tag name and attributes
|
TagScript |
TagLibrary.createTagScript(String name,
Attributes attributes)
Creates a new script to execute the given tag name and attributes
|
JellyContext |
JellyContext.runScript(File file,
XMLOutput output)
Parses the script from the given File then compiles it and runs it.
|
JellyContext |
JellyContext.runScript(File file,
XMLOutput output,
boolean export,
boolean inherit)
Parses the script from the given file then compiles it and runs it.
|
JellyContext |
JellyContext.runScript(InputSource source,
XMLOutput output)
Parses the script from the given InputSource then compiles it and runs it.
|
JellyContext |
JellyContext.runScript(InputSource source,
XMLOutput output,
boolean export,
boolean inherit)
Parses the script from the given InputSource then compiles it and runs it.
|
JellyContext |
JellyContext.runScript(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(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(URL url,
XMLOutput output)
Parses the script from the given URL then compiles it and runs it.
|
JellyContext |
JellyContext.runScript(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(String text)
Creates a new expression for the given text
|
static Expression |
CompositeExpression.parse(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(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(String reason)
Creates a new Jelly exception, adorning it with location information
|
protected JellyException |
TagScript.createJellyException(String reason,
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 Object |
TagScript.convertType(Object value,
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 |
DynamicTagLibrary.createTag(String name,
Attributes attributes)
Creates a new Tag for the given tag name if it exists
|
Tag |
TagFactory.createTag(String name,
Attributes attributes)
Creates a Tag for the given local name and the SAX attributes
|
Tag |
DefaultTagFactory.createTag(String name,
Attributes attributes) |
TagScript |
DynamicTagLibrary.createTagScript(String name,
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(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,
Attributes list) |
Modifier and Type | Method and Description |
---|---|
protected void |
JellyServlet.runScript(URL script,
JellyContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
Modifier and Type | Method and Description |
---|---|
TagScript |
CoreTagLibrary.createTagScript(String name,
Attributes attributes) |
Modifier and Type | Method and Description |
---|---|
void |
CommandLineParser.invokeCommandLineJelly(String[] args)
Parse out the command line options and configure
the give Jelly instance.
|
Copyright © 2014 Apache Software Foundation. All rights reserved.