1 package net.sf.saxon.expr; 2 import net.sf.saxon.Controller; 3 import net.sf.saxon.ConversionContext; 4 import net.sf.saxon.event.SequenceReceiver; 5 import net.sf.saxon.instruct.*; 6 import net.sf.saxon.om.Item; 7 import net.sf.saxon.om.SequenceIterator; 8 import net.sf.saxon.om.ValueRepresentation; 9 import net.sf.saxon.sort.GroupIterator; 10 import net.sf.saxon.trace.InstructionInfoProvider; 11 import net.sf.saxon.trans.DynamicError; 12 import net.sf.saxon.trans.Mode; 13 import net.sf.saxon.trans.XPathException; 14 import net.sf.saxon.type.SchemaType; 15 16 import javax.xml.transform.Result ; 17 import java.util.Comparator ; 18 import java.util.Properties ; 19 20 23 24 public interface XPathContext extends ConversionContext { 25 26 27 31 32 public XPathContextMajor newContext(); 33 34 37 38 public XPathContextMajor newCleanContext(); 39 40 44 45 public XPathContextMinor newMinorContext(); 46 47 50 51 public XPathContextMajor.XSLTContext getXSLTContext(); 52 53 57 58 public ParameterSet getLocalParameters(); 59 60 65 66 public ParameterSet getTunnelParameters(); 67 68 74 75 public void setOrigin(InstructionInfoProvider expr); 76 77 83 84 public void setOriginatingConstructType(int loc); 85 86 89 90 public InstructionInfoProvider getOrigin(); 91 92 95 96 public int getOriginatingConstructType(); 97 98 101 102 public Controller getController(); 103 104 107 108 public void setCaller(XPathContext caller); 109 110 114 115 public XPathContext getCaller(); 116 117 120 121 public void setCurrentIterator(SequenceIterator iter); 122 123 129 130 public SequenceIterator getCurrentIterator(); 131 132 137 138 public int getContextPosition() throws DynamicError; 139 140 144 145 public Item getContextItem(); 146 151 152 public int getLast() throws XPathException; 153 157 158 public boolean isAtLast() throws XPathException; 159 160 163 164 public Comparator getCollation(String name) throws XPathException; 165 166 169 170 public Comparator getDefaultCollation(); 171 172 181 182 public boolean useLocalParameter(int fingerprint, 183 LocalParam binding, 184 boolean isTunnel) throws XPathException; 185 186 192 193 public StackFrame getStackFrame(); 194 195 198 199 public ValueRepresentation evaluateLocalVariable(int slotnumber); 200 201 204 205 public void setLocalVariable(int slotnumber, ValueRepresentation value); 206 207 220 221 public void changeOutputDestination(Properties props, 222 Result result, 223 boolean isFinal, 224 int validation, 225 SchemaType schemaType) throws XPathException; 226 227 232 233 public void setTemporaryReceiver(SequenceReceiver out); 234 235 238 239 public void setReceiver(SequenceReceiver receiver); 240 241 246 public SequenceReceiver getReceiver(); 247 248 252 253 public Mode getCurrentMode(); 254 255 260 261 public Template getCurrentTemplate(); 262 263 268 269 public GroupIterator getCurrentGroupIterator(); 270 271 276 277 public RegexIterator getCurrentRegexIterator(); 278 279 } 280 281 | Popular Tags |