|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jxpath.ri.compiler.TreeCompiler
Field Summary | |
private static QName |
QNAME_NAME
|
Constructor Summary | |
TreeCompiler()
|
Method Summary | |
java.lang.Object |
and(java.lang.Object[] arguments)
Produces an EXPRESSION object representing logical conjunction of all arguments |
java.lang.Object |
divide(java.lang.Object left,
java.lang.Object right)
Produces an EXPRESSION object representing left divided by right |
java.lang.Object |
equal(java.lang.Object left,
java.lang.Object right)
Produces an EXPRESSION object representing the comparison: left equals to right |
java.lang.Object |
expressionPath(java.lang.Object expression,
java.lang.Object[] predicates,
java.lang.Object[] steps)
Produces an EXPRESSION object representing a filter expression |
java.lang.Object |
function(int code,
java.lang.Object[] args)
Produces an EXPRESSION object representing the computation of a core function with the supplied arguments. |
java.lang.Object |
function(java.lang.Object name,
java.lang.Object[] args)
Produces an EXPRESSION object representing the computation of a library function with the supplied arguments. |
java.lang.Object |
greaterThan(java.lang.Object left,
java.lang.Object right)
Produces an EXPRESSION object representing the comparison: left greater than right |
java.lang.Object |
greaterThanOrEqual(java.lang.Object left,
java.lang.Object right)
Produces an EXPRESSION object representing the comparison: left greater than or equal to right |
private boolean |
isNameAttributeTest(Expression arg)
|
java.lang.Object |
lessThan(java.lang.Object left,
java.lang.Object right)
Produces an EXPRESSION object representing the comparison: left less than right |
java.lang.Object |
lessThanOrEqual(java.lang.Object left,
java.lang.Object right)
Produces an EXPRESSION object representing the comparison: left less than or equal to right |
java.lang.Object |
literal(java.lang.String value)
Produces an EXPRESSION object that represents a string constant. |
java.lang.Object |
locationPath(boolean absolute,
java.lang.Object[] steps)
Produces an EXPRESSION object representing a location path |
java.lang.Object |
minus(java.lang.Object argument)
Produces an EXPRESSION object representing unary negation of the argument |
java.lang.Object |
minus(java.lang.Object left,
java.lang.Object right)
Produces an EXPRESSION object representing left minus right |
java.lang.Object |
mod(java.lang.Object left,
java.lang.Object right)
Produces an EXPRESSION object representing left modulo right |
java.lang.Object |
multiply(java.lang.Object left,
java.lang.Object right)
Produces an EXPRESSION object representing left multiplied by right |
java.lang.Object |
nodeNameTest(java.lang.Object qname)
Produces a NODE_TEST object that represents a node name test. |
java.lang.Object |
nodeTypeTest(int nodeType)
Produces a NODE_TEST object that represents a node type test. |
java.lang.Object |
notEqual(java.lang.Object left,
java.lang.Object right)
Produces an EXPRESSION object representing the comparison: left is not equal to right |
java.lang.Object |
number(java.lang.String value)
Produces an EXPRESSION object that represents a numeric constant. |
java.lang.Object |
or(java.lang.Object[] arguments)
Produces an EXPRESSION object representing logical disjunction of all arguments |
java.lang.Object |
processingInstructionTest(java.lang.String instruction)
Produces a NODE_TEST object that represents a processing instruction test. |
java.lang.Object |
qname(java.lang.String prefix,
java.lang.String name)
Produces an QNAME that represents a name with an optional prefix. |
java.lang.Object |
step(int axis,
java.lang.Object nodeTest,
java.lang.Object[] predicates)
Produces a STEP object that represents a node test. |
java.lang.Object |
sum(java.lang.Object[] arguments)
Produces an EXPRESSION object representing the sum of all argumens |
private Expression[] |
toExpressionArray(java.lang.Object[] array)
|
private Step[] |
toStepArray(java.lang.Object[] array)
|
java.lang.Object |
union(java.lang.Object[] arguments)
Produces an EXPRESSION object representing union of all node sets |
java.lang.Object |
variableReference(java.lang.Object qName)
Produces an EXPRESSION object representing variable reference |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final QName QNAME_NAME
Constructor Detail |
public TreeCompiler()
Method Detail |
public java.lang.Object number(java.lang.String value)
Compiler
number
in interface Compiler
public java.lang.Object literal(java.lang.String value)
Compiler
literal
in interface Compiler
public java.lang.Object qname(java.lang.String prefix, java.lang.String name)
Compiler
qname
in interface Compiler
public java.lang.Object sum(java.lang.Object[] arguments)
Compiler
sum
in interface Compiler
arguments
- are EXPRESSION objectspublic java.lang.Object minus(java.lang.Object left, java.lang.Object right)
Compiler
minus
in interface Compiler
left
- is an EXPRESSION objectright
- is an EXPRESSION objectpublic java.lang.Object multiply(java.lang.Object left, java.lang.Object right)
Compiler
multiply
in interface Compiler
left
- is an EXPRESSION objectright
- is an EXPRESSION objectpublic java.lang.Object divide(java.lang.Object left, java.lang.Object right)
Compiler
divide
in interface Compiler
left
- is an EXPRESSION objectright
- is an EXPRESSION objectpublic java.lang.Object mod(java.lang.Object left, java.lang.Object right)
Compiler
mod
in interface Compiler
left
- is an EXPRESSION objectright
- is an EXPRESSION objectpublic java.lang.Object lessThan(java.lang.Object left, java.lang.Object right)
Compiler
lessThan
in interface Compiler
left
- is an EXPRESSION objectright
- is an EXPRESSION objectpublic java.lang.Object lessThanOrEqual(java.lang.Object left, java.lang.Object right)
Compiler
lessThanOrEqual
in interface Compiler
left
- is an EXPRESSION objectright
- is an EXPRESSION objectpublic java.lang.Object greaterThan(java.lang.Object left, java.lang.Object right)
Compiler
greaterThan
in interface Compiler
left
- is an EXPRESSION objectright
- is an EXPRESSION objectpublic java.lang.Object greaterThanOrEqual(java.lang.Object left, java.lang.Object right)
Compiler
greaterThanOrEqual
in interface Compiler
left
- is an EXPRESSION objectright
- is an EXPRESSION objectpublic java.lang.Object equal(java.lang.Object left, java.lang.Object right)
Compiler
equal
in interface Compiler
left
- is an EXPRESSION objectright
- is an EXPRESSION objectpublic java.lang.Object notEqual(java.lang.Object left, java.lang.Object right)
Compiler
notEqual
in interface Compiler
left
- is an EXPRESSION objectright
- is an EXPRESSION objectpublic java.lang.Object minus(java.lang.Object argument)
Compiler
minus
in interface Compiler
argument
- is an EXPRESSION objectpublic java.lang.Object variableReference(java.lang.Object qName)
Compiler
variableReference
in interface Compiler
public java.lang.Object function(int code, java.lang.Object[] args)
Compiler
function
in interface Compiler
code
- is one of FUNCTION_... constantsargs
- are EXPRESSION objectspublic java.lang.Object function(java.lang.Object name, java.lang.Object[] args)
Compiler
function
in interface Compiler
name
- is a QNAME object (function name)args
- are EXPRESSION objectspublic java.lang.Object and(java.lang.Object[] arguments)
Compiler
and
in interface Compiler
arguments
- are EXPRESSION objectspublic java.lang.Object or(java.lang.Object[] arguments)
Compiler
or
in interface Compiler
arguments
- are EXPRESSION objectspublic java.lang.Object union(java.lang.Object[] arguments)
Compiler
union
in interface Compiler
arguments
- are EXPRESSION objectspublic java.lang.Object locationPath(boolean absolute, java.lang.Object[] steps)
Compiler
locationPath
in interface Compiler
absolute
- indicates whether the path is absolutesteps
- are STEP objectspublic java.lang.Object expressionPath(java.lang.Object expression, java.lang.Object[] predicates, java.lang.Object[] steps)
Compiler
expressionPath
in interface Compiler
expression
- is an EXPRESSION objectpredicates
- are EXPRESSION objectssteps
- are STEP objectspublic java.lang.Object nodeNameTest(java.lang.Object qname)
Compiler
nodeNameTest
in interface Compiler
qname
- is a QNAME objectpublic java.lang.Object nodeTypeTest(int nodeType)
Compiler
nodeTypeTest
in interface Compiler
public java.lang.Object processingInstructionTest(java.lang.String instruction)
Compiler
processingInstructionTest
in interface Compiler
public java.lang.Object step(int axis, java.lang.Object nodeTest, java.lang.Object[] predicates)
Compiler
step
in interface Compiler
axis
- is one of the AXIS_... constantsnodeTest
- is a NODE_TEST objectpredicates
- are EXPRESSION objectsprivate Expression[] toExpressionArray(java.lang.Object[] array)
private Step[] toStepArray(java.lang.Object[] array)
private boolean isNameAttributeTest(Expression arg)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |