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.ExpressionExpression.BinaryOp, Expression.BooleanOp, Expression.DataOp, Expression.FunctCallOp, Expression.RelationalOp
 
- 
 - 
Constructor SummaryConstructors Constructor Description FunctionCallIdentifier()FunctionCallIdentifier(ArrayList<ParameterExpression> paramExpressions)
 - 
Method SummaryAll 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.DataIdentifierequals, getName, hashCode, setName
 - 
Methods inherited from class org.apache.sysds.parser.IdentifiercomputeDataType, 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.ExpressioncomputeDataType, 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- 
FunctionCallIdentifierpublic FunctionCallIdentifier() 
 - 
FunctionCallIdentifierpublic FunctionCallIdentifier(ArrayList<ParameterExpression> paramExpressions) 
 
- 
 - 
Method Detail- 
setFunctionNamepublic 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 "::"
 
 - 
setFunctionNamespacepublic void setFunctionNamespace(String passed) 
 - 
getNamespacepublic String getNamespace() 
 - 
getParamExprspublic ArrayList<ParameterExpression> getParamExprs() 
 - 
rewriteExpressionpublic Expression rewriteExpression(String prefix) - Overrides:
- rewriteExpressionin class- DataIdentifier
 
 - 
getOpCodepublic Expression.FunctCallOp getOpCode() 
 - 
validateExpressionpublic 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 program
- ids- map of data identifiers
- constVars- map of constant identifiers
- conditional- if true, display warning for 'raiseValidateError'; if false, throw LanguageException for 'raiseValidateError'
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- DataIdentifier
 
 - 
variablesReadpublic VariableSet variablesRead() - Overrides:
- variablesReadin class- DataIdentifier
 
 - 
variablesUpdatedpublic VariableSet variablesUpdated() - Overrides:
- variablesUpdatedin class- DataIdentifier
 
 - 
multipleReturnspublic 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 class- DataIdentifier
- Returns:
- true if expression returns multiple outputs
 
 
- 
 
-