Package org.h2.bnf
Class RuleFixed
java.lang.Object
org.h2.bnf.RuleFixed
- All Implemented Interfaces:
Rule
Represents a hard coded terminal rule in a BNF object.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(BnfVisitor visitor) Call the visit method in the given visitor.booleanautoComplete(Sentence sentence) Add the next possible token(s).voidUpdate cross references.toString()
-
Field Details
-
YMD
public static final int YMD- See Also:
-
HMS
public static final int HMS- See Also:
-
NANOS
public static final int NANOS- See Also:
-
ANY_EXCEPT_SINGLE_QUOTE
public static final int ANY_EXCEPT_SINGLE_QUOTE- See Also:
-
ANY_EXCEPT_DOUBLE_QUOTE
public static final int ANY_EXCEPT_DOUBLE_QUOTE- See Also:
-
ANY_UNTIL_EOL
public static final int ANY_UNTIL_EOL- See Also:
-
ANY_UNTIL_END
public static final int ANY_UNTIL_END- See Also:
-
ANY_WORD
public static final int ANY_WORD- See Also:
-
ANY_EXCEPT_2_DOLLAR
public static final int ANY_EXCEPT_2_DOLLAR- See Also:
-
HEX_START
public static final int HEX_START- See Also:
-
OCTAL_START
public static final int OCTAL_START- See Also:
-
BINARY_START
public static final int BINARY_START- See Also:
-
CONCAT
public static final int CONCAT- See Also:
-
AZ_UNDERSCORE
public static final int AZ_UNDERSCORE- See Also:
-
AF
public static final int AF- See Also:
-
DIGIT
public static final int DIGIT- See Also:
-
OPEN_BRACKET
public static final int OPEN_BRACKET- See Also:
-
CLOSE_BRACKET
public static final int CLOSE_BRACKET- See Also:
-
JSON_TEXT
public static final int JSON_TEXT- See Also:
-
-
Method Details
-
accept
Description copied from interface:RuleCall the visit method in the given visitor. -
setLinks
Description copied from interface:RuleUpdate cross references. -
autoComplete
Description copied from interface:RuleAdd the next possible token(s). If there was a match, the query in the sentence is updated (the matched token is removed).- Specified by:
autoCompletein interfaceRule- Parameters:
sentence- the sentence context- Returns:
- true if a full match
-
toString
-