org.basex.query.xpath.func
Class False

java.lang.Object
  extended by org.basex.query.xpath.expr.Expr
      extended by org.basex.query.xpath.func.Func
          extended by org.basex.query.xpath.func.False

public final class False
extends Func

Constructor for false() function.

Author:
Workgroup DBIS, University of Konstanz 2005-07, ISC License, Tim Petrowsky

Field Summary
 
Fields inherited from class org.basex.query.xpath.func.Func
desc
 
Constructor Summary
False(Expr[] arg)
          Function Constructor.
 
Method Summary
 boolean checkArguments()
          Checks validity/number of arguments.
 Bool compile(XPContext ctx)
          Tries to optimize the Expression.
 Bool eval(XPContext ctx)
          Evaluates the expression with the specified context set.
 
Methods inherited from class org.basex.query.xpath.func.Func
evalArgs, toString, usesPos, usesSize
 
Methods inherited from class org.basex.query.xpath.expr.Expr
indexEquivalent, indexSizes, returnedValue, sameAs
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

False

public False(Expr[] arg)
Function Constructor.

Parameters:
arg - expression array
Method Detail

checkArguments

public boolean checkArguments()
Description copied from class: Func
Checks validity/number of arguments.

Specified by:
checkArguments in class Func
Returns:
result of comparison

compile

public Bool compile(XPContext ctx)
Description copied from class: Expr
Tries to optimize the Expression.

Overrides:
compile in class Func
Parameters:
ctx - expression context
Returns:
optimized Expression

eval

public Bool eval(XPContext ctx)
Description copied from class: Expr
Evaluates the expression with the specified context set. Additionally provides a context

Specified by:
eval in class Expr
Parameters:
ctx - query context
Returns:
resulting XPathValue