Class MarkerWordItem

All Implemented Interfaces:
BlockItem, HasIndexItem, IndexedItem, TaggableItem, Cloneable

public class MarkerWordItem extends WordItem
Special words known by the index used for marking things. The reserved word itself is not public, while a symbol representation is.
Author:
bratseth
  • Method Details

    • isStartAnchor

      public boolean isStartAnchor()
    • isEndAnchor

      public boolean isEndAnchor()
    • getEncodedWord

      protected String getEncodedWord()
      Returns the marker word for encoding
      Overrides:
      getEncodedWord in class WordItem
    • equals

      public boolean equals(Object o)
      Description copied from class: Item
      Returns whether this item is of the same class and contains the same state as the given item.
      Overrides:
      equals in class WordItem
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class WordItem
    • disclose

      public void disclose(Discloser discloser)
      Overrides:
      disclose in class WordItem
    • createStartOfHost

      public static MarkerWordItem createStartOfHost(String indexName)
      Creates a special word item which marks the start of a host name
    • createStartOfHost

      public static MarkerWordItem createStartOfHost()
      Creates a special word item which marks the start of a host name, matching the default index
    • createEndOfHost

      public static MarkerWordItem createEndOfHost(String indexName)
      Creates a special word item which marks the end of a host name
    • createEndOfHost

      public static MarkerWordItem createEndOfHost()
      Creates a special word item which marks the end of a host name matching the default index