1 package net.sf.saxon.expr; 2 3 7 8 public abstract class StaticProperty { 9 10 13 14 public static final int DEPENDS_ON_CURRENT_ITEM = 1; 15 16 19 20 public static final int DEPENDS_ON_CONTEXT_ITEM = 1<<1; 21 22 25 26 public static final int DEPENDS_ON_POSITION = 1<<2; 27 28 31 32 public static final int DEPENDS_ON_LAST = 1<<3; 33 34 37 38 public static final int DEPENDS_ON_CONTEXT_DOCUMENT = 1<<4; 39 40 43 44 public static final int DEPENDS_ON_CURRENT_GROUP = 1<<5; 45 46 49 50 public static final int DEPENDS_ON_REGEX_GROUP = 1<<6; 51 52 53 56 57 public static final int DEPENDS_ON_LOCAL_VARIABLES = 1<<7; 58 59 62 63 public static final int DEPENDS_ON_USER_FUNCTIONS = 1<<8; 64 65 68 69 public static final int DEPENDS_ON_XSLT_CONTEXT = 70 DEPENDS_ON_CURRENT_ITEM | 71 DEPENDS_ON_CURRENT_GROUP | 72 DEPENDS_ON_REGEX_GROUP; 73 74 77 78 public static final int DEPENDS_ON_FOCUS = 79 DEPENDS_ON_CONTEXT_ITEM | 80 DEPENDS_ON_POSITION | 81 DEPENDS_ON_LAST | 82 DEPENDS_ON_CONTEXT_DOCUMENT; 83 84 88 89 public static final int DEPENDS_ON_NON_DOCUMENT_FOCUS = 90 DEPENDS_ON_CONTEXT_ITEM | 91 DEPENDS_ON_POSITION | 92 DEPENDS_ON_LAST; 93 94 97 98 public static final int DEPENDENCY_MASK = 99 DEPENDS_ON_CONTEXT_DOCUMENT | 100 DEPENDS_ON_CONTEXT_ITEM | 101 DEPENDS_ON_CURRENT_GROUP | 102 DEPENDS_ON_REGEX_GROUP | 103 DEPENDS_ON_CURRENT_ITEM | 104 DEPENDS_ON_FOCUS | 105 DEPENDS_ON_LOCAL_VARIABLES | 106 DEPENDS_ON_USER_FUNCTIONS; 107 108 111 112 public static final int ALLOWS_ZERO = 1<<13; 113 114 117 118 public static final int ALLOWS_ONE = 1<<14; 119 120 123 124 public static final int ALLOWS_MANY = 1<<15; 125 126 129 130 public static final int CARDINALITY_MASK = 131 ALLOWS_ZERO | ALLOWS_ONE | ALLOWS_MANY; 132 133 136 137 public static final int ALLOWS_ONE_OR_MORE = 138 ALLOWS_ONE | ALLOWS_MANY; 139 140 143 144 public static final int ALLOWS_ZERO_OR_MORE = 145 ALLOWS_ZERO | ALLOWS_ONE | ALLOWS_MANY; 146 147 150 151 public static final int ALLOWS_ZERO_OR_ONE = 152 ALLOWS_ZERO | ALLOWS_ONE; 153 154 157 158 public static final int EXACTLY_ONE = ALLOWS_ONE; 159 160 163 164 public static final int EMPTY = ALLOWS_ZERO; 165 166 169 170 public static final int getCardinalityCode(int cardinality) { 171 return (cardinality & CARDINALITY_MASK) >> 13; 172 } 173 174 180 181 public static final int CONTEXT_DOCUMENT_NODESET = 1<<16; 182 183 188 189 public static final int ORDERED_NODESET = 1<<17; 190 191 196 197 public static final int REVERSE_DOCUMENT_ORDER = 1<<18; 198 199 206 207 public static final int PEER_NODESET = 1<<19; 208 209 214 215 public static final int SUBTREE_NODESET = 1<<20; 216 217 222 223 public static final int ATTRIBUTE_NS_NODESET = 1<<21; 224 225 233 234 public static final int NON_CREATIVE = 1<<22; 235 236 241 242 public static final int SINGLE_DOCUMENT_NODESET = 1<<23; 243 244 248 249 public static final int SPECIAL_PROPERTY_MASK = 250 CONTEXT_DOCUMENT_NODESET | 251 ORDERED_NODESET | 252 REVERSE_DOCUMENT_ORDER | 253 PEER_NODESET | 254 SUBTREE_NODESET | 255 ATTRIBUTE_NS_NODESET | 256 SINGLE_DOCUMENT_NODESET | 257 NON_CREATIVE; 258 259 private StaticProperty() {} 261 } 262 263 | Popular Tags |