public class BinaryExpression extends Expression
Expression.BinaryOp, Expression.BooleanOp, Expression.DataOp, Expression.FunctCallOp, Expression.RelationalOp| Constructor and Description |
|---|
BinaryExpression(Expression.BinaryOp bop) |
BinaryExpression(Expression.BinaryOp bop,
ParseInfo parseInfo) |
| Modifier and Type | Method and Description |
|---|---|
Expression |
getLeft() |
Expression.BinaryOp |
getOpCode() |
Expression |
getRight() |
static boolean |
isSameDimensionBinaryOp(Expression.BinaryOp op) |
Expression |
rewriteExpression(String prefix) |
void |
setLeft(Expression l) |
void |
setRight(Expression r) |
String |
toString() |
void |
validateExpression(HashMap<String,DataIdentifier> ids,
HashMap<String,ConstIdentifier> constVars,
boolean conditional)
Validate parse tree : Process Binary Expression in an assignment
statement
|
VariableSet |
variablesRead() |
VariableSet |
variablesUpdated() |
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, validateExpressionctxAndFilenameToParseInfopublic BinaryExpression(Expression.BinaryOp bop)
public BinaryExpression(Expression.BinaryOp bop, ParseInfo parseInfo)
public Expression rewriteExpression(String prefix)
rewriteExpression in class Expressionpublic Expression.BinaryOp getOpCode()
public void setLeft(Expression l)
public void setRight(Expression r)
public Expression getLeft()
public Expression getRight()
public void validateExpression(HashMap<String,DataIdentifier> ids, HashMap<String,ConstIdentifier> constVars, boolean conditional)
validateExpression in class Expressionpublic VariableSet variablesRead()
variablesRead in class Expressionpublic VariableSet variablesUpdated()
variablesUpdated in class Expressionpublic static boolean isSameDimensionBinaryOp(Expression.BinaryOp op)
Copyright © 2020 The Apache Software Foundation. All rights reserved.