|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jeops.parser.Declaracoes
This class models a set of String pairs, used to store the list of declarations for a rule.
Constructor Summary | |
Declaracoes()
Class constructor. |
Method Summary | |
java.util.Enumeration |
elements()
Returns an enumeration with the types of these declarations. |
java.lang.String |
get(java.lang.String ident)
Recovers the type of a previously declared identifier. |
java.lang.String |
getIdent(int i)
Returns the identifier for the i-th declaration of this set. |
int |
getNumDeclarations()
Returns the number of declarations in this set. |
java.lang.String |
getType(int i)
Returns the type for the i-th declaration of this set. |
java.util.Enumeration |
keys()
Retorna uma enumeração com os identificadores das declarações. |
void |
put(java.lang.String ident,
java.lang.String type)
Adds a new declaration to this set. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Declaracoes()
Method Detail |
public java.util.Enumeration elements()
public java.lang.String get(java.lang.String ident)
ident
- the identifier of the needed identifierpublic java.lang.String getIdent(int i)
i
- the index of the needed element.public int getNumDeclarations()
public java.lang.String getType(int i)
i
- the index of the needed element.public java.util.Enumeration keys()
public void put(java.lang.String ident, java.lang.String type)
ident
- the identifier of the declarationtype
- the type of the declaration
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |