All Known Implementing Classes:
TreeCompiler
Since objects returned by Compiler methods are passed as arguments to other Compiler methods, the descriptions of these methods use virtual types. There are four virtual object types: EXPRESSION, QNAME, STEP and NODE_TEST.
The following example illustrates this notion. This sequence compiles the xpath "foo[round(1 div 2)]/text()":
Object qname1 = compiler.qname(null, "foo") Object expr1 = compiler.number("1"); Object expr2 = compiler.number("2"); Object expr3 = compiler.div(expr1, expr2); Object expr4 = compiler. coreFunction(Compiler.FUNCTION_ROUND, new Object[]{expr3}); Object test1 = compiler.nodeNameTest(qname1); Object step1 = compiler. step(Compiler.AXIS_CHILD, test1, new Object[]{expr4}); Object test2 = compiler.nodeTypeTest(Compiler.NODE_TYPE_TEXT); Object step2 = compiler.nodeTypeTest(Compiler.AXIS_CHILD, test2, null); Object expr5 = compiler.locationPath(false, new Object[]{step1, step2});
Dmitri
- Plotnikov$
- Revision: 1.9 $ $Date: 2004/02/29 14:17:45 $Field Summary | ||
---|---|---|
public static final int | NODE_TYPE_NODE | |
public static final int | NODE_TYPE_TEXT | |
public static final int | NODE_TYPE_COMMENT | |
public static final int | NODE_TYPE_PI | |
public static final int | AXIS_SELF | |
public static final int | AXIS_CHILD | |
public static final int | AXIS_PARENT | |
public static final int | AXIS_ANCESTOR | |
public static final int | AXIS_ATTRIBUTE | |
public static final int | AXIS_NAMESPACE | |
public static final int | AXIS_PRECEDING | |
public static final int | AXIS_FOLLOWING | |
public static final int | AXIS_DESCENDANT | |
public static final int | AXIS_ANCESTOR_OR_SELF | |
public static final int | AXIS_FOLLOWING_SIBLING | |
public static final int | AXIS_PRECEDING_SIBLING | |
public static final int | AXIS_DESCENDANT_OR_SELF | |
public static final int | FUNCTION_LAST | |
public static final int | FUNCTION_POSITION | |
public static final int | FUNCTION_COUNT | |
public static final int | FUNCTION_ID | |
public static final int | FUNCTION_LOCAL_NAME | |
public static final int | FUNCTION_NAMESPACE_URI | |
public static final int | FUNCTION_NAME | |
public static final int | FUNCTION_STRING | |
public static final int | FUNCTION_CONCAT | |
public static final int | FUNCTION_STARTS_WITH | |
public static final int | FUNCTION_CONTAINS | |
public static final int | FUNCTION_SUBSTRING_BEFORE | |
public static final int | FUNCTION_SUBSTRING_AFTER | |
public static final int | FUNCTION_SUBSTRING | |
public static final int | FUNCTION_STRING_LENGTH | |
public static final int | FUNCTION_NORMALIZE_SPACE | |
public static final int | FUNCTION_TRANSLATE | |
public static final int | FUNCTION_BOOLEAN | |
public static final int | FUNCTION_NOT | |
public static final int | FUNCTION_TRUE | |
public static final int | FUNCTION_FALSE | |
public static final int | FUNCTION_LANG | |
public static final int | FUNCTION_NUMBER | |
public static final int | FUNCTION_SUM | |
public static final int | FUNCTION_FLOOR | |
public static final int | FUNCTION_CEILING | |
public static final int | FUNCTION_ROUND | |
public static final int | FUNCTION_NULL | |
public static final int | FUNCTION_KEY | |
public static final int | FUNCTION_FORMAT_NUMBER |
Method from org.apache.commons.jxpath.ri.Compiler Summary: |
---|
and, divide, equal, expressionPath, function, function, greaterThan, greaterThanOrEqual, lessThan, lessThanOrEqual, literal, locationPath, minus, minus, mod, multiply, nodeNameTest, nodeTypeTest, notEqual, number, or, processingInstructionTest, qname, step, sum, union, variableReference |
Method from org.apache.commons.jxpath.ri.Compiler Detail: |
---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|