org.h2.bnf
Class RuleFixed

java.lang.Object
  extended by org.h2.bnf.RuleFixed
All Implemented Interfaces:
Rule

public class RuleFixed
extends java.lang.Object
implements Rule

Represents a hard coded terminal rule in a BNF object.


Field Summary
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 NANOS
           
static int OPEN_BRACKET
           
static int YMD
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Method Detail

accept

public void accept(BnfVisitor visitor)
Description copied from interface: Rule
Call the visit method in the given visitor.

Specified by:
accept in interface Rule
Parameters:
visitor - the visitor

setLinks

public void setLinks(java.util.HashMap<java.lang.String,RuleHead> ruleMap)
Description copied from interface: Rule
Update cross references.

Specified by:
setLinks in interface Rule
Parameters:
ruleMap - the reference map

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 interface Rule
Parameters:
sentence - the sentence context
Returns:
true if a full match