Class IntValue

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

public class IntValue extends Object implements Value
  • Field Details

    • value

      protected int value
  • Constructor Details

    • IntValue

      public IntValue(int value)
  • Method Details

    • isInt

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