org.basex.query.value.node
Class FTxt

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.FTxt
All Implemented Interfaces:
java.lang.Iterable<Item>

public final class FTxt
extends FNode

Text 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
FTxt(byte[] t)
          Constructor.
FTxt(java.lang.String t)
          Constructor.
FTxt(org.w3c.dom.Text txt)
          Constructor for creating a text from a DOM node.
 
Method Summary
 FNode copy()
          Creates a copy of this node.
 void plan(FElem plan)
          Creates an expression tree.
 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, 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

FTxt

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

Parameters:
t - text value

FTxt

public FTxt(byte[] t)
Constructor.

Parameters:
t - text value

FTxt

public FTxt(org.w3c.dom.Text txt)
Constructor for creating a text from a DOM node. Originally provided by Erdal Karaca.

Parameters:
txt - 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

plan

public void plan(FElem plan)
Description copied from class: ExprInfo
Creates an expression tree.

Overrides:
plan in class Item
Parameters:
plan - root element

toString

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