- All Superinterfaces:
Expression,LiteralExpression,Sourceable
A real literal.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.civl.mc.model.IF.expression.Expression
Expression.ExpressionKindNested classes/interfaces inherited from interface dev.civl.mc.model.IF.expression.LiteralExpression
LiteralExpression.LiteralKind -
Method Summary
Methods inherited from interface dev.civl.mc.model.IF.expression.Expression
calculateConstantValue, calculateDerefs, constantValue, containsHere, expressionKind, expressionScope, freeVariables, hasConstantValue, hasDerefs, isErrorFree, isPurelyLocal, lowestScope, purelyLocalAnalysis, purelyLocalAnalysisOfVariables, replaceWith, replaceWith, setErrorFree, variableAddressedOf, variableAddressedOfMethods inherited from interface dev.civl.mc.model.IF.expression.LiteralExpression
literalKind, setLiteralConstantValueMethods inherited from interface dev.civl.mc.model.IF.Sourceable
getSource, setCIVLSource
-
Method Details
-
value
BigDecimal value()- Returns:
- The (arbitrary precision) real value.
-
setValue
- Parameters:
value- The (arbitrary precision) real value.
-
getExpressionType
CIVLPrimitiveType getExpressionType()Returns the real type.- Specified by:
getExpressionTypein interfaceExpression- Returns:
- The type of this expression. For a primitive or variable, this is the type of the primitive or variable. For a cast expression it is the cast type. For operations it is the type of the operation result.
-