Module dev.civl.mc

Interface RealLiteralExpression

All Superinterfaces:
Expression, LiteralExpression, Sourceable

public interface RealLiteralExpression extends LiteralExpression
A real literal.
  • Method Details

    • value

      BigDecimal value()
      Returns:
      The (arbitrary precision) real value.
    • setValue

      void setValue(BigDecimal value)
      Parameters:
      value - The (arbitrary precision) real value.
    • getExpressionType

      CIVLPrimitiveType getExpressionType()
      Returns the real type.
      Specified by:
      getExpressionType in interface Expression
      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.