|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectuk.me.nxg.unity.FunctionDefinitionMap
public abstract class FunctionDefinitionMap
Provides a mapping from function abbreviations to function definitions.
This is a singleton class, so clients must first obtain the
instance of the class using getInstance().
| Method Summary | |
|---|---|
static FunctionDefinitionMap |
getInstance()
Obtain an instance of the function-definition map. |
static FunctionDefinition |
lookupFunctionDefinition(Syntax syntax,
String functionName)
Return the FunctionDefinition corresponding to a name, in a particular syntax. |
static String |
lookupFunctionName(Syntax syntax,
FunctionDefinition fd)
Return the name corresponding to a function definition in a particular syntax. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static FunctionDefinitionMap getInstance()
public static FunctionDefinition lookupFunctionDefinition(Syntax syntax,
String functionName)
syntax - one of the syntaxes of SyntaxfunctionName - the name of the function (eg "log") to be looked up
public static String lookupFunctionName(Syntax syntax,
FunctionDefinition fd)
log for Logarithm, and this
is in principle syntax-specific (though in fact there is no
variation between syntaxes).
syntax - one of the syntaxes of Syntaxfd - the definition of the function, which we want the name of
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||