Package org.apache.sysds.parser
Class BinaryExpression
- java.lang.Object
-
- org.apache.sysds.parser.Expression
-
- org.apache.sysds.parser.BinaryExpression
-
- All Implemented Interfaces:
ParseInfo
public class BinaryExpression extends Expression
-
-
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 BinaryExpression(Expression.BinaryOp bop)BinaryExpression(Expression.BinaryOp bop, ParseInfo parseInfo)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressiongetLeft()Expression.BinaryOpgetOpCode()ExpressiongetRight()static booleanisSameDimensionBinaryOp(Expression.BinaryOp op)ExpressionrewriteExpression(String prefix)voidsetLeft(Expression l)voidsetRight(Expression r)StringtoString()voidvalidateExpression(HashMap<String,DataIdentifier> ids, HashMap<String,ConstIdentifier> constVars, boolean conditional)Validate parse tree : Process Binary Expression in an assignment statementVariableSetvariablesRead()VariableSetvariablesUpdated()-
Methods inherited from class org.apache.sysds.parser.Expression
computeDataType, computeDataType, computeValueType, computeValueType, computeValueType, convertFormatType, equals, getBeginColumn, getBeginLine, getBinaryMatrixCharacteristics, getBinaryOp, getBooleanOp, getEndColumn, getEndLine, getFilename, getOutput, getOutputs, getParseExceptionList, getRelationalOp, getTempName, getText, hashCode, printErrorLocation, printInfoLocation, printWarningLocation, raiseValidateError, raiseValidateError, raiseValidateError, setBeginColumn, setBeginLine, setCtxValues, setCtxValuesAndFilename, setEndColumn, setEndLine, setFilename, setOutput, setParseExceptionList, setParseInfo, setText, validateExpression
-
-
-
-
Constructor Detail
-
BinaryExpression
public BinaryExpression(Expression.BinaryOp bop)
-
BinaryExpression
public BinaryExpression(Expression.BinaryOp bop, ParseInfo parseInfo)
-
-
Method Detail
-
rewriteExpression
public Expression rewriteExpression(String prefix)
- Specified by:
rewriteExpressionin classExpression
-
getOpCode
public Expression.BinaryOp getOpCode()
-
setLeft
public void setLeft(Expression l)
-
setRight
public void setRight(Expression r)
-
getLeft
public Expression getLeft()
-
getRight
public Expression getRight()
-
validateExpression
public void validateExpression(HashMap<String,DataIdentifier> ids, HashMap<String,ConstIdentifier> constVars, boolean conditional)
Validate parse tree : Process Binary Expression in an assignment statement- Overrides:
validateExpressionin classExpression
-
variablesRead
public VariableSet variablesRead()
- Specified by:
variablesReadin classExpression
-
variablesUpdated
public VariableSet variablesUpdated()
- Specified by:
variablesUpdatedin classExpression
-
isSameDimensionBinaryOp
public static boolean isSameDimensionBinaryOp(Expression.BinaryOp op)
-
-