Class ScriptRuntime.StringIdOrIndex

java.lang.Object
org.mozilla.javascript.ScriptRuntime.StringIdOrIndex
Enclosing class:
ScriptRuntime

public static final class ScriptRuntime.StringIdOrIndex extends Object
Helper to return a string or an integer. Always use a null check on s.stringId to determine if the result is string or integer.
See Also:
  • Method Details

    • getStringId

      public String getStringId()
    • getIndex

      public int getIndex()