/** * Set the select expression * @param select the select expression of the for-each */ public void setSelect(Expression select) { selectOp.setChildExpression(select); }
/** * Create an operand object * @param parentExpression the expression of which this is an operand * @param childExpression the actual expression used as the operand * @param role information about the role this operand plays within the parent expression */ public Operand(Expression parentExpression, Expression childExpression, OperandRole role) { this.parentExpression = parentExpression; this.role = role; setChildExpression(childExpression); }
/** * Set the case order. This is supplied as an expression which must evaluate to "upper-first" * or "lower-first" or "#default". If the order is fixed, supply e.g. new StringValue("lower-first"). * Default is "#default". * * @param exp the expression that defines the case order */ public void setCaseOrder(Expression exp) { caseOrder.setChildExpression(exp); }
/** * Set the language. This is supplied as an expression which evaluates to the language name. * If the order is fixed, supply e.g. new StringValue("de"). * * @param exp the expression that determines the language */ public void setLanguage(Expression exp) { language.setChildExpression(exp); }
/** * Set the right-hand operand expression * @param child the right-hand operand expression */ public void setRhsExpression(Expression child) { rhs.setChildExpression(child); }
/** * Set a tuple expression that evaluates all the non-grouping variables, returning the values these variables take * in the grouping input stream * * @param expr the tuple expression */ public void setRetainedTupleExpression(TupleExpression expr) { retainedTupleOp.setChildExpression(expr); }
/** * Set the action expression (in XSLT, the body of the xsl:for-each instruction) * @param action the action expression */ public void setAction(Expression action) { actionOp.setChildExpression(action); }
/** * Set the select expression * @param select the select expression */ public void setSelect(Expression select) { selectOp.setChildExpression(select); }
/** * Set a tuple expression that evaluates all the grouping variables, returning the values these variables * take in the input stream * * @param expr the tuple expression */ public void setGroupingTupleExpression(TupleExpression expr) { groupingTupleOp.setChildExpression(expr); }
/** * Set the select expression: the value of this expression determines the string-value of the node * * @param select the expression that computes the string value of the node * */ public void setSelect(Expression select) { selectOp.setChildExpression(select); }
public void setForEachStream(Expression forEachStream) { if (forEachStream != null) { forEachStreamOp.setChildExpression(forEachStream); } }
/** * Set a tuple expression that evaluates all the grouping variables, returning the values these variables * take in the input stream * * @param expr the tuple expression */ public void setGroupingTupleExpression(TupleExpression expr) { groupingTupleOp.setChildExpression(expr); }
/** * Set the n'th child expression * @param n the position of the child expression to be modified (zero-based) * @param child the child expression at that position */ private void setChild(int n, Expression child) { operanda[n].setChildExpression(child); }
/** * Set the select expression: the value of this expression determines the string-value of the node * * @param select the expression that computes the string value of the node * */ public void setSelect(Expression select) { selectOp.setChildExpression(select); }
protected void setNamespaceExp(Expression namespace) { if (namespaceOp == null) { namespaceOp = new Operand(this, namespace, OperandRole.SINGLE_ATOMIC); } else { namespaceOp.setChildExpression(namespace); } }
public void setNonMatching(Expression nonMatching) { if (nonMatchingOp != null) { nonMatchingOp.setChildExpression(nonMatching); } else { nonMatchingOp = new Operand(this, nonMatching, ACTION); } }
public void setNamespace(Expression namespace) { if (namespace != null) { if (namespaceOp == null) { namespaceOp = new Operand(this, namespace, OperandRole.SINGLE_ATOMIC); } else { namespaceOp.setChildExpression(namespace); } } }
/** * Set the expression that constructs the content of the element * * @param content the content expression */ public void setContentExpression(Expression content) { if (contentOp == null) { contentOp = new Operand(this, content, SAME_FOCUS_CONTENT); } else { contentOp.setChildExpression(content); } }
public void setStreamable(boolean streamable) { this.streamable = streamable; if (streamable && instruction.getConfiguration().getBooleanProperty(Feature.STREAMING_FALLBACK)) { this.streamable = false; Expression select = rowSelectOp.getChildExpression(); rowSelectOp.setChildExpression( SystemFunction.makeCall("snapshot", select.getRetainedStaticContext(), select)); } }
public void setStreamable(boolean streamable) { this.streamable = streamable; if (streamable && instruction.getConfiguration().getBooleanProperty(Feature.STREAMING_FALLBACK)) { this.streamable = false; Expression select = rowSelectOp.getChildExpression(); rowSelectOp.setChildExpression( SystemFunction.makeCall("snapshot", select.getRetainedStaticContext(), select)); } }