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
-
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanMethod to specify if an expression returns multiple outputs.rewriteExpression(String prefix) voidsetFunctionName(String functionName) sets the function namespace (if specified) and namevoidsetFunctionNamespace(String passed) toString()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!Methods inherited from class org.apache.sysds.parser.DataIdentifier
equals, getName, hashCode, setNameMethods inherited from class org.apache.sysds.parser.Identifier
computeDataType, dimsKnown, getBlocksize, getDataType, getDim1, getDim2, getFileFormat, getNnz, getValueType, isScalarBoolean, setBlocksize, setBooleanProperties, setDataType, setDimensions, setDimensionValueProperties, setFileFormat, setIntProperties, setNnz, setProperties, setValueType, validateExpressionMethods 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 Details
-
FunctionCallIdentifier
public FunctionCallIdentifier() -
FunctionCallIdentifier
-
-
Method Details
-
setFunctionName
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
-
getNamespace
-
getParamExprs
-
rewriteExpression
- Overrides:
rewriteExpressionin classDataIdentifier
-
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
- Overrides:
toStringin classDataIdentifier
-
variablesRead
- Overrides:
variablesReadin classDataIdentifier
-
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
-