|
eRqlEngine API documentation - http://www.wleklinski.de/rdf/ | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
eworks.RQL.engine.SymbolTable
A symbol table that is used by RqlEngine
class for
storing the values of variables.
RqlEngine
,
Serialized FormConstructor Summary | |
SymbolTable()
Creates a new and empty symbol table using the default capacity. |
|
SymbolTable(int initialCapacity)
Creates a new and empty symbol table with the given intial capacity. |
Method Summary | |
void |
bind(Variable variable,
LiteralValue value)
Binds the variable variable to the value
value . |
LiteralValue |
get(String name)
Returns the value of the variable specified by name . |
Tuple |
getTuple()
Returns all bound variables and their values as tuple, using an instance of Tuple . |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SymbolTable()
public SymbolTable(int initialCapacity)
initialCapacity
- The symbol table's initial capicityMethod Detail |
public LiteralValue get(String name) throws VariableNotBoundException
name
.
name
- The variable's name
VariableNotBoundException
- Thrown if there is no bound variable
named name
public Tuple getTuple()
Tuple
.
public void bind(Variable variable, LiteralValue value) throws VariableAlreadyBoundException
variable
to the value
value
.
variable
- The variable to be bound.value
- The value to be bound.
VariableAlreadyBoundException
- is thrown if the variable
variable
is already bound.
|
eRqlEngine API documentation - http://www.wleklinski.de/rdf/ | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |