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, validateExpression
ctxAndFilenameToParseInfo
public BinaryExpression(Expression.BinaryOp bop)
public BinaryExpression(Expression.BinaryOp bop, ParseInfo parseInfo)
public Expression rewriteExpression(String prefix)
rewriteExpression
in class Expression
public 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 Expression
public VariableSet variablesRead()
variablesRead
in class Expression
public VariableSet variablesUpdated()
variablesUpdated
in class Expression
public static boolean isSameDimensionBinaryOp(Expression.BinaryOp op)
Copyright © 2020 The Apache Software Foundation. All rights reserved.