Class DoubleValue

java.lang.Object
de.monticore.interpreter.values.DoubleValue
All Implemented Interfaces:
Value

public class DoubleValue extends Object implements Value
  • Field Details

    • value

      protected double value
  • Constructor Details

    • DoubleValue

      public DoubleValue(double value)
  • Method Details

    • isDouble

      public boolean isDouble()
      Specified by:
      isDouble in interface Value
    • asInt

      public int asInt()
      Specified by:
      asInt in interface Value
    • asDouble

      public double asDouble()
      Specified by:
      asDouble in interface Value
    • asString

      public String asString()
      Specified by:
      asString in interface Value
    • asLong

      public long asLong()
      Specified by:
      asLong in interface Value
    • asFloat

      public float asFloat()
      Specified by:
      asFloat in interface Value