Class FloatValue

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

public class FloatValue extends Object implements Value
  • Field Details

    • value

      protected float value
  • Constructor Details

    • FloatValue

      public FloatValue(float value)
  • Method Details

    • isFloat

      public boolean isFloat()
      Specified by:
      isFloat 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