Class ComplexNodePattern.StringAnnotationRegexPattern

    • Constructor Detail

      • StringAnnotationRegexPattern

        public StringAnnotationRegexPattern​(Pattern pattern)
      • StringAnnotationRegexPattern

        public StringAnnotationRegexPattern​(String regex,
                                            int flags)
    • Method Detail

      • getPattern

        public Pattern getPattern()
      • match

        public boolean match​(String str)
        Description copied from class: NodePattern
        Returns true if the input node matches this pattern
        Specified by:
        match in class NodePattern<String>
        Parameters:
        str - - node to match
        Returns:
        true if the node matches the pattern, false otherwise
      • matchWithResult

        public Object matchWithResult​(String str)
        Description copied from class: NodePattern
        Returns result associated with the match
        Overrides:
        matchWithResult in class NodePattern<String>
        Parameters:
        str - node to match
        Returns:
        null if not matched, TRUE if there is a match but no other result associated with the match. Any other value is treated as the result value of the match.