|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.jdoql.scope.SymbolTable
public class SymbolTable
The symbol table handling declared identifies.
Field Summary | |
---|---|
protected java.util.Map |
symbols
The table of declared identifier (symbols). |
Constructor Summary | |
---|---|
SymbolTable()
|
Method Summary | |
---|---|
Declaration |
declare(java.lang.String ident,
Declaration def)
This method adds the specified identifier to this SymbolTable. |
Declaration |
getDeclaration(java.lang.String ident)
Checks the symbol table for the actual declaration of the specified identifier. |
boolean |
isDeclared(java.lang.String ident)
Checks whether the specified identifier is declared. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Map symbols
Constructor Detail |
---|
public SymbolTable()
Method Detail |
---|
public Declaration declare(java.lang.String ident, Declaration def)
null
is returned.
ident
- identifier to be declareddef
- new definition of identifier
null
otherwisepublic boolean isDeclared(java.lang.String ident)
ident
- the name of identifier to be tested
true
if the identifier is declared;
false
otherwise.public Declaration getDeclaration(java.lang.String ident)
null
for an undeclared identifier.
ident
- the name of identifier
null
otherise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |