Returns true if it can convert the supplied
object to the specified class.
Returns true if it can convert the supplied
object to the specified class.
Returns true if the global converter can convert the supplied
object to the specified type.
EvalContext that can walk the "child::", "following-sibling::" and
"preceding-sibling::" axes.
Returns a NodeIterator that iterates over all children or all children
that match the given NodeTest, starting with the specified one.
Extension functions provided by a Java class.
Combines attribute node iterators of all elements of a collection into one
aggregate attribute node iterator.
Combines child node iterators of all elements of a collection into one
aggregate child node iterator.
Combines node iterators of all elements of a collection into one
aggregate node iterator.
Transparent pointer to a collection (array or Collection).
Implements NodePointerFactory for stand-alone collections.
Compares two child NodePointers and returns a positive number,
zero or a positive number according to the order of the pointers.
Compiles the supplied XPath and returns an internal representation
of the path that can then be evaluated.
Represents a compiled XPath.
Overridden by each concrete implementation of JXPathContext
to perform compilation.
The Compiler APIs are completely agnostic to the actual types of objects
produced and consumed by the APIs.
Returns true if any argument is context dependent or if
the function is last(), position(), boolean(), local-name(),
name(), string(), lang(), number().
Implemented by subclasses and result is cached by isContextDependent()
Returns true if the root expression or any of the
predicates or the path steps are context dependent.
An extension function gets the current context, therefore it MAY be
context dependent.
Returns the value of the constant.
Computes a built-in function
Evaluates the expression.
Evaluates the expression.
Returns the value of the variable.
A compile tree element containing a constant number or string.
String constants for this package.
An extension function that creates an instance using a constructor.
A Container is an object implementing an indirection
mechanism transparent to JXPath.
Transparent pointer to a Container.
Implements NodePointerFactory for Container objects.
Converts the supplied object to the specified
type.
Converts the supplied object to the specified
type.
Converts the supplied object to the specified type.
An element of the compile tree representing one of built-in functions
like "position()" or "number()".
The common subclass for tree elements representing core operations like "+",
"- ", "*" etc.
Implementation of Expression for the operation "+".
Implementation of Expression for the operation "and".
Common superclass for the implementations of Expression for the operations
"=" and "!=".
Implementation of Expression for the operation "div".
Implementation of Expression for the operation "=".
Implementation of Expression for the operation ">".
Implementation of Expression for the operation ">=".
Implementation of Expression for the operation "<".
Implementation of Expression for the operation "<=".
Implementation of Expression for the operation "mod".
Implementation of Expression for the operation "*".
Implementation of Expression for the operation unary "-".
Implementation of Expression for the operation "!=".
Implementation of Expression for the operation "or".
Implementation of Expression for the operation "-".
Implementation of Expression for the operation "|".
Called to create a non-existing attribute
Called by a child pointer when it needs to create a parent object
for a non-existent collection element.
Called by a child pointer if that child needs to assign the value
supplied in the createPath(context, value) call to a non-existent
node.
Different axes are serviced by different contexts.
Create a NodePointer for the supplied child object.
Create a NodePointer for the supplied child object.
Create a NodePointer for the supplied object.
Create a NodePointer for the supplied object.
Creates a "null pointer" that
a) represents the requested path and
b) can be used for creation of missing nodes in the path.
The parameters may describe a collection element or an individual
object.
Creates intermediate elements of
the path by invoking an AbstractFactory, which should first be
installed on the context by calling "setFactory".
Called by a child pointer when it needs to create a parent object.
Called directly by JXPathContext.
Creates missing elements of the path by invoking an AbstractFactory,
which should first be installed on the context by calling "setFactory".
The same as setValue, except it creates intermediate elements of
the path by invoking an AbstractFactory, which should first be
installed on the context by calling "setFactory".
The same as setValue, except it creates intermediate elements of
the path by invoking an AbstractFactory, which should first be
installed on the context by calling "setFactory".
This is the last token that has been consumed successfully.
Return an accessible method (that is, one that can be invoked via
reflection) that implements the specified Method.
Returns a JXPathContext bound to the "application" scope.
Returns attributes of the pageContext declared in the "page" scope.
getAxis() - method in class org.apache.commons.jxpath.ri.compiler.
Step The value of the currently selected property.
Returns the DP object iself.
Returns the value of the property, not an element of the collection
represented by the property, if any.
Returns the value represented by the pointer before indexing.
Creates and registers a JXPathBeanInfo object for the supplied class.
Returns 1 if the type is a collection,
-1 if it is definitely not
and 0 if it may be a collection in some cases.
Returns a static instance of TreeCompiler.
Returns the JavaBean associated with this context.
Returns the list of all Pointers in this context for the current
position of the parent context.
Get the current context node list.
Get the current context node.
Returns a Pointer for the context bean.
Returns the current context node.
Returns the current context node.
Returns the current context node.
Returns the current context node.
Returns the current context node.
Returns the current context node.
Returns the current context node.
Returns the current context node.
Returns the current context node.
Returns the current context node.
Returns the current context node.
Returns the current context node.
Returns the current context node.
Determines the document order for this context.
Determines the document order for this context.
Determines the document order for this context.
Determines the document order for this context.
Determines the document order for this context.
Returns a shared instance of the dynamic property handler class
returned by getDynamicPropertyHandlerClass()
.
For a dynamic class, returns the corresponding DynamicPropertyHandler
class.
For dynamic objects, returns the class implementing
the DynamicPropertyHandler interface.
Implemened by subclasses to produce child/attribute node iterators.
Implemened by subclasses to produce child/attribute node iterators.
Return the actual exception (if any) that caused this exception to
be raised.
Return the actual exception (if any) that caused this exception to
be raised.
Returns the AbstractFactory installed on this context.
Returns a Function, if any, for the specified namespace,
name and parameter types.
Returns a Function, if any, for the specified namespace,
name and parameter types.
Returns a Function, if any, for the specified namespace,
name and parameter types.
Returns a Function, if any, for the specified namespace,
name and parameter types.
Returns the set of functions installed on the context.
Returns this context's identity manager.
If index == WHOLE_COLLECTION, the value of the property, otherwise
the value of the index'th element of the collection represented by the
property.
If index == WHOLE_COLLECTION, the value of the property, otherwise
the value of the index'th element of the collection represented by the
property.
If index == WHOLE_COLLECTION, the value of the property, otherwise
the value of the index'th element of the collection represented by the
property.
Returns the object the pointer points to; does not convert it
to a "canonical" type.
Returns a NodePointer that can be used to access the currently
selected property value.
If the pointer represents a collection, the index identifies
an element of that collection.
If there is a regular non-indexed read method for this property,
uses this method to obtain the collection and then returns its
length.
Get the JXPathContext in which this function is being evaluated.
Get the JXPathContext in which this function is being evaluated.
Returns this context's key manager.
If the property contains a collection, then the length of that
collection, otherwise - 1.
If the pointer represents a collection (or collection element),
returns the length of the collection.
If the property contains a collection, then the length of that
collection, otherwise - 1.
If the property contains a collection, then the length of that
collection, otherwise - 1.
Returns the length of the supplied collection.
Returns the locale set with setLocale.
If the Pointer has a parent, returns the parent's locale;
otherwise returns the locale specified when this Pointer
was created.
Return the message (if any) for this error .
Return the message (if any) for this error .
This method has the standard behavior when this object has been
created using the standard constructors.
You can also modify the body of this method to customize your error messages.
Returns the name of this node.
Returns the namespace URI associated with this Pointer.
Given a prefix, returns a registered namespace URI.
Given a prefix, returns a registered namespace URI.
Decodes a namespace prefix to the corresponding URI.
Returns the object the pointer points to; does not convert it
to a "canonical" type.
Returns the raw value of the object, property or collection element
this pointer represents.
Returns the list of all Pointers in this context for all positions
of the parent contexts.
Returns the list of all Pointers in this context for all positions
of the parent contexts.
Returns the object the pointer points to; does not convert it
to a "canonical" type.
The factory order number determines its position between other factories.
The factory order number determines its position between other factories.
Returns a JXPathContext bound to the "page" scope.
Returns the parent context of this context or null.
Traverses the xpath and returns a Pointer.
Traverses the xpath and returns a Pointer.
Locates a Node by its ID.
Finds a node by a key value.
Locates a node by key and value.
Locates a Node by a key value.
Returns a list of pointers for all nodes in the set.
Returns the current context position.
Computes the precedence of the operation.
Computes the precedence of the operation.
Computes the precedence of the operation.
Computes the precedence of the operation.
Computes the precedence of the operation.
Computes the precedence of the operation.
Predicates are the expressions in brackets that may follow
the root expression of the path.
Returns the value of the specified dynamic property.
Returns the value for the specified key.
Returns pageContext.findAttribute(property)
.
Number of the bean's properties.
Number of the DP object's properties.
Number of the DP object's properties.
Returns a PropertyDescriptor for the specified name or null if there
is no such property.
Returns a list of property descriptors for the beans described by this
bean info object.
Index of the currently selected property in the list of all
properties sorted alphabetically.
Index of the currently selected property in the list of all
properties sorted alphabetically.
Name of the currently selected property.
Returns the name of the currently selected property or "*"
if none has been selected.
Returns the name of the currently selected property or "*"
if none has been selected.
Names of all properties, sorted alphabetically
Names of all properties, sorted alphabetically
Names of all properties, sorted alphabetically
Returns a list of dynamic property names for the supplied object.
Returns string representations of all keys in the map.
Returns a JXPathContext that is relative to the current JXPathContext.
Returns a JXPathContext bound to the "request" scope.
Returns the root context of the path, which provides easy
access to variables and functions.
Returns the root context of the path, which provides easy
access to variables and functions.
Returns the node this pointer is based on.
Returns the node this pointer is based on.
Returns a JXPathContext bound to the "session" scope.
This method is called on the last context on the path when only
one value is needed.
Returns the first encountered Pointer that matches the current
context's criteria.
Returns the first encountered Pointer that matches the current
context's criteria.
Returns the first encountered Pointer that matches the current
context's criteria.
Given a root context, walks a path therefrom and finds the
pointer to the first element matching the path.
getSteps() - method in class org.apache.commons.jxpath.ri.compiler.
Path Returns the XPath symbol for this operation, e.g.
Returns the XPath symbol for this operation, e.g.
Returns the XPath symbol for this operation, e.g.
Returns the XPath symbol for this operation, e.g.
Returns the XPath symbol for this operation, e.g.
Returns the XPath symbol for this operation, e.g.
Returns the current type converter.
Returns a set of one namespace - the one specified in the constructor.
Returns a set containing all namespaces used by the aggregated
Functions.
Returns all namespaces in which this function collection defines
functions.
Returns the namespace specified in the constructor
Returns the contained value.
Reads XML, caches it internally and returns the Document.
Typically returns the NodeSet by calling getNodeSet(),
but will be overridden for contexts that more naturally produce
individual values, e.g.
Typically returns the NodeSet by calling getNodeSet(),
but will be overridden for contexts that more naturally produce
individual values, e.g.
By default, returns getNode()
, can be overridden to
return a "canonical" value, like for instance a DOM element should
return its string value.
Returns the value of the object, property or collection element
this pointer represents.
Typically returns the NodeSet by calling getNodeSet(),
but will be overridden for contexts that more naturally produce
individual values, e.g.
Reads XML, caches it internally and returns the Document.
If the parameter is a container, opens the container and
return the contents.
Returns the index'th element of the supplied collection.
Returns the value of the bean's property represented by
the supplied property descriptor.
Returns the index'th element of the bean's property represented by
the supplied property descriptor.
Evaluates the xpath and returns the resulting object.
Evaluates the xpath, converts the result to the specified class and
returns the resulting object.
Evaluates the xpath and returns the resulting object.
Traverses the xpath and returns the resulting object.
Evaluates the xpath, converts the result to the specified class and
returns the resulting object.
Calls getValue(xpath), converts the result to the required type
and returns the result of the conversion.
If this pointer manages a transparent container, like a variable,
this method returns the pointer to the contents.
Returns a list of values of all contained pointers.
Returns the value of the variable if it is defined,
otherwise, throws IllegalArgumentException
Returns the value of the specified variable.
Returns the value of the specified variable.
Returns the variable pool associated with the context.
Produces an EXPRESSION object representing the comparison:
left greater than right
Produces an EXPRESSION object representing the comparison:
left greater than right
Produces an EXPRESSION object representing the comparison:
left greater than or equal to right
Produces an EXPRESSION object representing the comparison:
left greater than or equal to right
A delegate of JXPathContext that implements the XPath "id()"
function.
image - field in class org.apache.commons.jxpath.ri.parser.
Token The string image of the token.
Type conversions, XPath style.
A single-set EvalContext that provides access to the current node of
the parent context and nothing else.
Interpret the steps of a simple expression path that
starts with the given root, which is the result of evaluation
of the root expression of the expression path, applies the
given predicates to it and then follows the given steps.
Interpret a simple path that starts with the given root and
follows the given steps.
Converts parameters to suitable types and invokes the constructor.
Computes the value of the function.
Computes the value of the function.
An actual pointer points to an existing part of an object graph, even
if it is null.
Returns true if the bean has the currently selected property
A dynamic property is always considered actual - all keys are apparently
existing with possibly the value of null.
Returns true if objects of this class are treated as atomic
objects which have no properties of their own.
Returns true if objects of this class are treated as atomic
objects which have no properties of their own.
Returns true if the pointer represents the "attribute::" axis.
Even if this context has the natural ordering and therefore does
not require collecting and sorting all nodes prior to returning them,
such operation may be required for any child context.
Even if this context has the natural ordering and therefore does
not require collecting and sorting all nodes prior to returning them,
such operation may be required for any child context.
Returns true
if the value of the pointer is an array or
a Collection.
Returns true if the object is an array or a Collection
This type of node is auxiliary.
This type of node is auxiliary.
This type of node is auxiliary.
This type of node is auxiliary.
If true, this node is axiliary and can only be used as an intermediate in
the chain of pointers.
Returns true if this expression should be re-evaluated
each time the current position in the context changes.
Returns true if the variable has been defined, even if the
value of the variable is null.
Returns true if the specified variable is declared.
Returns true if the specified variable is declared.
Returns true if the supplied prefix represents the
default namespace in the context of the current node.
Return true if the corresponding objects have dynamic properties.
Returns true if the objects of this class have dynamic properties
(e.g.
Returns true if the xml:lang attribute for the current node
or its parent has the specified prefix lang.
Returns true if the xml:lang attribute for the current node
or its parent has the specified prefix lang.
Returns true if the selected locale name starts
with the specified prefix lang, case-insensitive.
If true, this node does not have children
Returns true if this Pointer has no parent.
Recognized paths formatted as $x[3]/foo[2]
.
Recognized paths formatted as foo/bar[3]/baz[@name = 'biz']
.
A Step is "simple" if it takes one of these forms: ".", "/foo",
"@bar", "/foo[3]".
Returns true if the operation is not sensitive to the order of arguments,
e.g.
Returns true if the operation is not sensitive to the order of arguments,
e.g.
Returns true if the operation is not sensitive to the order of arguments,
e.g.
Returns true if the operation is not sensitive to the order of arguments,
e.g.
Returns true if the operation is not sensitive to the order of arguments,
e.g.
Returns true if the operation is not sensitive to the order of arguments,
e.g.
Returns an iterator for the supplied collection.
Traverses the xpath and returns a Iterator of all results found
for the path.
Traverses the xpath and returns an Iterator of all results found
for the path.
Traverses the xpath and returns a Iterator of all results found
for the path.
Traverses the xpath and returns an Iterator of Pointers.
Traverses the xpath and returns an Iterator of Pointers.
Traverses the xpath and returns an Iterator of Pointers.
Captures the foo[@name=expr]
expression.
EvalContext that walks the "namespace::" axis.
Returns a NodeIterator that iterates over all namespaces of the value
currently pointed at.
Represents a namespace node.
Returns a NodePointer for the specified namespace.
The reference implementation of JXPathContext.
Allocates an new child NodePointer by iterating through all installed
NodePointerFactories until it finds one that can create a pointer.
Creates a new JXPathContext with the specified object as the root node.
Creates a new JXPathContext with the specified bean as the root node and
the specified parent context.
Creates a new instance of a JXPathContext using the
currently configured parameters.
Obtain a new instance of a JXPathContextFactory
.
Allocates an entirely new NodePointer by iterating through all installed
NodePointerFactories until it finds one that can create a pointer.
Returns a new Token object, by default.
next - field in class org.apache.commons.jxpath.ri.parser.
Token A reference to the next regular (non-special) token from the input
stream.
Returns the next node pointer in the context
Returns true if there is another object in the current set.
Returns true if there is another object in the current set.
Returns true if there is another object in the current set.
Returns true if there is another object in the current set.
Returns true if there is another object in the current set.
Returns true if there is another object in the current set.
Returns true if there is another object in the current set.
Returns true if there is another object in the current set.
Returns true if there is another object in the current set.
Returns true if there is another object in the current set.
Returns true if there is another object in the current set.
Returns true if there is another object in the current set.
Returns true if there is another object in the current set.
Returns true if there is another sets of objects to interate over.
Returns true if there is another sets of objects to interate over.
Returns true if there is another sets of objects to interate over.
Returns true if there is another sets of objects to interate over.
Returns true if there is another sets of objects to interate over.
Definition for an iterator for all kinds of Nodes.
Produces a NODE_TEST object that represents a node name test.
Produces a NODE_TEST object that represents a node name test.
Common superclass for Pointers of all kinds.
Creates NodePointers for objects of a certain type.
NodeSet interface can be used as the type of an argument of an extension
function.
A simple context that is based on a NodeSet.
Produces a NODE_TEST object that represents a node type test.
Produces a NODE_TEST object that represents a node type test.
Produces an EXPRESSION object representing the comparison:
left is not equal to right
Produces an EXPRESSION object representing the comparison:
left is not equal to right
Used when there is a need to construct a Pointer for a collection element
that does not exist.
Converts the supplied object to Number
Produces an EXPRESSION object that represents a numeric constant.
Produces an EXPRESSION object that represents a numeric constant.
Finds all nodes that match the specified XPath.
Finds the first object that matches the specified XPath.
EvalContext that returns the current node from the parent context if the
test succeeds.
Implementation of the DynamicPropertyHandler interface that provides
access to attributes of a ServletContext.
Just a structure to hold a ServletRequest and ServletContext together.
Implementation of the DynamicPropertyHandler interface that provides
access to attributes and parameters of a ServletRequest.
Variable name for HttpSession.
Set to true if the pointer represents the "attribute::" axis.
Sets DecimalFormatSymbols for a given name.
Install an abstract factory that should be used by the
createPath()
and createPathAndSetValue()
methods.
Install a library of extension functions.
Install an identity manager that will be used by the context
to look up a node by its ID.
Install a key manager that will be used by the context
to look up a node by a key value.
If the context is in the lenient mode, then getValue() returns null
for inexistent paths.
Set the locale for this context.
Namespace prefixes can be defined implicitly by specifying a pointer to a
context where the namespaces are defined.
Register a namespace for the expression context.
Moves the current position to the specified index.
Moves the current position to the specified index.
Moves the current position to the specified index.
Moves the current position to the specified index.
Sets the new current position and returns true if there a node
at that position.
Moves the current position to the specified index.
Moves the current position to the specified index.
Moves the current position to the specified index.
Sets the new current position and returns true if there a node
at that position.
Moves the current position to the specified index.
Moves the current position to the specified index.
Moves the current position to the specified index.
Moves the current position to the specified index.
Moves the current position to the specified index.
Moves the current position to the specified index.
Moves the current position to the specified index.
Modifies the value of the specified dynamic property.
Sets the specified key value.
Selects a property by its offset in the alphabetically sorted list.
Index a property by its index in the list of all
properties sorted alphabetically.
Index a property by its index in the list of all
properties sorted alphabetically.
Select a property by name
Select a property by name.
Select a property by name.
Install an alternative type converter.
If index == WHOLE_COLLECTION, change the value of the property, otherwise
change the value of the index'th element of the collection
represented by the property.
Modifies the value of the object, property or collection element
this pointer represents.
Modifies the value contained by this container.
Throws an UnsupportedOperationException
Sets the value of this attribute.
Sets contents of the node to the specified value.
If index == WHOLE_COLLECTION, change the value of the property, otherwise
change the value of the index'th element of the collection
represented by the property.
If index == WHOLE_COLLECTION, change the value of the property, otherwise
change the value of the index'th element of the collection
represented by the property.
Sets the value of this attribute.
Throws UnsupportedOperationException.
Throws UnsupportedOperationException.
Throws UnsupportedOperationException.
Converts the value to the required type and changes the corresponding
object to that value.
Modifies the value of the object, property or collection element
this pointer represents.
Throws an exception if you try to change the root element, otherwise
forwards the call to the parent pointer.
Throws an UnsupportedOperationException
Modifies the index'th element of the supplied collection.
Modifies the index'th element of the bean's property represented by
the supplied property descriptor.
Modifies the value of the bean's property represented by
the supplied property descriptor.
Modifies the value of the property described by the supplied xpath.
Modifies the value of the property described by the supplied xpath.
Installs a custom implementation of the Variables interface.
An implementation of interface CharStream, where the stream is assumed to
contain only ASCII characters (without unicode processing).
An evaluation mechanism for simple XPaths, which
is much faster than the usual process.
This variable determines which constructor was used to create
this object and thereby affects the semantics of the
"getMessage" method (see below).
This field is used to access special tokens that occur prior to this
token, but after the immediately preceding regular (non-special) token.
Step - class org.apache.commons.jxpath.ri.compiler.
Step Produces a STEP object that represents a node test.
Produces a STEP object that represents a node test.
Converts the supplied object to String
Produces an EXPRESSION object representing the sum of all argumens
Produces an EXPRESSION object representing the sum of all argumens