Class CharValue

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

public class CharValue extends Object implements Value
  • Field Details

    • value

      protected char value
  • Constructor Details

    • CharValue

      public CharValue(char value)
  • Method Details

    • isChar

      public boolean isChar()
      Specified by:
      isChar 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
    • asChar

      public char asChar()
      Specified by:
      asChar in interface Value
    • asLong

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

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