Class ScriptRuntime


  • public class ScriptRuntime
    extends java.lang.Object
    This is the class that implements the run-time.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static double NaN  
      static double negativeZero  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ScriptRuntime()
      No instances should be created.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String escapeString​(java.lang.String s)  
      static java.lang.String escapeString​(java.lang.String s, char escapeQuote)
      For escaping strings printed by object and array literals; not quite the same as 'escape.'
      static java.lang.String getMessage​(java.lang.String messageId, java.lang.Object[] arguments)  
      static java.lang.String getMessage0​(java.lang.String messageId)  
      static java.lang.String getMessage1​(java.lang.String messageId, java.lang.Object arg1)  
      static boolean isJSLineTerminator​(int c)  
      static long testUint32String​(java.lang.String str)
      If str is a decimal presentation of Uint32 value, return it as long.
      • Methods inherited from class java.lang.Object

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

      • NaN

        public static final double NaN
      • negativeZero

        public static final double negativeZero
    • Constructor Detail

      • ScriptRuntime

        protected ScriptRuntime()
        No instances should be created.
    • Method Detail

      • isJSLineTerminator

        public static boolean isJSLineTerminator​(int c)
      • escapeString

        public static java.lang.String escapeString​(java.lang.String s)
      • escapeString

        public static java.lang.String escapeString​(java.lang.String s,
                                                    char escapeQuote)
        For escaping strings printed by object and array literals; not quite the same as 'escape.'
      • testUint32String

        public static long testUint32String​(java.lang.String str)
        If str is a decimal presentation of Uint32 value, return it as long. Otherwise, return -1L;
      • getMessage0

        public static java.lang.String getMessage0​(java.lang.String messageId)
      • getMessage1

        public static java.lang.String getMessage1​(java.lang.String messageId,
                                                   java.lang.Object arg1)
      • getMessage

        public static java.lang.String getMessage​(java.lang.String messageId,
                                                  java.lang.Object[] arguments)