Class Match

  • All Implemented Interfaces:
    Visitable

    @API(status=EXPERIMENTAL,
         since="1.0")
    public final class Match
    extends java.lang.Object
    See Match.
    Since:
    1.0
    Author:
    Michael J. Simons
    • Method Detail

      • isOptional

        @API(status=INTERNAL)
        public boolean isOptional()
        Returns:
        True if this is an optional match.
      • accept

        public void accept​(Visitor visitor)
        Description copied from interface: Visitable
        Accept a Visitor visiting this Visitable and its nested Visitables if applicable.
        Specified by:
        accept in interface Visitable
        Parameters:
        visitor - the visitor to notify, must not be null.