Class PathPattern

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<PathPattern>

    public class PathPattern
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable<PathPattern>
    See Also:
    Serialized Form
    • Field Detail

      • TYPE_

        public static final Name TYPE_
        Name of the openGql.grammar.PathPattern type.
      • VARIABLE_DECLARATION

        public static final Name VARIABLE_DECLARATION
        Name of the openGql.grammar.PathPattern.variableDeclaration field.
      • PREFIX

        public static final Name PREFIX
        Name of the openGql.grammar.PathPattern.prefix field.
      • EXPRESSION

        public static final Name EXPRESSION
        Name of the openGql.grammar.PathPattern.expression field.
      • variableDeclaration

        public final Optional<java.lang.String> variableDeclaration
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • compareTo

        public int compareTo​(PathPattern other)
        Specified by:
        compareTo in interface java.lang.Comparable<PathPattern>
      • withVariableDeclaration

        public PathPattern withVariableDeclaration​(Optional<java.lang.String> variableDeclaration)
        Returns a copy of this PathPattern with variableDeclaration replaced.