Package org.apache.sysds.parser
Class DoubleIdentifier
- java.lang.Object
-
- org.apache.sysds.parser.Expression
-
- org.apache.sysds.parser.Identifier
-
- org.apache.sysds.parser.ConstIdentifier
-
- org.apache.sysds.parser.DoubleIdentifier
-
- All Implemented Interfaces:
ParseInfo
public class DoubleIdentifier extends ConstIdentifier
-
-
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 DoubleIdentifier(double val)
DoubleIdentifier(double val, ParseInfo parseInfo)
DoubleIdentifier(org.antlr.v4.runtime.ParserRuleContext ctx, double val, String filename)
DoubleIdentifier(DoubleIdentifier d, ParseInfo parseInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getLongValue()
double
getValue()
void
multiplyByMinusOne()
Expression
rewriteExpression(String prefix)
void
setValue(double v)
String
toString()
VariableSet
variablesRead()
VariableSet
variablesUpdated()
-
Methods inherited from class org.apache.sysds.parser.Identifier
computeDataType, dimsKnown, getBlocksize, getDataType, getDim1, getDim2, getFileFormat, getNnz, getValueType, isScalarBoolean, setBlocksize, setBooleanProperties, setDataType, setDimensions, setDimensionValueProperties, setFileFormat, setIntProperties, setNnz, setProperties, setValueType, validateExpression
-
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
-
DoubleIdentifier
public DoubleIdentifier(double val)
-
DoubleIdentifier
public DoubleIdentifier(double val, ParseInfo parseInfo)
-
DoubleIdentifier
public DoubleIdentifier(DoubleIdentifier d, ParseInfo parseInfo)
-
DoubleIdentifier
public DoubleIdentifier(org.antlr.v4.runtime.ParserRuleContext ctx, double val, String filename)
-
-
Method Detail
-
rewriteExpression
public Expression rewriteExpression(String prefix)
- Specified by:
rewriteExpression
in classExpression
-
multiplyByMinusOne
public void multiplyByMinusOne()
-
getValue
public double getValue()
-
setValue
public void setValue(double v)
-
variablesRead
public VariableSet variablesRead()
- Specified by:
variablesRead
in classExpression
-
variablesUpdated
public VariableSet variablesUpdated()
- Specified by:
variablesUpdated
in classExpression
-
getLongValue
public long getLongValue()
- Specified by:
getLongValue
in classConstIdentifier
-
-