public static final class Grammar.CharacterSet extends Grammar.Term
CharacterSet.DefinitionVisitor<EX extends Exception>, CharacterSet.ExclusionVisitor<EX extends Exception>, CharacterSet.UnicodeANY, EOI| Modifier and Type | Method and Description |
|---|---|
<EX extends Exception> |
accept(CharacterSet.DefinitionVisitor<EX> visitor) |
static org.opencypher.grammar.CharacterSetNode |
charSet(String name) |
boolean |
contains(int codePoint) |
boolean |
equals(Object o) |
Grammar.CharacterSet |
except(int... codePoints) |
boolean |
hasExclusions() |
int |
hashCode() |
boolean |
isControlCharacter() |
void |
location(String path,
int lineNumber,
int columnNumber)
Invoked with the location of this element.
|
String |
name()
Returns the name of this set if this is a named set, or
null if this is not a named set. |
int |
randomCodePoint(Random random) |
void |
set(String set)
Sets the name or definition of the set to base these characters on.
|
String |
toString() |
<P,T,EX extends Exception> |
transform(TermTransformation<P,T,EX> transformation,
P param) |
acceptclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontrolCharName, escapeCodePointpublic Grammar.CharacterSet except(int... codePoints)
public void set(String set)
"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:
-) in between.set - The set to base these characters on.public boolean isControlCharacter()
isControlCharacter in interface CharacterSetpublic boolean equals(Object o)
public int hashCode()
public String toString()
public <P,T,EX extends Exception> T transform(TermTransformation<P,T,EX> transformation, P param) throws EX extends Exception
transform in class Grammar.TermEX extends Exceptionpublic String name()
CharacterSetnull if this is not a named set.name in interface CharacterSetpublic <EX extends Exception> void accept(CharacterSet.DefinitionVisitor<EX> visitor) throws EX extends Exception
accept in interface CharacterSetEX extends Exceptionpublic int randomCodePoint(Random random)
randomCodePoint in interface CharacterSetpublic boolean contains(int codePoint)
contains in interface CharacterSetpublic boolean hasExclusions()
hasExclusions in interface CharacterSetpublic static org.opencypher.grammar.CharacterSetNode charSet(String name)
public final void location(String path, int lineNumber, int columnNumber)
LocationAwarelocation in interface LocationAwarepath - 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.Copyright © 2019. All rights reserved.