org.basex.query.value.node
Class FComm

java.lang.Object
  extended by org.basex.data.ExprInfo
      extended by org.basex.query.expr.Expr
          extended by org.basex.query.value.Value
              extended by org.basex.query.value.item.Item
                  extended by org.basex.query.value.node.ANode
                      extended by org.basex.query.value.node.FNode
                          extended by org.basex.query.value.node.FComm
All Implemented Interfaces:
java.lang.Iterable<Item>

public final class FComm
extends FNode

Comment node fragment.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Nested Class Summary
 
Nested classes/interfaces inherited from class org.basex.query.expr.Expr
Expr.Flag
 
Field Summary
 
Fields inherited from class org.basex.query.value.node.ANode
id
 
Fields inherited from class org.basex.query.value.item.Item
score, UNDEF
 
Fields inherited from class org.basex.query.value.Value
type
 
Constructor Summary
FComm(byte[] t)
          Constructor.
FComm(org.w3c.dom.Comment com)
          Constructor for creating a comment from a DOM node.
FComm(java.lang.String t)
          Constructor.
 
Method Summary
 FNode copy()
          Creates a copy of this node.
static byte[] parse(byte[] str, InputInfo ii)
          Checks the specified token for validity.
 java.lang.String toString()
           
 
Methods inherited from class org.basex.query.value.node.FNode
ancestor, ancestorOrSelf, attributes, children, deepCopy, descendant, descendantOrSelf, diff, following, followingSibling, hasChildren, is, parent, parent, parentIter, qname, string
 
Methods inherited from class org.basex.query.value.node.ANode
attribute, attribute, attribute, baseURI, bool, dbCopy, diff, diff, eq, finish, kind, kind, name, namespaces, nodeType, nsScope, optimize, preceding, precedingSibling, qname, self, string, toJava, type, uri
 
Methods inherited from class org.basex.query.value.item.Item
castErr, comparable, dbl, dec, description, ebv, equiv, flt, hash, homogeneous, input, isItem, item, itemAt, iter, iterable, itr, materialize, plan, score, score, size, test, type, typeId, writeTo, xdmInfo
 
Methods inherited from class org.basex.query.value.Value
accept, cache, checkUp, compile, copy, count, data, exprSize, has, inline, isValue, iter, iterator, removable, serialize, value
 
Methods inherited from class org.basex.query.expr.Expr
addText, compEbv, copy, hasFreeVars, indexAccessible, indexEquivalent, inlineAll, isEmpty, isFunction, isVacuous, markTailCalls, optimize, sameAs, uses, visitAll
 
Methods inherited from class org.basex.data.ExprInfo
addPlan, addPlan, info, planAttr, planElem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FComm

public FComm(java.lang.String t)
Constructor.

Parameters:
t - text value

FComm

public FComm(byte[] t)
Constructor.

Parameters:
t - text value

FComm

public FComm(org.w3c.dom.Comment com)
Constructor for creating a comment from a DOM node. Originally provided by Erdal Karaca.

Parameters:
com - DOM node
Method Detail

copy

public FNode copy()
Description copied from class: ANode
Creates a copy of this node.

Specified by:
copy in class ANode
Returns:
copy

toString

public java.lang.String toString()
Specified by:
toString in class ExprInfo

parse

public static byte[] parse(byte[] str,
                           InputInfo ii)
                    throws QueryException
Checks the specified token for validity.

Parameters:
str - token to be checked
ii - input info
Returns:
token
Throws:
QueryException - query exception