Class Java.SimpleConstant

    • Constructor Detail

      • SimpleConstant

        public SimpleConstant​(Location location)
        Equivalent of the null literal.
      • SimpleConstant

        public SimpleConstant​(Location location,
                              byte value)
        Equivalent of an literal, cast to byte.
      • SimpleConstant

        public SimpleConstant​(Location location,
                              short value)
        Equivalent of an literal, cast to short.
      • SimpleConstant

        public SimpleConstant​(Location location,
                              float value)
        Equivalent of a Java.FloatingPointLiteral with type float.

        Notice that this class supports the special values Float.NaN, Float.NEGATIVE_INFINITY and Float.POSITIVE_INFINITY, which can not be represented with a Java.FloatingPointLiteral.

      • SimpleConstant

        public SimpleConstant​(Location location,
                              double value)
        Equivalent of a Java.FloatingPointLiteral with type double.

        Notice that this class supports the special values Double.NaN, Double.NEGATIVE_INFINITY and Double.POSITIVE_INFINITY, which can not be represented with a Java.FloatingPointLiteral.