|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jdo.spi.persistence.support.ejb.ejbqlc.SymbolTable
public class SymbolTable
The symbol table handling declared identifies.
| Field Summary | |
|---|---|
protected Map |
symbols
The table of declared identifier (symbols). |
| Constructor Summary | |
|---|---|
SymbolTable()
|
|
| Method Summary | |
|---|---|
Object |
declare(String ident,
Object decl)
This method adds the specified identifier to this SymbolTable. |
Object |
getDeclaration(String ident)
Checks the symbol table for the actual declaration of the specified identifier. |
boolean |
isDeclared(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 Map symbols
| Constructor Detail |
|---|
public SymbolTable()
| Method Detail |
|---|
public Object declare(String ident,
Object decl)
null is returned.
ident - identifier to be declareddecl - new definition of identifier
null otherwisepublic boolean isDeclared(String ident)
ident - the name of identifier to be tested
true if the identifier is declared;
false otherwise.public Object getDeclaration(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 | |||||||||