Class NodePattern.DisjNodePattern<T>

  • Type Parameters:
    T -
    All Implemented Interfaces:
    Serializable
    Enclosing class:
    NodePattern<T>

    public static class NodePattern.DisjNodePattern<T>
    extends NodePattern<T>
    Given a list of patterns p1,...,pn, matches if one of the patterns p1,...,pn matches
    See Also:
    Serialized Form
    • Constructor Detail

      • DisjNodePattern

        public DisjNodePattern​(List<NodePattern<T>> nodePatterns)
    • Method Detail

      • match

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