Package | Description |
---|---|
com.caucho.xpath |
Finding and selecting XML nodes using XSL patterns.
|
com.caucho.xpath.expr | |
com.caucho.xpath.functions | |
com.caucho.xpath.pattern | |
com.caucho.xsl |
The XSLT transformation package.
|
com.caucho.xsl.fun |
Modifier and Type | Class and Description |
---|---|
class |
Env
Global and local variable environment.
|
Modifier and Type | Method and Description |
---|---|
ExprEnvironment |
Env.getExprEnv() |
ExprEnvironment |
Env.setExprEnv(ExprEnvironment exprEnv)
Sets the selection context
|
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.
|
abstract boolean |
Expr.evalBoolean(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the boolean value of the node.
|
NodeIterator |
Expr.evalNodeSet(org.w3c.dom.Node node,
ExprEnvironment env)
Returns an iterator of matching nodes
|
abstract double |
Expr.evalNumber(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as a number.
|
abstract java.lang.Object |
Expr.evalObject(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the object value of the node.
|
void |
Expr.evalString(CharBuffer cb,
org.w3c.dom.Node node,
ExprEnvironment env)
Fills a char buffer with the evaluated string results.
|
abstract java.lang.String |
Expr.evalString(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the string value of the node.
|
Var |
Expr.evalVar(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates to a variable.
|
org.w3c.dom.Node |
Pattern.find(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the first node matching the pattern.
|
boolean |
Pattern.isMatch(org.w3c.dom.Node node,
ExprEnvironment env)
Test if the node matches the pattern.
|
NodeIterator |
Pattern.select(org.w3c.dom.Node node,
ExprEnvironment env)
Selects all nodes matching the pattern.
|
ExprEnvironment |
Env.setExprEnv(ExprEnvironment exprEnv)
Sets the selection context
|
Modifier and Type | Method and Description |
---|---|
boolean |
NodeSetExpr.evalBoolean(org.w3c.dom.Node node,
ExprEnvironment env)
Returns true if there are any patterns matching the pattern.
|
boolean |
NewJavaExpr.evalBoolean(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluate the expression as a boolean, i.e.
|
boolean |
StaticJavaExpr.evalBoolean(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluate the expression as a boolean, i.e.
|
boolean |
ObjectJavaExpr.evalBoolean(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluate the expression as a boolean, i.e.
|
boolean |
BooleanExpr.evalBoolean(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as a boolean.
|
boolean |
ObjectExpr.evalBoolean(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as a boolean.
|
boolean |
AbstractStringExpr.evalBoolean(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluate the expression as a boolean, i.e.
|
boolean |
IdExpr.evalBoolean(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as a boolean
|
boolean |
VarExpr.evalBoolean(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the value of the variable as a boolean.
|
boolean |
StringExpr.evalBoolean(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluate the expression as a boolean, i.e.
|
boolean |
NumericExpr.evalBoolean(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as a boolean.
|
boolean |
FunExpr.evalBoolean(org.w3c.dom.Node node,
ExprEnvironment env) |
boolean |
AbstractNumberExpr.evalBoolean(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as a boolean.
|
NodeIterator |
NodeSetExpr.evalNodeSet(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluate a node-set object, returning an iterator of the node set.
|
NodeIterator |
ObjectExpr.evalNodeSet(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as a node set.
|
NodeIterator |
VarExpr.evalNodeSet(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the value of the variable as a node set.
|
double |
NodeSetExpr.evalNumber(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the value of the expression as a number.
|
double |
NewJavaExpr.evalNumber(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluate the expression as a double, i.e.
|
double |
StaticJavaExpr.evalNumber(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluate the expression as a double, i.e.
|
double |
ObjectJavaExpr.evalNumber(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluate the expression as a double, i.e.
|
double |
BooleanExpr.evalNumber(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as a number.
|
double |
ObjectExpr.evalNumber(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as number.
|
double |
AbstractStringExpr.evalNumber(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluate the expression as a double, i.e.
|
double |
IdExpr.evalNumber(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as a number
|
double |
VarExpr.evalNumber(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the value of the variable as a double.
|
double |
StringExpr.evalNumber(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluate the expression as a double, i.e.
|
double |
NumericExpr.evalNumber(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as a number.
|
double |
FunExpr.evalNumber(org.w3c.dom.Node node,
ExprEnvironment env) |
abstract double |
AbstractNumberExpr.evalNumber(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as a number.
|
java.lang.Object |
NodeSetExpr.evalObject(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluate a node-set object, returning an ArrayList of the node set.
|
java.lang.Object |
NewJavaExpr.evalObject(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluate the expression as an object, i.e.
|
java.lang.Object |
StaticJavaExpr.evalObject(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluate the expression as an object, i.e.
|
java.lang.Object |
ObjectJavaExpr.evalObject(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluate the expression as an object, i.e.
|
java.lang.Object |
BooleanExpr.evalObject(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as a object.
|
java.lang.Object |
ObjectExpr.evalObject(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as an object.
|
java.lang.Object |
AbstractStringExpr.evalObject(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluate the expression as an object, i.e.
|
java.lang.Object |
IdExpr.evalObject(org.w3c.dom.Node node,
ExprEnvironment env)
The string value of the id expression is just the list of nodes.
|
java.lang.Object |
VarExpr.evalObject(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the value of the variable as an object
|
java.lang.Object |
StringExpr.evalObject(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluate the expression as an object, i.e.
|
java.lang.Object |
NumericExpr.evalObject(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as an object.
|
java.lang.Object |
FunExpr.evalObject(org.w3c.dom.Node node,
ExprEnvironment env) |
java.lang.Object |
AbstractNumberExpr.evalObject(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as an object.
|
void |
VarExpr.evalString(CharBuffer cb,
org.w3c.dom.Node node,
ExprEnvironment env)
Returns the value of the variable as a string
|
java.lang.String |
NodeSetExpr.evalString(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the value of the node set expression as a string.
|
java.lang.String |
NewJavaExpr.evalString(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as an string.
|
java.lang.String |
StaticJavaExpr.evalString(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as an string.
|
java.lang.String |
Functions.BaseURI.evalString(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as an string.
|
java.lang.String |
ObjectJavaExpr.evalString(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as an string.
|
java.lang.String |
BooleanExpr.evalString(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as a string.
|
java.lang.String |
ObjectExpr.evalString(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as string.
|
abstract java.lang.String |
AbstractStringExpr.evalString(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as an string.
|
java.lang.String |
IdExpr.evalString(org.w3c.dom.Node node,
ExprEnvironment env)
The string value of the id expression is just the text value of the
first node.
|
java.lang.String |
VarExpr.evalString(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the value of the variable as a string
|
java.lang.String |
StringExpr.evalString(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as an string.
|
java.lang.String |
NumericExpr.evalString(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as a string.
|
java.lang.String |
FunExpr.evalString(org.w3c.dom.Node node,
ExprEnvironment env) |
java.lang.String |
AbstractNumberExpr.evalString(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as a string.
|
Var |
VarExpr.evalVar(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the value of the variable as an variable
|
Var |
NumericExpr.evalVar(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates to a variable.
|
Var |
AbstractNumberExpr.evalVar(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates to a variable.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
Trace.evalString(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as an string.
|
java.lang.String |
ResolveURI.evalString(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as an string.
|
java.lang.String |
BaseURI.evalString(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as an string.
|
Modifier and Type | Class and Description |
---|---|
class |
AttributeIterator
Uses the axis to select new nodes.
|
class |
AttributeListIterator
Uses the axis to select new nodes.
|
class |
AxisIterator
Uses the axis to select new nodes.
|
class |
FilterIterator
Uses the axis to select new nodes.
|
class |
MergeIterator
The merge iterator.
|
class |
NamespaceIterator
Selects namespace nodes.
|
class |
NodeArrayListIterator
Iterates through matching nodes.
|
class |
NodeIterator
Iterates through matching nodes.
|
class |
NodeListIterator
Iterates through matching nodes.
|
class |
SingleNodeIterator
Iterates through matching nodes.
|
class |
UnionIterator
Uses the axis to select new nodes.
|
class |
UniqueIterator
The unique iterator.
|
Modifier and Type | Field and Description |
---|---|
protected ExprEnvironment |
NodeIterator._env |
Modifier and Type | Method and Description |
---|---|
int |
FromAny.count(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern pattern) |
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.
|
org.w3c.dom.Node |
AbstractPattern.findAny(org.w3c.dom.Node node,
ExprEnvironment env)
Find any node matching the pattern.
|
org.w3c.dom.Node |
FromAttributes.firstNode(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the first node in the selection order.
|
org.w3c.dom.Node |
AbstractPattern.firstNode(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the first node in the selection order.
|
org.w3c.dom.Node |
FromRoot.firstNode(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the first node in the selection order.
|
org.w3c.dom.Node |
CurrentPattern.firstNode(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the first node in the selection order.
|
org.w3c.dom.Node |
FromAncestors.firstNode(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the first node in the selection order.
|
org.w3c.dom.Node |
FromSelf.firstNode(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the first node in the selection order.
|
org.w3c.dom.Node |
FromDescendants.firstNode(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the first node in the selection order.
|
org.w3c.dom.Node |
FromChildren.firstNode(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the first node in the selection order.
|
org.w3c.dom.Node |
FromContext.firstNode(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the first node in the selection order.
|
org.w3c.dom.Node |
FromParent.firstNode(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the first node in the selection order.
|
org.w3c.dom.Node |
FromNextSibling.firstNode(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the first node in the selection order.
|
org.w3c.dom.Node |
FromAny.firstNode(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the first node in the selection order.
|
org.w3c.dom.Node |
FromPrevious.firstNode(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the first node in the selection order.
|
org.w3c.dom.Node |
FromPreviousSibling.firstNode(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the first node in the selection order.
|
org.w3c.dom.Node |
FromNext.firstNode(org.w3c.dom.Node node,
ExprEnvironment env)
Returns the first node in the selection order.
|
boolean |
FilterPattern.match(org.w3c.dom.Node node,
ExprEnvironment env)
Matches if the filter expression matches.
|
boolean |
FromAttributes.match(org.w3c.dom.Node node,
ExprEnvironment env)
matches if the node is an attribute.
|
abstract boolean |
AbstractPattern.match(org.w3c.dom.Node node,
ExprEnvironment env)
The core match function test if the pattern matches the node.
|
boolean |
NSNamePattern.match(org.w3c.dom.Node node,
ExprEnvironment env)
Matches if the namespace matches and the local name matches.
|
boolean |
FromRoot.match(org.w3c.dom.Node node,
ExprEnvironment env)
Matches the owner document.
|
boolean |
FromExpr.match(org.w3c.dom.Node node,
ExprEnvironment env)
matches if the expression returns a node set and the test-node is
contained in that node set.
|
boolean |
NamespacePattern.match(org.w3c.dom.Node node,
ExprEnvironment env)
Matches if the namespace matches and the local name matches.
|
boolean |
CurrentPattern.match(org.w3c.dom.Node node,
ExprEnvironment env)
Matches the current node
|
boolean |
FromAncestors.match(org.w3c.dom.Node node,
ExprEnvironment env)
Matches if a descendant matches the parent pattern.
|
boolean |
NodePattern.match(org.w3c.dom.Node node,
ExprEnvironment env)
matches if the node type matches and the node name matches.
|
boolean |
FromSelf.match(org.w3c.dom.Node node,
ExprEnvironment env)
The self axis always matches.
|
boolean |
FromDescendants.match(org.w3c.dom.Node node,
ExprEnvironment env)
Matches the current node if it can find a parent node matching the
parent pattern.
|
boolean |
FromChildren.match(org.w3c.dom.Node node,
ExprEnvironment env)
Matches all nodes except attributes and tests the parent pattern
with the parent node.
|
boolean |
UnionPattern.match(org.w3c.dom.Node node,
ExprEnvironment env)
Match if either pattern matches.
|
boolean |
FromNamespace.match(org.w3c.dom.Node node,
ExprEnvironment env)
matches if the node is a namespace node.
|
boolean |
FromContext.match(org.w3c.dom.Node node,
ExprEnvironment env)
Matches the node context
|
boolean |
FromParent.match(org.w3c.dom.Node node,
ExprEnvironment env)
Matches if a child matches the parent pattern.
|
boolean |
FromNextSibling.match(org.w3c.dom.Node node,
ExprEnvironment env)
matches if we can find a previous sibling that matches the parent.
|
boolean |
NodeTypePattern.match(org.w3c.dom.Node node,
ExprEnvironment env)
Matches if the node type matches.
|
boolean |
FromAny.match(org.w3c.dom.Node node,
ExprEnvironment env)
All nodes match
|
boolean |
FromPrevious.match(org.w3c.dom.Node node,
ExprEnvironment env)
matches if we can find a following node matching the parent pattern.
|
boolean |
FromPreviousSibling.match(org.w3c.dom.Node node,
ExprEnvironment env)
matches if we can find a following sibling that matches the parent.
|
boolean |
FromNext.match(org.w3c.dom.Node node,
ExprEnvironment env)
Matches if there is a previous node matching the parent pattern.
|
int |
FromAny.position(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern pattern) |
NodeIterator |
AbstractPattern.select(org.w3c.dom.Node node,
ExprEnvironment env)
Returns an iterator selecting nodes in document order.
|
NodeIterator |
AbstractPattern.selectUnique(org.w3c.dom.Node node,
ExprEnvironment env)
Returns an iterator selecting unique nodes.
|
Constructor and Description |
---|
AttributeIterator(NodeIterator parentIter,
AbstractPattern axis,
org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern match)
Creates the new AxisIterator.
|
AttributeListIterator(ExprEnvironment env) |
AttributeListIterator(NodeIterator parentIter,
ExprEnvironment env,
AbstractPattern match)
Creates the new AxisIterator.
|
AxisIterator(ExprEnvironment env) |
AxisIterator(NodeIterator parentIter,
AbstractPattern axis,
org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern match)
Creates the new AxisIterator.
|
FilterIterator(NodeIterator parentIter,
Expr expr,
ExprEnvironment env,
org.w3c.dom.Node context)
Creates the new AxisIterator.
|
MergeIterator(ExprEnvironment env,
NodeIterator baseIterator)
Creates a merge iterator with a given base.
|
NamespaceIterator(ExprEnvironment env) |
NamespaceIterator(org.w3c.dom.Node node,
NodeIterator parentIter,
ExprEnvironment env,
AbstractPattern match)
Creates the new NamespaceIterator.
|
NodeArrayListIterator(ExprEnvironment env,
java.util.ArrayList<org.w3c.dom.Node> list) |
NodeIterator(ExprEnvironment env) |
NodeListIterator(ExprEnvironment env,
org.w3c.dom.NodeList list) |
SingleNodeIterator(ExprEnvironment env,
org.w3c.dom.Node node) |
UnionIterator(ExprEnvironment env,
NodeIterator leftIter,
NodeIterator rightIter)
Creates the new AxisIterator.
|
UniqueIterator(ExprEnvironment env)
Zero arg constructor.
|
UniqueIterator(ExprEnvironment env,
NodeIterator baseIterator)
Creates a merge iterator with a given base.
|
Modifier and Type | Method and Description |
---|---|
java.io.OutputStream |
XslWriter.openWrite(ExprEnvironment env,
java.lang.String href) |
Modifier and Type | Method and Description |
---|---|
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.
|