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.expression.xpath | |
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.test |
Modifier and Type | Field and Description |
---|---|
protected JellyContext |
TagSupport.context
The current context
|
Modifier and Type | Method and Description |
---|---|
protected JellyContext |
JellyContext.createChildContext()
Factory method to create a new child of this context
|
JellyContext |
TagSupport.getContext() |
JellyContext |
Tag.getContext()
Gets the context in which the tag will be run
|
JellyContext |
Jelly.getJellyContext()
The context to use
|
JellyContext |
JellyContext.getParent() |
JellyContext |
JellyContext.getScope(String name) |
JellyContext |
JellyContext.newJellyContext()
A factory method to create a new child context of the
current context.
|
JellyContext |
JellyContext.newJellyContext(Map newVariables)
A factory method to create a new child context of the
current context.
|
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 |
---|---|
void |
Script.run(JellyContext context,
XMLOutput output)
Evaluates the body of a tag
|
void |
TagSupport.setContext(JellyContext context)
Sets the context in which the tag will be run
|
void |
Tag.setContext(JellyContext context)
Sets the context in which the tag will be run
|
void |
DynaBeanTagSupport.setContext(JellyContext context)
Sets the context in which the tag will be run.
|
protected void |
JellyContext.setParent(JellyContext context)
Change the parent context to the one provided
|
Constructor and Description |
---|
JellyContext(JellyContext parent)
Create a new context with the given parent context.
|
JellyContext(JellyContext parentJellyContext,
URL currentURL)
Create a new context with the given parent context.
|
JellyContext(JellyContext parentJellyContext,
URL rootURL,
URL currentURL)
Create a new context with the given parent context.
|
Modifier and Type | Method and Description |
---|---|
Object |
CompositeExpression.evaluate(JellyContext context) |
Object |
ConstantExpression.evaluate(JellyContext context)
Evaluate expression against given context.
|
Object |
Expression.evaluate(JellyContext context)
Evaluates the expression with the given context
and returns the result
|
boolean |
ExpressionSupport.evaluateAsBoolean(JellyContext context) |
boolean |
Expression.evaluateAsBoolean(JellyContext context)
Evaluates the expression with the given context
coercing the result to be a boolean.
|
Iterator |
ExpressionSupport.evaluateAsIterator(JellyContext context) |
Iterator |
CompositeExpression.evaluateAsIterator(JellyContext context) |
Iterator |
Expression.evaluateAsIterator(JellyContext context)
Evaluates the expression with the given context
coercing the result to be an Iterator.
|
String |
ExpressionSupport.evaluateAsString(JellyContext context) |
String |
CompositeExpression.evaluateAsString(JellyContext context) |
String |
Expression.evaluateAsString(JellyContext context)
Evaluates the expression with the given context
coercing the result to be a String.
|
Object |
ExpressionSupport.evaluateRecurse(JellyContext context) |
Object |
Expression.evaluateRecurse(JellyContext context)
This method evaluates the expression until a value (a non-Expression) object
is returned.
|
Modifier and Type | Method and Description |
---|---|
Object |
JexlExpression.evaluate(JellyContext context) |
Modifier and Type | Method and Description |
---|---|
Object |
XPathExpression.evaluate(JellyContext context) |
Modifier and Type | Method and Description |
---|---|
JellyContext |
Embedded.getContext()
Method getContext.
|
Modifier and Type | Method and Description |
---|---|
protected void |
TagScript.configureTag(Tag tag,
JellyContext context)
Compiles a newly created tag if required, sets its parent and body.
|
protected Tag |
StaticTagScript.findDynamicTag(JellyContext context,
StaticTag tag)
Attempts to find a dynamically created tag that has been created since this
script was compiled
|
protected String |
TagScript.getBodyText(JellyContext context,
boolean shouldEscape)
Evaluates the body and obtains it as a string.
|
Tag |
TagScript.getTag(JellyContext context) |
void |
ScriptBlock.run(JellyContext context,
XMLOutput output)
Evaluates the body of a tag
|
void |
ExpressionScript.run(JellyContext context,
XMLOutput output)
Evaluates the body of a tag
|
void |
StaticTagScript.run(JellyContext context,
XMLOutput output) |
void |
TagScript.run(JellyContext context,
XMLOutput output)
Evaluates the body of a tag
|
void |
TextScript.run(JellyContext context,
XMLOutput output)
Evaluates the body of a tag
|
void |
Embedded.setContext(JellyContext context)
Method setContext.
|
protected void |
TagScript.setContextURLs(JellyContext context)
Set the context's root and current URL if not present
|
protected void |
TagScript.setTag(Tag tag,
JellyContext context)
Allows the script to set the tag instance to be used, such as in a StaticTagScript
when a StaticTag is switched with a DynamicTag
|
Modifier and Type | Method and Description |
---|---|
JellyContext |
XMLParser.getContext() |
Modifier and Type | Method and Description |
---|---|
Object |
EscapingExpression.evaluate(JellyContext context) |
void |
XMLParser.setContext(JellyContext context) |
Modifier and Type | Class and Description |
---|---|
class |
JellyServletContext |
Modifier and Type | Method and Description |
---|---|
protected JellyContext |
JellyServletContext.createChildContext() |
protected JellyContext |
JellyServlet.createContext(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
Modifier and Type | Method and Description |
---|---|
protected void |
JellyServlet.runScript(URL script,
JellyContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
Constructor and Description |
---|
JellyServletContext(JellyContext parent,
javax.servlet.ServletContext ctx) |
Modifier and Type | Method and Description |
---|---|
protected JellyContext |
BaseJellyTest.getJellyContext() |
Copyright © 2014 Apache Software Foundation. All rights reserved.