Class Constant


  • public final class Constant
    extends java.lang.Object
    Definition of a constant used in expressions.
    • Constructor Summary

      Constructors 
      Constructor Description
      Constant​(java.lang.String m, java.lang.String name, java.lang.Object value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getModule()
      Get the module of the constant, for example "Math" or "Conversion".
      java.lang.String getName()
      Get name of the function, for example "MathPI" or "MathE"
      java.lang.Object getValue()
      Return the value of the constant.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Constant

        public Constant​(java.lang.String m,
                        java.lang.String name,
                        java.lang.Object value)
    • Method Detail

      • getModule

        public java.lang.String getModule()
        Get the module of the constant, for example "Math" or "Conversion".
        Returns:
        the module name
      • getName

        public java.lang.String getName()
        Get name of the function, for example "MathPI" or "MathE"
        Returns:
        the name
      • getValue

        public java.lang.Object getValue()
        Return the value of the constant.
        Returns:
        the result