Package | Description |
---|---|
com.caucho.xpath |
Finding and selecting XML nodes using XSL patterns.
|
com.caucho.xpath.expr | |
com.caucho.xpath.pattern | |
com.caucho.xsl |
The XSLT transformation package.
|
com.caucho.xsl.fun | |
com.caucho.xsl.java |
Modifier and Type | Method and Description |
---|---|
AbstractPattern |
Expr.getListContext() |
AbstractPattern |
Pattern.getPattern()
Returns the underlying pattern implementation.
|
AbstractPattern |
Env.getSelect() |
AbstractPattern |
Env.setSelect(org.w3c.dom.Node node,
AbstractPattern select)
Sets the selection context
|
protected AbstractPattern |
Expr.toNodeList()
Convert from an expression to a pattern.
|
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Object |
XPathFun.eval(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern pattern,
java.util.ArrayList args)
Evaluate the function.
|
static Expr |
XPath.parseExpr(java.lang.String query,
NamespaceContext namespace,
AbstractPattern nodeList)
Parses an XPath expression for later evaluation.
|
void |
Expr.setListContext(AbstractPattern listContext) |
AbstractPattern |
Env.setSelect(org.w3c.dom.Node node,
AbstractPattern select)
Sets the selection context
|
Modifier and Type | Method and Description |
---|---|
AbstractPattern |
NumericExpr.getListContext() |
AbstractPattern |
NodeSetExpr.getPattern()
Returns the underlying pattern.
|
protected AbstractPattern |
NodeSetExpr.toNodeList()
Convert from an expression to a pattern.
|
protected AbstractPattern |
ObjectExpr.toNodeList()
Convert from an expression to a pattern.
|
Modifier and Type | Method and Description |
---|---|
static Expr |
NodeSetExpr.create(AbstractPattern pattern)
Creates an expr, handling some special cases.
|
Constructor and Description |
---|
FunExpr(java.lang.String name,
AbstractPattern pattern,
java.util.ArrayList<Expr> args) |
NumericExpr(int code,
AbstractPattern listPattern) |
NumericExpr(int code,
AbstractPattern axis,
AbstractPattern pattern) |
Modifier and Type | Class and Description |
---|---|
class |
CurrentPattern
Matches the current node.
|
class |
FilterPattern
matches a node if it matches a filter expression.
|
class |
FromAncestors
Implements the ancestor:: axis.
|
class |
FromAny
matches any node.
|
class |
FromAttributes
matches attributes of an element.
|
class |
FromChildren
matches child nodes.
|
class |
FromContext
Matches the node context.
|
class |
FromDescendants
Matches any descendant.
|
class |
FromExpr
matches if the expression returns a node set and the test-node is
contained in that node set.
|
class |
FromNamespace
matches namespace nodes of an element.
|
class |
FromNext
Matches nodes following the current node in the current document.
|
class |
FromNextSibling
matches following siblings
|
class |
FromParent |
class |
FromPrevious
Matches nodes preceding the current node, not counting descendants.
|
class |
FromPreviousSibling
matches if we can find a following sibling matching the parent pattern.
|
class |
FromRoot
Represents a match with the document root.
|
class |
FromSelf
The self axis matches the current node.
|
class |
NamespacePattern |
class |
NodePattern
Matches a named node, like para or @id.
|
class |
NodeTypePattern
Matches a node without checking the name.
|
class |
NSNamePattern
Matches a named node, like foo:para or @foo:id when the prefix
maps to a namespace.
|
class |
UnionPattern
Implementation of the 'a|b' pattern.
|
Modifier and Type | Field and Description |
---|---|
protected AbstractPattern |
AxisIterator._axis |
protected AbstractPattern |
AbstractPattern._child |
protected AbstractPattern |
NamespaceIterator._match |
protected AbstractPattern |
AttributeListIterator._match |
protected AbstractPattern |
AxisIterator._match |
protected AbstractPattern |
AbstractPattern._parent |
Modifier and Type | Method and Description |
---|---|
AbstractPattern |
AbstractPattern.copyAxis()
Returns the owning axis for the pattern.
|
AbstractPattern |
FilterPattern.copyPosition() |
AbstractPattern |
AbstractPattern.copyPosition()
Returns the position matching pattern.
|
AbstractPattern |
NSNamePattern.copyPosition()
Copies the position (non-axis) portion of the pattern.
|
AbstractPattern |
NodePattern.copyPosition()
Copies the position (non-axis) portion of the pattern.
|
AbstractPattern |
NodeTypePattern.copyPosition()
Copies the node matching portion of the pattern, i.e.
|
static AbstractPattern |
NodeTypePattern.create(AbstractPattern parent,
int nodeType) |
AbstractPattern |
UnionPattern.getLeft()
Return left node of the union.
|
AbstractPattern |
AbstractPattern.getParent()
Returns the parent pattern.
|
AbstractPattern |
UnionPattern.getRight()
Return right node of the union.
|
Modifier and Type | Method and Description |
---|---|
int |
FromAttributes.count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
counts all siblings matching the pattern.
|
int |
AbstractPattern.count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
Returns the number of nodes in its context for a match pattern.
|
int |
FromExpr.count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
The count is the size of the expression node-set.
|
int |
FromAncestors.count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
counts the number of matching ancestors from the axis context
|
int |
FromSelf.count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
Only one node in the self axis.
|
int |
FromDescendants.count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
Counts the descendant nodes matching the pattern.
|
int |
FromChildren.count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
Counts all siblings matching the pattern.
|
int |
UnionPattern.count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern) |
int |
FromContext.count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
There is only a single node in the context axis.
|
int |
FromPrevious.count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
counts matching nodes preceding the axis context.
|
int |
FromAny.count(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern pattern) |
static AbstractPattern |
NodeTypePattern.create(AbstractPattern parent,
int nodeType) |
NodeIterator |
FilterPattern.createNodeIterator(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern match)
Creates a new node iterator.
|
NodeIterator |
FromAttributes.createNodeIterator(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern match)
Creates a new node iterator.
|
NodeIterator |
AbstractPattern.createNodeIterator(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern pattern)
Creates a new node iterator.
|
NodeIterator |
FromExpr.createNodeIterator(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern match)
Creates a new node iterator.
|
NodeIterator |
CurrentPattern.createNodeIterator(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern match)
Creates a new node iterator.
|
NodeIterator |
UnionPattern.createNodeIterator(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern match)
Creates a new node iterator.
|
NodeIterator |
FromNamespace.createNodeIterator(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern match)
Creates a new node iterator.
|
int |
FromAttributes.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
The position of the child is the count of previous siblings
matching the pattern.
|
int |
AbstractPattern.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
Returns the position of the node in its context for a match pattern.
|
int |
FromExpr.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
The position is the position in the expression node-set.
|
int |
CurrentPattern.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
There is only a single node in the current
|
int |
FromAncestors.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
The ancestor position is the number of matching nodes between it
and an axis-context.
|
int |
FromSelf.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
Only one node in the self axis.
|
int |
FromDescendants.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
Counts matching nodes between the axis-context and the node
|
int |
FromChildren.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
The position of the child is the count of previous siblings
matching the pattern.
|
int |
UnionPattern.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern) |
int |
FromContext.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
There is only a single node in the context axis.
|
int |
FromNextSibling.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
The count of nodes between the test-node and the axis.
|
int |
FromPrevious.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
Calculates position by counting next nodes matching the pattern.
|
int |
FromPreviousSibling.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
The count of nodes between the test-node and the axis.
|
int |
FromNext.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
Calculates position by counting previous nodes matching the pattern.
|
int |
FromAny.position(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern pattern) |
Constructor and Description |
---|
AttributeIterator(NodeIterator parentIter,
AbstractPattern axis,
org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern match)
Creates the new AxisIterator.
|
AttributeListIterator(NodeIterator parentIter,
ExprEnvironment env,
AbstractPattern match)
Creates the new AxisIterator.
|
AxisIterator(NodeIterator parentIter,
AbstractPattern axis,
org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern match)
Creates the new AxisIterator.
|
FilterPattern(AbstractPattern parent,
Expr expr) |
FromAncestors(AbstractPattern parent,
boolean self) |
FromAttributes(AbstractPattern parent) |
FromChildren(AbstractPattern parent) |
FromDescendants(AbstractPattern parent,
boolean self) |
FromExpr(AbstractPattern parent,
Expr expr) |
FromNamespace(AbstractPattern parent) |
FromNext(AbstractPattern parent) |
FromNextSibling(AbstractPattern parent) |
FromParent(AbstractPattern parent) |
FromPrevious(AbstractPattern parent) |
FromPreviousSibling(AbstractPattern parent) |
FromSelf(AbstractPattern parent) |
NamespaceIterator(org.w3c.dom.Node node,
NodeIterator parentIter,
ExprEnvironment env,
AbstractPattern match)
Creates the new NamespaceIterator.
|
NamespacePattern(AbstractPattern parent,
java.lang.String prefix,
int nodeType) |
NodePattern(AbstractPattern parent,
java.lang.String tag,
int nodeType)
Creates a new node-matching pattern.
|
NSNamePattern(AbstractPattern parent,
java.lang.String namespace,
java.lang.String local,
int nodeType)
Creates the namespace pattern.
|
UnionPattern(AbstractPattern left,
AbstractPattern right) |
Modifier and Type | Method and Description |
---|---|
AbstractPattern |
JavaGenerator.getNodeListContext() |
AbstractPattern |
Template.getPattern() |
Modifier and Type | Method and Description |
---|---|
int |
JavaGenerator.addMatch(AbstractPattern pattern)
Adds a match pattern, returning its index.
|
int |
JavaGenerator.addSelect(AbstractPattern select)
Adds a select pattern returning its index.
|
void |
StylesheetImpl.anyNumber(XslWriter out,
org.w3c.dom.Node node,
Env env,
AbstractPattern countPattern,
AbstractPattern fromPattern,
XslNumberFormat format) |
java.lang.String |
JavaGenerator.createTemplatePattern(java.lang.String name,
AbstractPattern match,
java.lang.String mode,
double priority)
Generates the pattern for a matching pattern
|
void |
StylesheetImpl.multiNumber(XslWriter out,
org.w3c.dom.Node node,
Env env,
AbstractPattern countPattern,
AbstractPattern fromPattern,
XslNumberFormat format) |
protected void |
JavaGenerator.printApplyTemplates(AbstractPattern select,
java.lang.String mode,
Sort[] sort)
Prints code for xsl:apply-templates
|
void |
JavaGenerator.setNodeListContext(AbstractPattern context) |
void |
StylesheetImpl.singleNumber(XslWriter out,
org.w3c.dom.Node node,
Env env,
AbstractPattern countPattern,
AbstractPattern fromPattern,
XslNumberFormat format) |
protected java.util.ArrayList |
StylesheetImpl.xslSort(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern,
Sort[] sortList) |
Constructor and Description |
---|
Template(AbstractPattern pattern,
java.lang.String mode,
int minImportance,
int maxImportance,
double priority,
int count,
java.lang.String function,
int funId) |
Modifier and Type | Method and Description |
---|---|
AbstractPattern |
KeyFun.Key.getMatch() |
Modifier and Type | Method and Description |
---|---|
void |
KeyFun.add(java.lang.String name,
AbstractPattern match,
Expr use)
Add a new key.
|
java.lang.Object |
KeyFun.eval(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern pattern,
java.util.ArrayList args)
Evaluate the function.
|
java.lang.Object |
ExtensionFunctionFun.eval(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern pattern,
java.util.ArrayList args)
Evaluate the function.
|
java.lang.Object |
DocumentFun.eval(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern pattern,
java.util.ArrayList args)
Evaluate the function.
|
java.lang.Object |
ExtensionElementFun.eval(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern pattern,
java.util.ArrayList args)
Evaluate the function.
|
java.lang.Object |
UnparsedEntityFun.eval(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern pattern,
java.util.ArrayList args)
Evaluate the function.
|
java.lang.Object |
SystemPropertyFun.eval(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern pattern,
java.util.ArrayList args)
Evaluate the function.
|
java.lang.Object |
FormatNumberFun.eval(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern pattern,
java.util.ArrayList args)
Evaluate the function.
|
Modifier and Type | Method and Description |
---|---|
AbstractPattern |
XslNode.parseMatch(java.lang.String pattern) |
protected AbstractPattern |
XslNode.parseSelect(java.lang.String pattern) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
XslNode.allowJavaSelect(AbstractPattern select)
Returns true if we can compile in the java select.
|
protected java.lang.String |
XslNode.printSelectBegin(JavaWriter out,
AbstractPattern select,
boolean isForEach,
java.lang.String loopVar)
Prints iterator code to start a select.
|