gnu.xquery.util

Class RelativeStep

public class RelativeStep extends MethodProc implements CanInline, Inlineable

Implements XPath path expression. The XPath expression E1/E2 is compiled into: (relative-step E1 (lambda (dot position last) E2)).
Field Summary
static RelativeSteprelativeStep
Method Summary
voidapply(CallContext ctx)
voidcompile(ApplyExp exp, Compilation comp, Target target)
static TreeScannerextractStep(Expression exp)
TypegetReturnType(Expression[] args)
Expressioninline(ApplyExp exp, ExpWalker walker)
intnumArgs()

Field Detail

relativeStep

public static final RelativeStep relativeStep

Method Detail

apply

public void apply(CallContext ctx)

compile

public void compile(ApplyExp exp, Compilation comp, Target target)

extractStep

public static TreeScanner extractStep(Expression exp)

getReturnType

public Type getReturnType(Expression[] args)

inline

public Expression inline(ApplyExp exp, ExpWalker walker)

numArgs

public int numArgs()