Class FComm

All Implemented Interfaces:
Iterable<Item>

public final class FComm extends FNode
Comment node fragment.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • FComm

      public FComm(String value)
      Constructor.
      Parameters:
      value - text value
    • FComm

      public FComm(byte[] value)
      Constructor.
      Parameters:
      value - text value
    • FComm

      public FComm(Comment comment)
      Constructor for creating a comment from a DOM node. Originally provided by Erdal Karaca.
      Parameters:
      comment - DOM node
  • Method Details

    • materialize

      public FComm materialize(QueryContext qc, boolean copy)
      Description copied from class: Item
      Returns a materialized, context-independent version of this item.
      Specified by:
      materialize in class ANode
      Parameters:
      qc - query context (if null, process cannot be interrupted)
      copy - create full copy
      Returns:
      item copy, or null) if the item cannot be materialized
    • plan

      public void plan(QueryString qs)
      Description copied from class: ExprInfo
      Creates a query string.
      Specified by:
      plan in class ExprInfo
      Parameters:
      qs - query string builder
    • 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