MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

ch.ethz.mxquery.query.parser
Class RewriteExpression

java.lang.Object
  extended by ch.ethz.mxquery.model.Iterator
      extended by ch.ethz.mxquery.query.parser.RewriteExpression
All Implemented Interfaces:
XDMIterator, Traversable

public class RewriteExpression
extends Iterator

General encapsulation class for expression that will not turn into an explicit expression, but rewritten/integrated to other expressions


Field Summary
static int CDATA
           
static int CHAR_REF
           
static int ENCLOSED_EXPRESSION
           
static int FUNCTION
           
 
Fields inherited from interface ch.ethz.mxquery.model.XDMIterator
EXPR_CATEGORY_SEQUENTIAL, EXPR_CATEGORY_SIMPLE, EXPR_CATEGORY_UPDATING, EXPR_CATEGORY_VACUOUS, EXPR_PARAM_CHEAPEVAL, EXPR_PARAM_VARIABLE, EXPR_PARAM_WINDOW, EXPR_PARAM_XDMGEN
 
Constructor Summary
RewriteExpression(int expressionType, Context ctx, Iterator[] subIters, QueryLocation location)
           
 
Method Summary
 int getExpressionType()
           
 Token next()
          Produces the next XDM token This method typically implements the base functionality of an Iterator and computes the value of the next token.
 
Methods inherited from class ch.ethz.mxquery.model.Iterator
addPredicates, close, copy, copyInts, copyIterators, copyQNames, copyStrings, copyTypeInfos, getAllSubIters, getAllSubItersRecursive, getContext, getExpressionCategoryType, getLoc, getPendingUpdateList, getPredicates, getStaticType, getSubIters, hasPredicates, isConstModePreserve, isExprParameter, isOpen, isResettable, removePredicates, reset, setConstModePreserve, setContext, setLoc, setOrderByExpr, setParam, setResettable, setReturnExpr, setSubIters, setSubIters, setSubIters, setWhereExpr, traverse, traverseIteratorTree
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENCLOSED_EXPRESSION

public static final int ENCLOSED_EXPRESSION
See Also:
Constant Field Values

CHAR_REF

public static final int CHAR_REF
See Also:
Constant Field Values

CDATA

public static final int CDATA
See Also:
Constant Field Values

FUNCTION

public static final int FUNCTION
See Also:
Constant Field Values
Constructor Detail

RewriteExpression

public RewriteExpression(int expressionType,
                         Context ctx,
                         Iterator[] subIters,
                         QueryLocation location)
Method Detail

next

public Token next()
           throws MXQueryException
Description copied from interface: XDMIterator
Produces the next XDM token This method typically implements the base functionality of an Iterator and computes the value of the next token.

Returns:
The XDM token representing the next fragment of the XDM instance
Throws:
MXQueryException

getExpressionType

public int getExpressionType()

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich