Class Pattern


  • public class Pattern
    extends Object
    Represents a single symbolic expression (s-expression) pattern of a Query. Said pattern is a structured representation of a syntax tree fragment, which can be used to query subtrees. Each instance can be uniquely identified by the query it belongs to, along with its ordinal position within the same query.
    Since:
    1.7.0
    Author:
    Ozren Dabić
    See Also:
    Capture, Query
    • Method Detail

      • disable

        public void disable()
        Disable this pattern, preventing it from further matching. This will eliminate any resource usage from the query associated with the pattern.

        This can not be undone.

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object