org.basex.query.expr
Class CComm

java.lang.Object
  extended by org.basex.query.ExprInfo
      extended by org.basex.query.expr.Expr
          extended by org.basex.query.expr.Arr
              extended by org.basex.query.expr.CFrag
                  extended by org.basex.query.expr.CComm

public final class CComm
extends CFrag

Comment fragment.

Author:
Workgroup DBIS, University of Konstanz 2005-10, ISC License, Christian Gruen

Nested Class Summary
 
Nested classes/interfaces inherited from class org.basex.query.expr.Expr
Expr.Use
 
Field Summary
static byte[] DASHES
          Two Dashes.
 
Fields inherited from class org.basex.query.expr.Arr
expr
 
Constructor Summary
CComm(Expr c)
          Constructor.
 
Method Summary
 FComm atomic(QueryContext ctx)
          Evaluates the expression and returns the resulting item or a null reference.
static byte[] check(byte[] atom)
          Checks the specified token for validity.
 String info()
          Returns a string description of the expression.
 String toString()
           
 
Methods inherited from class org.basex.query.expr.CFrag
returned, uses
 
Methods inherited from class org.basex.query.expr.Arr
comp, duplicates, indexEquivalent, plan, removable, remove
 
Methods inherited from class org.basex.query.expr.Expr
addText, checkCtx, checkDbl, checkItr, e, ebv, i, indexAccessible, iter, sameAs, size, test, v
 
Methods inherited from class org.basex.query.ExprInfo
color, name
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DASHES

public static final byte[] DASHES
Two Dashes.

Constructor Detail

CComm

public CComm(Expr c)
Constructor.

Parameters:
c - comment
Method Detail

atomic

public FComm atomic(QueryContext ctx)
             throws QueryException
Description copied from class: Expr
Evaluates the expression and returns the resulting item or a null reference. If this method is not overwritten, Expr.iter(org.basex.query.QueryContext) must be implemented.

Specified by:
atomic in class CFrag
Parameters:
ctx - query context
Returns:
iterator
Throws:
QueryException - query exception

check

public static byte[] check(byte[] atom)
                    throws QueryException
Checks the specified token for validity.

Parameters:
atom - token to be checked
Returns:
token
Throws:
QueryException - query exception

info

public String info()
Description copied from class: ExprInfo
Returns a string description of the expression. Contrary to the ExprInfo.toString() method, arguments are not included in the output.

Overrides:
info in class ExprInfo
Returns:
result of check

toString

public String toString()
Specified by:
toString in class ExprInfo