org.basex.query.expr
Class CComm
java.lang.Object
org.basex.query.ExprInfo
org.basex.query.expr.Expr
org.basex.query.expr.Arr
org.basex.query.expr.CFrag
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 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.Expr |
addText, checkCtx, checkDbl, checkItr, e, ebv, i, indexAccessible, iter, sameAs, size, test, v |
DASHES
public static final byte[] DASHES
- Two Dashes.
CComm
public CComm(Expr c)
- Constructor.
- Parameters:
c
- comment
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