net.sf.saxon.expr.SimpleExpression Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of saxon9 Show documentation
Show all versions of saxon9 Show documentation
Provides a basic XSLT 2.0 and XQuery 1.0 processor (W3C Recommendations,
January 2007). Command line interfaces and implementations of several
Java APIs (DOM, XPath, s9api) are also included.
The newest version!
package net.sf.saxon.expr;
import net.sf.saxon.Controller;
import net.sf.saxon.trace.ExpressionPresenter;
import net.sf.saxon.value.Value;
import net.sf.saxon.event.SequenceOutputter;
import net.sf.saxon.event.PipelineConfiguration;
import net.sf.saxon.om.*;
import net.sf.saxon.trans.XPathException;
import net.sf.saxon.type.ItemType;
import net.sf.saxon.type.Type;
import net.sf.saxon.type.TypeHierarchy;
import java.util.Arrays;
import java.util.Iterator;
/**
* An abstract implementation of Expression designed to make it easy to implement new expressions,
* in particular, expressions to support extension instructions.
*/
public abstract class SimpleExpression extends Expression {
public static final Expression[] NO_ARGUMENTS = new Expression[0];
protected Expression[] arguments = NO_ARGUMENTS;
/**
* Constructor
*/
public SimpleExpression() {
}
/**
* Set the immediate sub-expressions of this expression.
* @param sub an array containing the sub-expressions of this expression
*/
public void setArguments(Expression[] sub) {
arguments = sub;
for (int i=0; i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy