Package org.h2.bnf
Class RuleFixed
- java.lang.Object
-
- org.h2.bnf.RuleFixed
-
-
Field Summary
Fields Modifier and Type Field Description static int
AF
static int
ANY_EXCEPT_2_DOLLAR
static int
ANY_EXCEPT_DOUBLE_QUOTE
static int
ANY_EXCEPT_SINGLE_QUOTE
static int
ANY_UNTIL_END
static int
ANY_UNTIL_EOL
static int
ANY_WORD
static int
AZ_UNDERSCORE
static int
CLOSE_BRACKET
static int
CONCAT
static int
DIGIT
static int
HEX_START
static int
HMS
static int
JSON_TEXT
static int
NANOS
static int
OPEN_BRACKET
private int
type
static int
YMD
-
Constructor Summary
Constructors Constructor Description RuleFixed(int type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(BnfVisitor visitor)
Call the visit method in the given visitor.boolean
autoComplete(Sentence sentence)
Add the next possible token(s).void
setLinks(java.util.HashMap<java.lang.String,RuleHead> ruleMap)
Update cross references.java.lang.String
toString()
-
-
-
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:Rule
Call the visit method in the given visitor.
-
setLinks
public void setLinks(java.util.HashMap<java.lang.String,RuleHead> ruleMap)
Description copied from interface:Rule
Update cross references.
-
autoComplete
public boolean autoComplete(Sentence sentence)
Description copied from interface:Rule
Add the next possible token(s). If there was a match, the query in the sentence is updated (the matched token is removed).- Specified by:
autoComplete
in interfaceRule
- Parameters:
sentence
- the sentence context- Returns:
- true if a full match
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-