Class NativeJavaMap

java.lang.Object
org.mozilla.javascript.NativeJavaObject
org.eclipse.birt.core.script.NativeJavaMap
All Implemented Interfaces:
Serializable, org.mozilla.javascript.Scriptable, org.mozilla.javascript.SymbolScriptable, org.mozilla.javascript.Wrapper
Direct Known Subclasses:
NativeJavaLinkedHashMap

public class NativeJavaMap extends org.mozilla.javascript.NativeJavaObject
Represents the scriptable object for Java object which implements the interface Map.
See Also:
  • Field Summary

    Fields inherited from class org.mozilla.javascript.NativeJavaObject

    isAdapter, javaObject, members, parent, prototype, staticType

    Fields inherited from interface org.mozilla.javascript.Scriptable

    NOT_FOUND
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    NativeJavaMap(org.mozilla.javascript.Scriptable scope, Object javaObject, Class staticType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(String name)
     
    get(int index, org.mozilla.javascript.Scriptable start)
     
    get(String name, org.mozilla.javascript.Scriptable start)
     
     
    boolean
    has(String name, org.mozilla.javascript.Scriptable start)
     
    void
    put(int index, org.mozilla.javascript.Scriptable start, Object value)
     
    void
    put(String name, org.mozilla.javascript.Scriptable start, Object value)
     

    Methods inherited from class org.mozilla.javascript.NativeJavaObject

    canConvert, coerceType, createInterfaceAdapter, delete, delete, equals, get, getClassName, getDefaultValue, getParentScope, getPrototype, has, has, hashCode, hasInstance, initMembers, put, setParentScope, setPrototype, unwrap, wrap

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NativeJavaMap

      public NativeJavaMap()
    • NativeJavaMap

      public NativeJavaMap(org.mozilla.javascript.Scriptable scope, Object javaObject, Class staticType)
  • Method Details

    • has

      public boolean has(String name, org.mozilla.javascript.Scriptable start)
      Specified by:
      has in interface org.mozilla.javascript.Scriptable
      Overrides:
      has in class org.mozilla.javascript.NativeJavaObject
    • get

      public Object get(String name, org.mozilla.javascript.Scriptable start)
      Specified by:
      get in interface org.mozilla.javascript.Scriptable
      Overrides:
      get in class org.mozilla.javascript.NativeJavaObject
    • put

      public void put(String name, org.mozilla.javascript.Scriptable start, Object value)
      Specified by:
      put in interface org.mozilla.javascript.Scriptable
      Overrides:
      put in class org.mozilla.javascript.NativeJavaObject
    • delete

      public void delete(String name)
      Specified by:
      delete in interface org.mozilla.javascript.Scriptable
      Overrides:
      delete in class org.mozilla.javascript.NativeJavaObject
    • get

      public Object get(int index, org.mozilla.javascript.Scriptable start)
      Specified by:
      get in interface org.mozilla.javascript.Scriptable
      Overrides:
      get in class org.mozilla.javascript.NativeJavaObject
    • put

      public void put(int index, org.mozilla.javascript.Scriptable start, Object value)
      Specified by:
      put in interface org.mozilla.javascript.Scriptable
      Overrides:
      put in class org.mozilla.javascript.NativeJavaObject
    • getIds

      public Object[] getIds()
      Specified by:
      getIds in interface org.mozilla.javascript.Scriptable
      Overrides:
      getIds in class org.mozilla.javascript.NativeJavaObject