Class Regexp

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

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

      • TYPE_

        public static final Name TYPE_
        Name of the hydra.shex.syntax.Regexp type.
      • LIST_OF_ALTS

        public static final Name LIST_OF_ALTS
        Name of the hydra.shex.syntax.Regexp.listOfAlts field.
      • LIST_OF_REGEX

        public static final Name LIST_OF_REGEX
        Name of the hydra.shex.syntax.Regexp.listOfRegex field.
      • listOfRegex

        public final java.util.List<java.lang.String> listOfRegex
    • Constructor Detail

      • Regexp

        public Regexp​(java.util.List<Regexp_ListOfAlts_Elmt> listOfAlts,
                      java.util.List<java.lang.String> listOfRegex)
        Constructs an immutable Regexp.
    • 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​(Regexp other)
        Specified by:
        compareTo in interface java.lang.Comparable<Regexp>
      • withListOfRegex

        public Regexp withListOfRegex​(java.util.List<java.lang.String> listOfRegex)
        Returns a copy of this Regexp with listOfRegex replaced.