com.raritantechnologies.vqlparser
Class SymbolTable

java.lang.Object
  extended bycom.raritantechnologies.vqlparser.SymbolTable

public class SymbolTable
extends java.lang.Object

Symbol Table object that holds information about VQL tokens.



Developed by Raritan Technologies .

Author:
Kepler Gelotte

Nested Class Summary
protected  class SymbolTable.Symbol
           
 
Field Summary
static int ACCRUE_OP
           
static int ALL_OP
           
static int AND_OP
           
static int ANY_OP
           
static int COMMA_OP
           
static int EVIDENCE_OP
           
static int FIELD
           
static int IN_OP
           
static int MODIFIER
           
static int NOT_OP
           
static int OR_OP
           
static int PRODUCT_OP
           
static int PROXIMITY_OP
           
static int REL_OP
           
static int STRING
           
static int SUM_OP
           
static int TEXT_REL_OP
           
static int TOPIC
           
static int UNLICENSED_FIELD
           
static int WHEN_OP
           
static int WORD
           
 
Constructor Summary
SymbolTable()
          Constructor
 
Method Summary
 java.lang.String getAmount(java.lang.String s)
           
 int getArity(java.lang.String nm)
          The arity of this node.
 int getPrecedence(java.lang.String nm)
          The precedence of this node.
 int getType(java.lang.String nm)
          Return the type of this node.
 boolean isToken(java.lang.String nm)
          Is this a Verity token?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACCRUE_OP

public static final int ACCRUE_OP
See Also:
Constant Field Values

AND_OP

public static final int AND_OP
See Also:
Constant Field Values

COMMA_OP

public static final int COMMA_OP
See Also:
Constant Field Values

EVIDENCE_OP

public static final int EVIDENCE_OP
See Also:
Constant Field Values

IN_OP

public static final int IN_OP
See Also:
Constant Field Values

MODIFIER

public static final int MODIFIER
See Also:
Constant Field Values

OR_OP

public static final int OR_OP
See Also:
Constant Field Values

PRODUCT_OP

public static final int PRODUCT_OP
See Also:
Constant Field Values

PROXIMITY_OP

public static final int PROXIMITY_OP
See Also:
Constant Field Values

REL_OP

public static final int REL_OP
See Also:
Constant Field Values

SUM_OP

public static final int SUM_OP
See Also:
Constant Field Values

TEXT_REL_OP

public static final int TEXT_REL_OP
See Also:
Constant Field Values

WHEN_OP

public static final int WHEN_OP
See Also:
Constant Field Values

WORD

public static final int WORD
See Also:
Constant Field Values

STRING

public static final int STRING
See Also:
Constant Field Values

NOT_OP

public static final int NOT_OP
See Also:
Constant Field Values

ANY_OP

public static final int ANY_OP
See Also:
Constant Field Values

ALL_OP

public static final int ALL_OP
See Also:
Constant Field Values

TOPIC

public static final int TOPIC
See Also:
Constant Field Values

FIELD

public static final int FIELD
See Also:
Constant Field Values

UNLICENSED_FIELD

public static final int UNLICENSED_FIELD
See Also:
Constant Field Values
Constructor Detail

SymbolTable

public SymbolTable()
Constructor

Method Detail

getAmount

public java.lang.String getAmount(java.lang.String s)

getType

public int getType(java.lang.String nm)
Return the type of this node. BOOL_OP, MODIFIER, etc.


getArity

public int getArity(java.lang.String nm)
The arity of this node.


getPrecedence

public int getPrecedence(java.lang.String nm)
The precedence of this node.


isToken

public boolean isToken(java.lang.String nm)
Is this a Verity token?