Class Matcher.UnknownMember

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

    public static final class Matcher.UnknownMember
    extends Matcher<Node>
    Represents an union value.
    • Constructor Detail

      • UnknownMember

        public UnknownMember​(java.lang.String key,
                             Node 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<Node>
        Returns:
        Returns the set member name.
      • getValue

        public Node getValue()
        Description copied from class: Matcher
        Gets the value of the set matcher variant.
        Specified by:
        getValue in class Matcher<Node>
        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<Node>
        Type Parameters:
        U - The type returned by the visitor.
        Parameters:
        visitor - Visitor to apply.
        Returns:
        Returns the return value of the visitor.