Class TokenMatch

    • Method Detail

      • getDocument

        public Document getDocument()
        Returns:
        the document associated with the input text
      • group

        public HString group()
        Returns:
        the span of text covering the match
      • group

        public List<HString> group​(String groupName)
        Gets the list of HString associated with a named group.
        Parameters:
        groupName - the group name
        Returns:
        the list of matches
      • groupNames

        public Set<String> groupNames()
        Returns:
        the named groups in the expression