/** * Diagnostic print of expression structure. The abstract expression tree * is written to the supplied output destination. */ public void export(ExpressionPresenter out) throws XPathException { out.startElement(Token.tokens[operator], this); out.emitAttribute("var", getVariableQName()); out.emitAttribute("slot", ""+slotNumber); getSequence().export(out); getAction().export(out); out.endElement(); }
/** * Diagnostic print of expression structure. The abstract expression tree * is written to the supplied output destination. */ public void export(ExpressionPresenter out) throws XPathException { out.startElement(Token.tokens[operator], this); out.emitAttribute("var", getVariableQName()); out.emitAttribute("slot", ""+slotNumber); getSequence().export(out); getAction().export(out); out.endElement(); }
public AbstractExpression exprFor (QuantifiedExpression expr) { Satisfies.Quantifier quantifier = expr.getOperator() == Token.SOME ? Quantifier.SOME : Quantifier.EVERY; return new Satisfies(quantifier, new Variable(qnameFor(expr.getVariableQName())), exprFor(expr.getSequence()), exprFor (expr.getAction())); }
SequenceType sequenceType = SequenceType.makeSequenceType(decl.getPrimaryType(), StaticProperty.ALLOWS_ZERO_OR_MORE); RoleLocator role = new RoleLocator(RoleLocator.VARIABLE, getVariableQName(), 0);
SequenceType sequenceType = SequenceType.makeSequenceType(decl.getPrimaryType(), StaticProperty.ALLOWS_ZERO_OR_MORE); RoleLocator role = new RoleLocator(RoleLocator.VARIABLE, getVariableQName(), 0, visitor.getConfiguration().getNamePool()); role.setSourceLocator(this);
SequenceType sequenceType = SequenceType.makeSequenceType(decl.getPrimaryType(), StaticProperty.ALLOWS_ZERO_OR_MORE); RoleLocator role = new RoleLocator(RoleLocator.VARIABLE, getVariableQName(), 0, visitor.getConfiguration().getNamePool()); role.setSourceLocator(this);
undeclareRangeVariable(); return makeTracer(initialOffset, first, LocationKind.FOR_EXPRESSION, first.getVariableQName());
RoleDiagnostic role = new RoleDiagnostic(RoleDiagnostic.VARIABLE, getVariableQName().getDisplayName(), 0);
undeclareRangeVariable(); return makeTracer(initialOffset, first, LocationKind.FOR_EXPRESSION, first.getVariableQName());
RoleDiagnostic role = new RoleDiagnostic(RoleDiagnostic.VARIABLE, getVariableQName().getDisplayName(), 0);