1 16 package org.apache.commons.jxpath.ri; 17 18 47 public interface Compiler { 48 49 public static final int NODE_TYPE_NODE = 1; 50 public static final int NODE_TYPE_TEXT = 2; 51 public static final int NODE_TYPE_COMMENT = 3; 52 public static final int NODE_TYPE_PI = 4; 53 54 public static final int AXIS_SELF = 1; 55 public static final int AXIS_CHILD = 2; 56 public static final int AXIS_PARENT = 3; 57 public static final int AXIS_ANCESTOR = 4; 58 public static final int AXIS_ATTRIBUTE = 5; 59 public static final int AXIS_NAMESPACE = 6; 60 public static final int AXIS_PRECEDING = 7; 61 public static final int AXIS_FOLLOWING = 8; 62 public static final int AXIS_DESCENDANT = 9; 63 public static final int AXIS_ANCESTOR_OR_SELF = 10; 64 public static final int AXIS_FOLLOWING_SIBLING = 11; 65 public static final int AXIS_PRECEDING_SIBLING = 12; 66 public static final int AXIS_DESCENDANT_OR_SELF = 13; 67 68 public static final int FUNCTION_LAST = 1; 69 public static final int FUNCTION_POSITION = 2; 70 public static final int FUNCTION_COUNT = 3; 71 public static final int FUNCTION_ID = 4; 72 public static final int FUNCTION_LOCAL_NAME = 5; 73 public static final int FUNCTION_NAMESPACE_URI = 6; 74 public static final int FUNCTION_NAME = 7; 75 public static final int FUNCTION_STRING = 8; 76 public static final int FUNCTION_CONCAT = 9; 77 public static final int FUNCTION_STARTS_WITH = 10; 78 public static final int FUNCTION_CONTAINS = 11; 79 public static final int FUNCTION_SUBSTRING_BEFORE = 12; 80 public static final int FUNCTION_SUBSTRING_AFTER = 13; 81 public static final int FUNCTION_SUBSTRING = 14; 82 public static final int FUNCTION_STRING_LENGTH = 15; 83 public static final int FUNCTION_NORMALIZE_SPACE = 16; 84 public static final int FUNCTION_TRANSLATE = 17; 85 public static final int FUNCTION_BOOLEAN = 18; 86 public static final int FUNCTION_NOT = 19; 87 public static final int FUNCTION_TRUE = 20; 88 public static final int FUNCTION_FALSE = 21; 89 public static final int FUNCTION_LANG = 22; 90 public static final int FUNCTION_NUMBER = 23; 91 public static final int FUNCTION_SUM = 24; 92 public static final int FUNCTION_FLOOR = 25; 93 public static final int FUNCTION_CEILING = 26; 94 public static final int FUNCTION_ROUND = 27; 95 public static final int FUNCTION_NULL = 28; 96 public static final int FUNCTION_KEY = 29; 97 public static final int FUNCTION_FORMAT_NUMBER = 30; 98 99 102 Object number(String value); 103 104 107 Object literal(String value); 108 109 112 Object qname(String prefix, String name); 113 114 119 Object sum(Object [] arguments); 120 121 127 Object minus(Object left, Object right); 128 129 136 Object multiply(Object left, Object right); 137 138 145 Object divide(Object left, Object right); 146 147 154 Object mod(Object left, Object right); 155 156 163 Object lessThan(Object left, Object right); 164 165 172 Object lessThanOrEqual(Object left, Object right); 173 174 181 Object greaterThan(Object left, Object right); 182 183 190 Object greaterThanOrEqual(Object left, Object right); 191 192 199 Object equal(Object left, Object right); 200 201 208 Object notEqual(Object left, Object right); 209 210 215 Object minus(Object argument); 216 217 222 Object variableReference(Object qName); 223 224 231 Object function(int code, Object [] args); 232 233 240 Object function(Object name, Object [] args); 241 242 248 Object and(Object arguments[]); 249 250 256 Object or(Object arguments[]); 257 258 263 Object union(Object [] arguments); 264 265 270 Object nodeNameTest(Object qname); 271 272 277 Object nodeTypeTest(int nodeType); 278 279 285 Object processingInstructionTest(String instruction); 286 287 294 Object step(int axis, Object nodeTest, Object [] predicates); 295 296 302 Object locationPath(boolean absolute, Object [] steps); 303 304 311 Object expressionPath( 312 Object expression, 313 Object [] predicates, 314 Object [] steps); 315 } | Popular Tags |