Package org.apache.sysds.parser
Class FunctionDictionary<T extends Types.FunctionBlock>
- java.lang.Object
-
- org.apache.sysds.parser.FunctionDictionary<T>
-
public class FunctionDictionary<T extends Types.FunctionBlock> extends Object
Dictionary of all functions of a namespace, represented as a simple key-value map of function names and function statement blocks.
-
-
Constructor Summary
Constructors Constructor Description FunctionDictionary()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFunction(String fname, T fsb)
void
addFunction(String fname, T fsb, boolean opt)
boolean
containsFunction(String fname)
boolean
containsFunction(String fname, boolean opt)
void
copyOriginalFunctions()
T
getFunction(String fname)
T
getFunction(String fname, boolean opt)
Map<String,T>
getFunctions()
Map<String,T>
getFunctions(boolean opt)
void
merge(FunctionDictionary<T> that)
void
removeFunction(String fname)
String
toString()
-
-
-
Method Detail
-
removeFunction
public void removeFunction(String fname)
-
containsFunction
public boolean containsFunction(String fname)
-
containsFunction
public boolean containsFunction(String fname, boolean opt)
-
copyOriginalFunctions
public void copyOriginalFunctions()
-
merge
public void merge(FunctionDictionary<T> that)
-
-