|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.creole.morph.Storage
public class Storage
Title: Storage.java
Description: This class is used as the storage in the system, where all the declared variables and their appropriate values are stored
Constructor Summary | |
---|---|
Storage()
Constructor |
Method Summary | |
---|---|
boolean |
add(String varName,
String varValue)
Adds the variable name and its value into the hashTable |
String |
get(String varName)
This method looks into the hashtable and searches for the value of the given variable |
String[] |
getVarNames()
This method returns names of all the variables available in the hashtable |
boolean |
isExist(String varName)
This method checks for the existance of the variable into the hashtable |
void |
update(String varName,
String varValue)
Update the variable with the new value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Storage()
Method Detail |
---|
public boolean add(String varName, String varValue)
varName
- name of the variablevarValue
- value for the variable
public String get(String varName)
varName
-
public boolean isExist(String varName)
varName
-
public void update(String varName, String varValue)
varName
- name of the variable to be updated, or addedvarValue
- value of the variablepublic String[] getVarNames()
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |