1 package net.sf.saxon.expr; 2 import net.sf.saxon.om.Item; 3 import net.sf.saxon.om.NamePool; 4 import net.sf.saxon.om.SequenceIterator; 5 import net.sf.saxon.trans.XPathException; 6 import net.sf.saxon.type.ItemType; 7 import net.sf.saxon.type.SchemaType; 8 9 import java.io.PrintStream ; 10 import java.io.Serializable ; 11 import java.util.Iterator ; 12 13 17 18 public interface Expression extends Serializable { 19 20 public static final int EVALUATE_METHOD = 1; 21 public static final int ITERATE_METHOD = 2; 22 public static final int PROCESS_METHOD = 4; 23 24 29 30 public int getImplementationMethod(); 31 32 40 41 Expression simplify(StaticContext env) throws XPathException; 42 43 66 67 Expression typeCheck(StaticContext env, ItemType contextItemType) throws XPathException; 68 69 70 86 87 Expression optimize(Optimizer opt, StaticContext env, ItemType contextItemType) throws XPathException; 88 89 90 105 106 Expression promote(PromotionOffer offer) throws XPathException; 107 108 115 116 int getSpecialProperties(); 117 118 132 133 int getCardinality(); 134 135 147 148 ItemType getItemType(); 149 150 162 163 int getDependencies(); 164 165 171 172 Iterator iterateSubExpressions(); 173 174 182 183 Container getParentExpression(); 184 185 194 195 197 198 212 213 Item evaluateItem(XPathContext context) throws XPathException; 214 215 228 229 SequenceIterator iterate(XPathContext context) throws XPathException; 230 231 241 242 boolean effectiveBooleanValue(XPathContext context) throws XPathException; 243 244 260 261 public String evaluateAsString(XPathContext context) throws XPathException; 262 263 268 269 public void process(XPathContext context) throws XPathException; 270 271 279 280 public void display(int level, NamePool pool, PrintStream out); 281 282 291 292 public void checkPermittedContents(SchemaType parentType, StaticContext env, boolean whole) throws XPathException; 293 } 294 | Popular Tags |