Package org.basex.query.expr.path
Class SingleIterPath
- java.lang.Object
-
- org.basex.query.expr.ExprInfo
-
- org.basex.query.expr.Expr
-
- org.basex.query.expr.ParseExpr
-
- org.basex.query.expr.path.Path
-
- org.basex.query.expr.path.AxisPath
-
- org.basex.query.expr.path.SingleIterPath
-
public final class SingleIterPath extends AxisPath
Simple iterative path expression with no root expression and a single step without positional access.- Author:
- BaseX Team 2005-24, BSD License, Christian Gruen
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SingleIterPath
copy(CompileContext cc, IntObjMap<Var> vm)
Copies an expression.protected Iter
iterator(QueryContext qc)
Returns a node iterator.protected Value
nodes(QueryContext qc)
Returns a node sequence.-
Methods inherited from class org.basex.query.expr.path.AxisPath
addPredicates, ddo, iter, mergeEbv, step, value
-
Methods inherited from class org.basex.query.expr.path.Path
accept, checkUp, compile, count, equals, exprSize, get, get, has, inline, inlineable, optimize, pathStats, removePredicate, simple, simplifyFor, toString, toXml
-
Methods inherited from class org.basex.query.expr.ParseExpr
adoptType, atomValue, checkAllUp, checkNoneUp, checkNoUp, checkType, checkType, checkUp, copyType, ctxValue, data, info, item, refineType, sc, seqType, size, test, toArray, toArray, toAtomItem, toBin, toBin, toBinOrNull, toBoolean, toBoolean, toBooleanOrFalse, toBytes, toBytes, toDouble, toDouble, toElem, toElem, toEnum, toFloat, toFunction, toLong, toLong, toLong, toMap, toMap, toNode, toNode, toNodeOrNull, toNumber, toNumber, toNumberOrNull, toQNm, toQNmOrNull, toRecord, toString, toString, toStringOrNull, toToken, toToken, toTokenOrNull, toZeroToken
-
Methods inherited from class org.basex.query.expr.Expr
arg, args, atomItem, atomIter, funcType, hasFreeVars, indexAccessible, info, isSimple, markTailCalls, optimizePos, simplify, typeCheck, uses, vacuous, visitAll
-
Methods inherited from class org.basex.query.expr.ExprInfo
description, toErrorString, toString
-
-
-
-
Method Detail
-
iterator
protected Iter iterator(QueryContext qc) throws QueryException
Description copied from class:AxisPath
Returns a node iterator.- Specified by:
iterator
in classAxisPath
- Parameters:
qc
- query context- Returns:
- iterator
- Throws:
QueryException
- query exception
-
nodes
protected Value nodes(QueryContext qc) throws QueryException
Description copied from class:AxisPath
Returns a node sequence.- Specified by:
nodes
in classAxisPath
- Parameters:
qc
- query context- Returns:
- iterator
- Throws:
QueryException
- query exception
-
copy
public SingleIterPath copy(CompileContext cc, IntObjMap<Var> vm)
Description copied from class:Expr
Copies an expression. Used for inlining functions, or for copying static queries. It is utilized byVarRef.inline(org.basex.query.InlineContext)
,FuncItem.inline(org.basex.query.expr.Expr[], org.basex.query.CompileContext)
,Closure.inline(org.basex.query.InlineContext)
andStaticFunc.inline(org.basex.query.expr.Expr[], org.basex.query.CompileContext)
.- Specified by:
copy
in classExpr
- Parameters:
cc
- compilation contextvm
- mapping from old variable IDs to new variable copies. Required byClosure.copy(org.basex.query.CompileContext, org.basex.util.hash.IntObjMap<org.basex.query.var.Var>)
andVarRef.copy(org.basex.query.CompileContext, org.basex.util.hash.IntObjMap<org.basex.query.var.Var>)
- Returns:
- copied expression
-
-