Class Matcher.ErrorTypeMember

  • All Implemented Interfaces:
    ToNode
    Enclosing class:
    Matcher<T>

    public static final class Matcher.ErrorTypeMember
    extends Matcher<java.lang.String>
    Matches if an operation returns an error, and the error matches the expected error type.
    • Constructor Detail

      • ErrorTypeMember

        public ErrorTypeMember​(java.lang.String value)
    • Method Detail

      • getMemberName

        public java.lang.String getMemberName()
        Description copied from class: Matcher
        Gets the member name of the matcher.
        Specified by:
        getMemberName in class Matcher<java.lang.String>
        Returns:
        Returns the set member name.
      • getValue

        public java.lang.String getValue()
        Description copied from class: Matcher
        Gets the value of the set matcher variant.
        Specified by:
        getValue in class Matcher<java.lang.String>
        Returns:
        Returns the set variant's value.
      • toNode

        public Node toNode()
        Description copied from interface: ToNode
        Converts a value to a Node.
        Returns:
        Returns the creates Node.
      • accept

        public <U> U accept​(Matcher.Visitor<U> visitor)
        Description copied from class: Matcher
        Visits the Matcher union type.
        Specified by:
        accept in class Matcher<java.lang.String>
        Type Parameters:
        U - The type returned by the visitor.
        Parameters:
        visitor - Visitor to apply.
        Returns:
        Returns the return value of the visitor.