Class Environment

    • Constructor Detail

      • Environment

        public Environment()
    • Method Detail

      • getClassName

        public java.lang.String getClassName()
        Description copied from class: ScriptableObject
        Return the name of the class. This is typically the same name as the constructor. Classes extending ScriptableObject must implement this abstract method.
        Specified by:
        getClassName in interface Scriptable
        Specified by:
        getClassName in class ScriptableObject
      • get

        public java.lang.Object get​(java.lang.String name,
                                    Scriptable start)
        Description copied from class: ScriptableObject
        Returns the value of the named property or NOT_FOUND. If the property was created using defineProperty, the appropriate getter method is called.
        Specified by:
        get in interface Scriptable
        Overrides:
        get in class ScriptableObject
        Parameters:
        name - the name of the property
        start - the object in which the lookup began
        Returns:
        the value of the property (may be null), or NOT_FOUND
        See Also:
        Context.getUndefinedValue()
      • getIds

        public java.lang.Object[] getIds()
        Description copied from class: ScriptableObject
        Returns an array of ids for the properties of the object.

        Any properties with the attribute DONTENUM are not listed.

        Specified by:
        getIds in interface Scriptable
        Overrides:
        getIds in class ScriptableObject
        Returns:
        an array of java.lang.Objects with an entry for every listed property. Properties accessed via an integer index will have a corresponding Integer entry in the returned array. Properties accessed by a String will have a String entry in the returned array.
      • getAllIds

        public java.lang.Object[] getAllIds()
        Description copied from class: ScriptableObject
        Returns an array of ids for the properties of the object.

        All properties, even those with attribute DONTENUM, are listed.

        Specified by:
        getAllIds in interface DebuggableObject
        Overrides:
        getAllIds in class ScriptableObject
        Returns:
        an array of java.lang.Objects with an entry for every listed property. Properties accessed via an integer index will have a corresponding Integer entry in the returned array. Properties accessed by a String will have a String entry in the returned array.