public static class Buffer.BufferImpl extends AbstractIdObject<Buffer.BufferImpl>
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASS_NAME |
Id_constructor| Constructor and Description |
|---|
Buffer.BufferImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
anonymousCall(int id,
org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope,
Object thisObj,
Object[] args)
Subclasses may override this method to implement a function that does not necessarily depend
on the value of "this" in the current scope.
|
protected Buffer.BufferImpl |
defaultConstructor()
Subclasses must override this function.
|
protected Buffer.BufferImpl |
defaultConstructor(org.mozilla.javascript.Context cx,
Object[] args)
The constructor for this class delegates mostly to the JavaScript constructor code.
|
protected void |
fillConstructorProperties(org.mozilla.javascript.IdFunctionObject c) |
int |
get(int index) |
Object |
get(int index,
org.mozilla.javascript.Scriptable start) |
byte[] |
getArray() |
int |
getArrayOffset() |
ByteBuffer |
getBuffer() |
String |
getClassName() |
protected Object |
getInstanceIdValue(int id) |
int |
getLength() |
String |
getString(String encoding) |
boolean |
has(int index,
org.mozilla.javascript.Scriptable start) |
static Buffer.BufferImpl |
newBuffer(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope,
byte[] bb) |
static Buffer.BufferImpl |
newBuffer(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope,
byte[] bb,
int offset,
int length) |
static Buffer.BufferImpl |
newBuffer(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope,
ByteBuffer bb,
boolean copy)
Read the bytes from the corresponding buffer into this one.
|
protected Object |
prototypeCall(int id,
org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope,
Object[] args)
Subclasses may override this method to implement a prototype function.
|
void |
put(int i,
org.mozilla.javascript.Scriptable start,
Object value) |
execIdCall, exportAsClass, findInstanceIdInfo, findPrototypeId, getInstanceIdName, getMaxInstanceId, initPrototypeIdactivatePrototypeMap, addIdFunctionProperty, defaultGet, defaultHas, defaultPut, defineOwnProperty, delete, exportAsJSClass, get, getAttributes, getOwnPropertyDescriptor, has, hasPrototypeMap, incompatibleCallError, initPrototypeConstructor, initPrototypeMethod, initPrototypeValue, instanceIdInfo, put, setAttributes, setInstanceIdAttributes, setInstanceIdValueapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, equivalentValues, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, hasInstance, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, sizepublic static final String CLASS_NAME
protected Buffer.BufferImpl defaultConstructor()
AbstractIdObjectdefaultConstructor in class AbstractIdObject<Buffer.BufferImpl>protected Buffer.BufferImpl defaultConstructor(org.mozilla.javascript.Context cx, Object[] args)
defaultConstructor in class AbstractIdObject<Buffer.BufferImpl>protected void fillConstructorProperties(org.mozilla.javascript.IdFunctionObject c)
fillConstructorProperties in class org.mozilla.javascript.IdScriptableObjectprotected Object getInstanceIdValue(int id)
getInstanceIdValue in class org.mozilla.javascript.IdScriptableObjectprotected Object prototypeCall(int id, org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, Object[] args)
AbstractIdObjectprototypeCall in class AbstractIdObject<Buffer.BufferImpl>protected Object anonymousCall(int id, org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, Object thisObj, Object[] args)
AbstractIdObjectanonymousCall in class AbstractIdObject<Buffer.BufferImpl>public static Buffer.BufferImpl newBuffer(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, ByteBuffer bb, boolean copy)
public static Buffer.BufferImpl newBuffer(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, byte[] bb)
public static Buffer.BufferImpl newBuffer(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, byte[] bb, int offset, int length)
public ByteBuffer getBuffer()
public byte[] getArray()
public int getArrayOffset()
public String getClassName()
getClassName in interface org.mozilla.javascript.ScriptablegetClassName in class AbstractIdObject<Buffer.BufferImpl>public Object get(int index, org.mozilla.javascript.Scriptable start)
get in interface org.mozilla.javascript.Scriptableget in class org.mozilla.javascript.ScriptableObjectpublic int get(int index)
public boolean has(int index,
org.mozilla.javascript.Scriptable start)
has in interface org.mozilla.javascript.Scriptablehas in class org.mozilla.javascript.ScriptableObjectpublic void put(int i,
org.mozilla.javascript.Scriptable start,
Object value)
put in interface org.mozilla.javascript.Scriptableput in class org.mozilla.javascript.ScriptableObjectpublic int getLength()
Copyright © 2016 Apigee Corporation. All Rights Reserved.