org.apache.sling.scripting.javascript.wrapper
Class ScriptablePrintWriter

java.lang.Object
  extended by org.mozilla.javascript.ScriptableObject
      extended by org.apache.sling.scripting.javascript.wrapper.ScriptablePrintWriter
All Implemented Interfaces:
Serializable, SlingWrapper, org.mozilla.javascript.ConstProperties, org.mozilla.javascript.debug.DebuggableObject, org.mozilla.javascript.Scriptable, org.mozilla.javascript.Wrapper

public class ScriptablePrintWriter
extends org.mozilla.javascript.ScriptableObject
implements SlingWrapper

See Also:
Serialized Form

Field Summary
static String CLASSNAME
           
static Class<?>[] WRAPPED_CLASSES
           
 
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
 
Constructor Summary
ScriptablePrintWriter()
           
ScriptablePrintWriter(PrintWriter writer)
           
 
Method Summary
 String getClassName()
          The name of the JavaScript host object "class"
 Class<?>[] getWrappedClasses()
          The list of Java classes wrapped by this wrapper
 void jsConstructor(Object res)
           
static void jsFunction_print(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj)
           
static void jsFunction_printf(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj)
           
static void jsFunction_println(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj)
           
static void jsFunction_write(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj)
           
 Object unwrap()
           
 
Methods inherited from class org.mozilla.javascript.ScriptableObject
associateValue, 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, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASSNAME

public static final String CLASSNAME
See Also:
Constant Field Values

WRAPPED_CLASSES

public static final Class<?>[] WRAPPED_CLASSES
Constructor Detail

ScriptablePrintWriter

public ScriptablePrintWriter()

ScriptablePrintWriter

public ScriptablePrintWriter(PrintWriter writer)
Method Detail

jsConstructor

public void jsConstructor(Object res)

getClassName

public String getClassName()
Description copied from interface: SlingWrapper
The name of the JavaScript host object "class"

Specified by:
getClassName in interface SlingWrapper
Specified by:
getClassName in interface org.mozilla.javascript.Scriptable
Specified by:
getClassName in class org.mozilla.javascript.ScriptableObject

getWrappedClasses

public Class<?>[] getWrappedClasses()
Description copied from interface: SlingWrapper
The list of Java classes wrapped by this wrapper

Specified by:
getWrappedClasses in interface SlingWrapper

jsFunction_write

public static void jsFunction_write(org.mozilla.javascript.Context cx,
                                    org.mozilla.javascript.Scriptable thisObj,
                                    Object[] args,
                                    org.mozilla.javascript.Function funObj)

jsFunction_print

public static void jsFunction_print(org.mozilla.javascript.Context cx,
                                    org.mozilla.javascript.Scriptable thisObj,
                                    Object[] args,
                                    org.mozilla.javascript.Function funObj)

jsFunction_printf

public static void jsFunction_printf(org.mozilla.javascript.Context cx,
                                     org.mozilla.javascript.Scriptable thisObj,
                                     Object[] args,
                                     org.mozilla.javascript.Function funObj)

jsFunction_println

public static void jsFunction_println(org.mozilla.javascript.Context cx,
                                      org.mozilla.javascript.Scriptable thisObj,
                                      Object[] args,
                                      org.mozilla.javascript.Function funObj)

unwrap

public Object unwrap()
Specified by:
unwrap in interface org.mozilla.javascript.Wrapper


Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.