Class Condition.Sequence

  • All Implemented Interfaces:
    Condition
    Enclosing interface:
    Condition

    public static final class Condition.Sequence
    extends Object
    implements Condition
    SEQUENCE [ e1, e2, .. ] - an ordered, unanchored regex over the method's instruction stream.
    • Constructor Detail

      • Sequence

        public Sequence​(List<Condition.Sequence.Element> elements)
        Creates an instruction-sequence pattern over a defensive copy of the elements.
        Parameters:
        elements - the pattern elements, in match order
    • Method Detail

      • accept

        public <R> R accept​(Condition.Visitor<R> v)
        Description copied from interface: Condition
        Dispatches to the visitor method for this node's variant.
        Specified by:
        accept in interface Condition
        Type Parameters:
        R - the visitor's result type
        Parameters:
        v - the visitor to dispatch to
        Returns:
        whatever the visitor returns