Class Grammar.CharacterSet

    • Method Detail

      • set

        public void set​(String set)
        Sets the name or definition of the set to base these characters on. The set can either be the name of a well-known unicode set (such as "ID_Start"), or it can be a set of characters in unicode set notation.

        The set of well-known unicode set names are defined in the Unicode enum, in addition to those "EOI" or "EOF" are also accepted and means a "character" representing the end of the input stream.

        Unicode set notation needs to be enclosed within [ and ] and needs to be a sequence of either:

        • A single character, or
        • a range of character, denoted as two characters with a dash (-) in between.
        Parameters:
        set - The set to base these characters on.
      • equals

        public boolean equals​(Object o)
      • hashCode

        public int hashCode()
      • toString

        public String toString()
      • name

        public String name()
        Description copied from interface: CharacterSet
        Returns the name of this set if this is a named set, or null if this is not a named set.
        Specified by:
        name in interface CharacterSet
        Returns:
        the name of this set.
      • contains

        public boolean contains​(int codePoint)
        Specified by:
        contains in interface CharacterSet
      • charSet

        public static org.opencypher.grammar.CharacterSetNode charSet​(String name)
      • location

        public final void location​(String path,
                                   int lineNumber,
                                   int columnNumber)
        Description copied from interface: LocationAware
        Invoked with the location of this element.
        Specified by:
        location in interface LocationAware
        Parameters:
        path - the path to the XML file this element was read from.
        lineNumber - the line number in that XML file at which this element was read.
        columnNumber - the column number in the line at which this element was read.