Package org.h2.bnf
Class RuleFixed
- java.lang.Object
-
- org.h2.bnf.RuleFixed
-
-
Field Summary
Fields Modifier and Type Field Description static intAFstatic intANY_EXCEPT_2_DOLLARstatic intANY_EXCEPT_DOUBLE_QUOTEstatic intANY_EXCEPT_SINGLE_QUOTEstatic intANY_UNTIL_ENDstatic intANY_UNTIL_EOLstatic intANY_WORDstatic intAZ_UNDERSCOREstatic intCLOSE_BRACKETstatic intCONCATstatic intDIGITstatic intHEX_STARTstatic intHMSstatic intJSON_TEXTstatic intNANOSstatic intOPEN_BRACKETprivate inttypestatic intYMD
-
Constructor Summary
Constructors Constructor Description RuleFixed(int type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(BnfVisitor visitor)Call the visit method in the given visitor.booleanautoComplete(Sentence sentence)Add the next possible token(s).voidsetLinks(java.util.HashMap<java.lang.String,RuleHead> ruleMap)Update cross references.java.lang.StringtoString()
-
-
-
Field Detail
-
YMD
public static final int YMD
- See Also:
- Constant Field Values
-
HMS
public static final int HMS
- See Also:
- Constant Field Values
-
NANOS
public static final int NANOS
- See Also:
- Constant Field Values
-
ANY_EXCEPT_SINGLE_QUOTE
public static final int ANY_EXCEPT_SINGLE_QUOTE
- See Also:
- Constant Field Values
-
ANY_EXCEPT_DOUBLE_QUOTE
public static final int ANY_EXCEPT_DOUBLE_QUOTE
- See Also:
- Constant Field Values
-
ANY_UNTIL_EOL
public static final int ANY_UNTIL_EOL
- See Also:
- Constant Field Values
-
ANY_UNTIL_END
public static final int ANY_UNTIL_END
- See Also:
- Constant Field Values
-
ANY_WORD
public static final int ANY_WORD
- See Also:
- Constant Field Values
-
ANY_EXCEPT_2_DOLLAR
public static final int ANY_EXCEPT_2_DOLLAR
- See Also:
- Constant Field Values
-
HEX_START
public static final int HEX_START
- See Also:
- Constant Field Values
-
CONCAT
public static final int CONCAT
- See Also:
- Constant Field Values
-
AZ_UNDERSCORE
public static final int AZ_UNDERSCORE
- See Also:
- Constant Field Values
-
AF
public static final int AF
- See Also:
- Constant Field Values
-
DIGIT
public static final int DIGIT
- See Also:
- Constant Field Values
-
OPEN_BRACKET
public static final int OPEN_BRACKET
- See Also:
- Constant Field Values
-
CLOSE_BRACKET
public static final int CLOSE_BRACKET
- See Also:
- Constant Field Values
-
JSON_TEXT
public static final int JSON_TEXT
- See Also:
- Constant Field Values
-
type
private final int type
-
-
Method Detail
-
accept
public void accept(BnfVisitor visitor)
Description copied from interface:RuleCall the visit method in the given visitor.
-
setLinks
public void setLinks(java.util.HashMap<java.lang.String,RuleHead> ruleMap)
Description copied from interface:RuleUpdate cross references.
-
autoComplete
public boolean autoComplete(Sentence sentence)
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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-