Class ButterflyScriptableObject

  • All Implemented Interfaces:
    Serializable, org.mozilla.javascript.ConstProperties, org.mozilla.javascript.debug.DebuggableObject, org.mozilla.javascript.Scriptable
    Direct Known Subclasses:
    ScriptableButterfly

    public abstract class ButterflyScriptableObject
    extends org.mozilla.javascript.ScriptableObject
    This class extends the default Rhino scriptable object to provide some convenience methods.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected ButterflyModule _module  
      protected org.apache.commons.collections.ExtendedProperties _properties  
      • Fields inherited from class org.mozilla.javascript.ScriptableObject

        CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
      • Fields inherited from interface org.mozilla.javascript.Scriptable

        NOT_FOUND
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()  
      abstract String getClassName()  
      void init​(ButterflyModule module)  
      static Object unwrap​(Object obj)  
      static Object wrap​(Object obj, org.mozilla.javascript.Scriptable scope)  
      • Methods inherited from class org.mozilla.javascript.ScriptableObject

        associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, get, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isConst, isGetterOrSetter, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype
    • Field Detail

      • _properties

        protected org.apache.commons.collections.ExtendedProperties _properties
    • Constructor Detail

      • ButterflyScriptableObject

        public ButterflyScriptableObject()
    • Method Detail

      • destroy

        public void destroy()
      • getClassName

        public abstract String getClassName()
        Specified by:
        getClassName in interface org.mozilla.javascript.Scriptable
        Specified by:
        getClassName in class org.mozilla.javascript.ScriptableObject
      • wrap

        public static Object wrap​(Object obj,
                                  org.mozilla.javascript.Scriptable scope)