org.oXML.type
Class Functions

java.lang.Object
  extended byorg.oXML.type.Functions

public class Functions
extends java.lang.Object

keeps a map of Function arrays indexed by FunctionKey


Constructor Summary
Functions(Type type)
           
Functions(Type type, Function[] functions)
           
 
Method Summary
 void addFunction(Function function)
           
 void addFunctions(Function[] funs)
           
 void addFunctions(Functions other)
           
 boolean contains(Function function)
           
 FunctionMatch getFunction(FunctionCall call, FunctionMatch closest)
          Get the function that is the closest match on name and parameter types.
 Function getFunction(Name name, Type[] params)
           
 java.util.List getFunctions()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Functions

public Functions(Type type)

Functions

public Functions(Type type,
                 Function[] functions)
Method Detail

addFunction

public void addFunction(Function function)

contains

public boolean contains(Function function)

addFunctions

public void addFunctions(Function[] funs)

addFunctions

public void addFunctions(Functions other)

getFunction

public Function getFunction(Name name,
                            Type[] params)

getFunction

public FunctionMatch getFunction(FunctionCall call,
                                 FunctionMatch closest)
Get the function that is the closest match on name and parameter types.

Parameters:
closest - The closest match so far

getFunctions

public java.util.List getFunctions()