Package org.apache.sysds.parser
Class ParameterizedBuiltinFunctionExpression
java.lang.Object
org.apache.sysds.parser.Expression
org.apache.sysds.parser.Identifier
org.apache.sysds.parser.DataIdentifier
org.apache.sysds.parser.ParameterizedBuiltinFunctionExpression
- 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 -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionParameterizedBuiltinFunctionExpression(org.antlr.v4.runtime.ParserRuleContext ctx, Builtins op, LinkedHashMap<String, Expression> varParams, String filename) ParameterizedBuiltinFunctionExpression(Builtins op, LinkedHashMap<String, Expression> varParams, ParseInfo parseInfo) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddVarParam(String name, Expression value) getParamBuiltinFunctionExpression(org.antlr.v4.runtime.ParserRuleContext ctx, String functionName, ArrayList<ParameterExpression> paramExprsPassed, String fileName) getVarParam(String name) booleanMethod to specify if an expression returns multiple outputs.rewriteExpression(String prefix) voidtoString()voidvalidateExpression(HashMap<String, DataIdentifier> ids, HashMap<String, ConstIdentifier> constVars, boolean conditional) Validate parse tree : Process BuiltinFunction Expression in an assignment statementvoidvalidateExpression(MultiAssignmentStatement stmt, HashMap<String, DataIdentifier> ids, HashMap<String, ConstIdentifier> constVars, boolean conditional) 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, setValueTypeMethods 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
-
Field Details
-
TF_FN_PARAM_DATA
- See Also:
-
TF_FN_PARAM_MTD2
- See Also:
-
TF_FN_PARAM_SPEC
- See Also:
-
TF_FN_PARAM_EMBD
- See Also:
-
LINEAGE_TRACE
- See Also:
-
TF_FN_PARAM_MTD
- See Also:
-
pbHopMap
-
-
Constructor Details
-
ParameterizedBuiltinFunctionExpression
public ParameterizedBuiltinFunctionExpression(org.antlr.v4.runtime.ParserRuleContext ctx, Builtins op, LinkedHashMap<String, Expression> varParams, String filename) -
ParameterizedBuiltinFunctionExpression
public ParameterizedBuiltinFunctionExpression(Builtins op, LinkedHashMap<String, Expression> varParams, ParseInfo parseInfo)
-
-
Method Details
-
getParamBuiltinFunctionExpression
public static ParameterizedBuiltinFunctionExpression getParamBuiltinFunctionExpression(org.antlr.v4.runtime.ParserRuleContext ctx, String functionName, ArrayList<ParameterExpression> paramExprsPassed, String fileName) -
rewriteExpression
- Overrides:
rewriteExpressionin classDataIdentifier
-
setOpcode
-
getOpCode
-
getVarParams
-
getVarParam
-
addVarParam
-
validateExpression
public void validateExpression(HashMap<String, DataIdentifier> ids, HashMap<String, ConstIdentifier> constVars, boolean conditional) Validate parse tree : Process BuiltinFunction Expression in an assignment statement- Overrides:
validateExpressionin classIdentifier
-
validateExpression
public void validateExpression(MultiAssignmentStatement stmt, HashMap<String, DataIdentifier> ids, HashMap<String, ConstIdentifier> constVars, boolean conditional) - Overrides:
validateExpressionin classExpression
-
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
-