Package org.apache.sysds.parser
Class FunctionCallIdentifier
- java.lang.Object
-
- org.apache.sysds.parser.Expression
-
- org.apache.sysds.parser.Identifier
-
- org.apache.sysds.parser.DataIdentifier
-
- org.apache.sysds.parser.FunctionCallIdentifier
-
- All Implemented Interfaces:
ParseInfo
public class FunctionCallIdentifier extends DataIdentifier
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.sysds.parser.Expression
Expression.BinaryOp, Expression.BooleanOp, Expression.DataOp, Expression.FunctCallOp, Expression.RelationalOp
-
-
Constructor Summary
Constructors Constructor Description FunctionCallIdentifier()FunctionCallIdentifier(ArrayList<ParameterExpression> paramExpressions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetNamespace()Expression.FunctCallOpgetOpCode()ArrayList<ParameterExpression>getParamExprs()booleanmultipleReturns()Method to specify if an expression returns multiple outputs.ExpressionrewriteExpression(String prefix)voidsetFunctionName(String functionName)sets the function namespace (if specified) and namevoidsetFunctionNamespace(String passed)StringtoString()voidvalidateExpression(DMLProgram dmlp, HashMap<String,DataIdentifier> ids, HashMap<String,ConstIdentifier> constVars, boolean conditional)Validate parse tree : Process ExtBuiltinFunction Expression is an assignment statement NOTE: this does not override the normal validateExpression because it needs to pass dmlp!VariableSetvariablesRead()VariableSetvariablesUpdated()-
Methods inherited from class org.apache.sysds.parser.DataIdentifier
equals, getName, hashCode, setName
-
Methods inherited from class org.apache.sysds.parser.Identifier
computeDataType, dimsKnown, getBlocksize, getDataType, getDim1, getDim2, getFileFormat, getNnz, getPrivacy, getValueType, isScalarBoolean, setBlocksize, setBooleanProperties, setDataType, setDimensions, setDimensionValueProperties, setFileFormat, setIntProperties, setNnz, setPrivacy, setPrivacy, setProperties, setValueType, validateExpression
-
Methods inherited from class org.apache.sysds.parser.Expression
computeDataType, computeDataType, computeValueType, computeValueType, computeValueType, convertFormatType, getBeginColumn, getBeginLine, getBinaryMatrixCharacteristics, getBinaryOp, getBooleanOp, getEndColumn, getEndLine, getFilename, getOutput, getOutputs, getParseExceptionList, getRelationalOp, getTempName, getText, printErrorLocation, printInfoLocation, printWarningLocation, raiseValidateError, raiseValidateError, raiseValidateError, setBeginColumn, setBeginLine, setCtxValues, setCtxValuesAndFilename, setEndColumn, setEndLine, setFilename, setOutput, setParseExceptionList, setParseInfo, setText, validateExpression
-
-
-
-
Constructor Detail
-
FunctionCallIdentifier
public FunctionCallIdentifier()
-
FunctionCallIdentifier
public FunctionCallIdentifier(ArrayList<ParameterExpression> paramExpressions)
-
-
Method Detail
-
setFunctionName
public void setFunctionName(String functionName)
sets the function namespace (if specified) and name- Parameters:
functionName- the (optional) namespace information and name of function. If both namespace and name are specified, they are concatenated with "::"
-
setFunctionNamespace
public void setFunctionNamespace(String passed)
-
getNamespace
public String getNamespace()
-
getParamExprs
public ArrayList<ParameterExpression> getParamExprs()
-
rewriteExpression
public Expression rewriteExpression(String prefix)
- Overrides:
rewriteExpressionin classDataIdentifier
-
getOpCode
public Expression.FunctCallOp getOpCode()
-
validateExpression
public void validateExpression(DMLProgram dmlp, HashMap<String,DataIdentifier> ids, HashMap<String,ConstIdentifier> constVars, boolean conditional)
Validate parse tree : Process ExtBuiltinFunction Expression is an assignment statement NOTE: this does not override the normal validateExpression because it needs to pass dmlp!- Parameters:
dmlp- dml programids- map of data identifiersconstVars- map of constant identifiersconditional- if true, display warning for 'raiseValidateError'; if false, throw LanguageException for 'raiseValidateError'
-
toString
public String toString()
- Overrides:
toStringin classDataIdentifier
-
variablesRead
public VariableSet variablesRead()
- Overrides:
variablesReadin classDataIdentifier
-
variablesUpdated
public VariableSet variablesUpdated()
- Overrides:
variablesUpdatedin classDataIdentifier
-
multipleReturns
public boolean multipleReturns()
Description copied from class:DataIdentifierMethod to specify if an expression returns multiple outputs. This method must be overridden by all child classes.- Overrides:
multipleReturnsin classDataIdentifier- Returns:
- true if expression returns multiple outputs
-
-