Interface ExpressionNode

All Known Implementing Classes:
ArithmeticNode, AttributeNode, ComparisonNode, DocumentNode, DocumentTypeNode, EmbracedNode, IdNode, LiteralNode, LogicNode, NegationNode, NowNode, VariableNode

public interface ExpressionNode
The interface of all expression nodes. It declares the methods requires by all expression nodes to maintain a working document selector language.
Author:
Simon Thoresen Hult
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(Visitor visitor)
    Perform visitation of this node.
    Evaluate the content of this node based on document object, and return that value.
    Returns the set of bucket ids covered by this node.
  • Method Details

    • evaluate

      Object evaluate(Context doc)
      Evaluate the content of this node based on document object, and return that value.
      Parameters:
      doc - the document to evaluate over
      Returns:
      the value of this
    • getBucketSet

      BucketSet getBucketSet(BucketIdFactory factory)
      Returns the set of bucket ids covered by this node.
      Parameters:
      factory - the factory used by the current application
    • accept

      void accept(Visitor visitor)
      Perform visitation of this node.
      Parameters:
      visitor - the visitor that wishes to visit the node