1 package net.sf.saxon.instruct; 2 import net.sf.saxon.expr.ExpressionTool; 3 import net.sf.saxon.expr.XPathContext; 4 import net.sf.saxon.om.ValueRepresentation; 5 import net.sf.saxon.trans.XPathException; 6 7 10 11 public class LocalVariable extends GeneralVariable { 12 13 16 17 public TailCall processLeavingTail(XPathContext context) throws XPathException { 18 context.setLocalVariable(getSlotNumber(), 19 ExpressionTool.lazyEvaluate(getSelectExpression(), context, 10)); 20 return null; 21 } 22 23 26 27 public ValueRepresentation evaluateVariable(XPathContext c) throws XPathException { 28 return c.evaluateLocalVariable(getSlotNumber()); 29 } 30 } 31 32 | Popular Tags |