Class CodeFunction
java.lang.Object
me.topchetoeu.j2s.runtime.values.objects.ObjectValue
me.topchetoeu.j2s.runtime.values.functions.FunctionValue
me.topchetoeu.j2s.runtime.values.functions.CodeFunction
- All Implemented Interfaces:
Value
-
Nested Class Summary
Nested classes/interfaces inherited from class me.topchetoeu.j2s.runtime.values.objects.ObjectValue
ObjectValue.Property, ObjectValue.PrototypeProvider
Nested classes/interfaces inherited from interface me.topchetoeu.j2s.runtime.values.Value
Value.State
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal me.topchetoeu.j2s.common.FunctionBody
final Value[][]
me.topchetoeu.j2s.common.Environment
Fields inherited from class me.topchetoeu.j2s.runtime.values.functions.FunctionValue
enableApply, enableConstruct, length, name, prototype
Fields inherited from interface me.topchetoeu.j2s.runtime.values.Value
ARRAY_PROTO, BOOL_PROTO, ERROR_PROTO, FUNCTION_PROTO, GLOBAL, INT32_ARR_PROTO, INT8_ARR_PROTO, INTRINSICS, NULL, NUMBER_PROTO, OBJECT_PROTO, RANGE_ERR_PROTO, STRING_PROTO, SYMBOL_PROTO, SYNTAX_ERR_PROTO, TYPE_ERR_PROTO, UINT8_ARR_PROTO, UNDEFINED
-
Constructor Summary
ConstructorsConstructorDescriptionCodeFunction
(me.topchetoeu.j2s.common.Environment env, String name, me.topchetoeu.j2s.common.FunctionBody body, Value[][] captures) -
Method Summary
Methods inherited from class me.topchetoeu.j2s.runtime.values.functions.FunctionValue
apply, construct, deleteOwnMember, getOwnMember, setName, toReadableLines, toString, type
Methods inherited from class me.topchetoeu.j2s.runtime.values.objects.ObjectValue
defineOwnField, defineOwnProperty, freeze, getOwnMembers, getOwnSymbolMembers, getPrototype, getState, isPrimitive, preventExtensions, seal, setPrototype, setPrototype, setPrototype, toBoolean, toNumber, toPrimitive, toReadableLines, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface me.topchetoeu.j2s.runtime.values.Value
callWith, callWithAsync, constructNoSelf, defineOwnField, defineOwnField, defineOwnField, defineOwnField, defineOwnField, defineOwnField, defineOwnField, defineOwnField, defineOwnField, defineOwnProperty, defineOwnProperty, defineOwnProperty, defineOwnProperty, deleteMember, deleteMember, deleteMember, deleteMember, deleteMember, deleteOwnMember, deleteOwnMember, deleteOwnMember, deleteOwnMember, getMember, getMember, getMember, getMember, getMember, getMemberDescriptor, getMemberOrNull, getMemberOrNull, getMemberOrNull, getMemberOrNull, getMemberOrNull, getMemberPath, getMemberPath, getMembers, getOwnMember, getOwnMember, getOwnMember, getOwnMember, getSymbolMembers, hasMember, hasMember, hasMember, hasMember, hasMember, isInstanceOf, isNaN, setMember, setMember, setMember, setMember, setMember, setMemberIfExists, setMemberIfExists, setMemberIfExists, setMemberIfExists, setMemberIfExists, toIterable, toReadable
-
Field Details
-
body
public final me.topchetoeu.j2s.common.FunctionBody body -
captures
-
env
public me.topchetoeu.j2s.common.Environment env
-
-
Constructor Details
-
CodeFunction
-
-
Method Details
-
onApply
- Specified by:
onApply
in classFunctionValue
-
onConstruct
- Specified by:
onConstruct
in classFunctionValue
-