net.sf.basedb.util.jep
Class FunctionSafeJep.SafeFunctionTable
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable
org.nfunk.jep.FunctionTable
net.sf.basedb.util.jep.FunctionSafeJep.SafeFunctionTable
- All Implemented Interfaces:
- Serializable, Cloneable, Map
- Enclosing class:
- FunctionSafeJep
static class FunctionSafeJep.SafeFunctionTable
- extends FunctionTable
Function table implementation that pretends that all possible functions
exists, but sends an error message if someone tries to use a function that
doesn't really exists.
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsValue, elements, entrySet, equals, hashCode, isEmpty, keys, keySet, putAll, rehash, remove, size, toString, values |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
jep
private final FunctionSafeJep jep
FunctionSafeJep.SafeFunctionTable
FunctionSafeJep.SafeFunctionTable(FunctionSafeJep jep)
containsKey
public boolean containsKey(Object key)
- If the key is already registered, return TRUE. If the key is not
registered and is a function, register it as an unknown function,
set an error message and return TRUE. Otherwise return FALSE.
- Specified by:
containsKey
in interface Map
- Overrides:
containsKey
in class Hashtable
nextToken
private String nextToken(String token)
- Get the next token in the parser. If this is a "(", the
parse is currently looking up a function name.
- Parameters:
token
- The current token
readObject
private void readObject(ObjectInputStream ois)
throws ClassNotFoundException,
IOException
- Throws:
ClassNotFoundException
IOException
writeObject
private void writeObject(ObjectOutputStream ois)
throws IOException
- Throws:
IOException