ElegantJ Data Tables Java API Specification v1.1

com.elegantj.data.parser
Class FunctionTable

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended bycom.elegantj.data.parser.FunctionTable
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class FunctionTable
extends java.util.Hashtable

A FunctionTable class represents the set of function's definations.

See Also:
Serialized Form

Constructor Summary
FunctionTable()
          Creates a FunctionTable with empty set of function's definations.
 
Method Summary
 java.lang.Object addFunction(java.lang.String funIdent_in, PostfixMathCommandI pfmc_in)
          Adds the function defination
 boolean containsFunction(PostfixMathCommandI pfmc_in)
          Returns true if this function table maps one or more identifiers to this command method.
 boolean containsFunIdent(java.lang.String funIdent_in)
          Tests if the specified string is an identifier in this function table.
 java.util.Enumeration functions()
          Returns an enumeration of the function definations in the function table
 java.lang.Object removeFunction(java.lang.String funIdent_in)
          Removes the function defination
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FunctionTable

public FunctionTable()
Creates a FunctionTable with empty set of function's definations.

Method Detail

addFunction

public java.lang.Object addFunction(java.lang.String funIdent_in,
                                    PostfixMathCommandI pfmc_in)
Adds the function defination

Parameters:
funIdent_in - identifier of the function
pfmc_in - the command mathod to be executed

removeFunction

public java.lang.Object removeFunction(java.lang.String funIdent_in)
Removes the function defination

Parameters:
funIdent_in - identifier of the function

functions

public java.util.Enumeration functions()
Returns an enumeration of the function definations in the function table


containsFunIdent

public boolean containsFunIdent(java.lang.String funIdent_in)
Tests if the specified string is an identifier in this function table.

Parameters:
funIdent_in - the function identifier
Returns:
true if and only if the specified string is an identifier in this function table, as determined by the equals method; false otherwise

containsFunction

public boolean containsFunction(PostfixMathCommandI pfmc_in)
Returns true if this function table maps one or more identifiers to this command method.

Parameters:
pfmc_in - value command method whose presence in this function table is to be tested
Returns:
true if this map maps one or more identifiers to the specified command method

ElegantJ Data Tables Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.