public class FunctionCallIdentifier extends DataIdentifier
Expression.BinaryOp, Expression.BooleanOp, Expression.DataOp, Expression.FunctCallOp, Expression.RelationalOp
Constructor and Description |
---|
FunctionCallIdentifier() |
FunctionCallIdentifier(ArrayList<ParameterExpression> paramExpressions) |
Modifier and Type | Method and Description |
---|---|
String |
getNamespace() |
Expression.FunctCallOp |
getOpCode() |
ArrayList<ParameterExpression> |
getParamExprs() |
boolean |
multipleReturns()
Method to specify if an expression returns multiple outputs.
|
Expression |
rewriteExpression(String prefix) |
void |
setFunctionName(String functionName)
sets the function namespace (if specified) and name
|
void |
setFunctionNamespace(String passed) |
String |
toString() |
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!
|
VariableSet |
variablesRead() |
VariableSet |
variablesUpdated() |
equals, getName, hashCode, setName
computeDataType, dimsKnown, getBlocksize, getDataType, getDim1, getDim2, getFileFormat, getNnz, getPrivacy, getValueType, isScalarBoolean, setBlocksize, setBooleanProperties, setDataType, setDimensions, setDimensionValueProperties, setFileFormat, setIntProperties, setNnz, setPrivacy, setPrivacy, setProperties, setValueType, validateExpression
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
ctxAndFilenameToParseInfo
public FunctionCallIdentifier()
public FunctionCallIdentifier(ArrayList<ParameterExpression> paramExpressions)
public void setFunctionName(String functionName)
functionName
- the (optional) namespace information and name of function. If both namespace and name are specified, they are concatenated with "::"public void setFunctionNamespace(String passed)
public String getNamespace()
public ArrayList<ParameterExpression> getParamExprs()
public Expression rewriteExpression(String prefix)
rewriteExpression
in class DataIdentifier
public Expression.FunctCallOp getOpCode()
public void validateExpression(DMLProgram dmlp, HashMap<String,DataIdentifier> ids, HashMap<String,ConstIdentifier> constVars, boolean conditional)
dmlp
- dml programids
- map of data identifiersconstVars
- map of constant identifiersconditional
- if true, display warning for 'raiseValidateError'; if false, throw LanguageException
for 'raiseValidateError'public String toString()
toString
in class DataIdentifier
public VariableSet variablesRead()
variablesRead
in class DataIdentifier
public VariableSet variablesUpdated()
variablesUpdated
in class DataIdentifier
public boolean multipleReturns()
DataIdentifier
multipleReturns
in class DataIdentifier
Copyright © 2020 The Apache Software Foundation. All rights reserved.