Class JSMetaType
java.lang.Object
com.oracle.truffle.js.runtime.interop.JSMetaType
- All Implemented Interfaces:
com.oracle.truffle.api.interop.TruffleObject
public final class JSMetaType
extends Object
implements com.oracle.truffle.api.interop.TruffleObject
General meta objects for JS values and foreign objects through
JavaScriptLanguageView.
Note that JS objects usually return their constructor function object as the meta object.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JSMetaTypestatic final JSMetaTypestatic final JSMetaTypestatic final JSMetaTypestatic final JSMetaTypestatic final JSMetaTypestatic final JSMetaTypestatic final JSMetaTypestatic final JSMetaTypestatic final JSMetaTypestatic final JSMetaTypestatic final JSMetaTypestatic final JSMetaType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisInstance(Object instance, com.oracle.truffle.api.interop.InteropLibrary interop) Checks whetherinstanceis of this meta type.toString()
-
Field Details
-
NULL
-
BOOLEAN
-
STRING
-
NUMBER
-
FUNCTION
-
DATE
-
ARRAY
-
OBJECT
-
JS_NULL
-
JS_UNDEFINED
-
JS_BIGINT
-
JS_SYMBOL
-
JS_PROXY
-
-
Constructor Details
-
JSMetaType
-
-
Method Details
-
isInstance
Checks whetherinstanceis of this meta type. If used on the fast path theJSMetaTypeis required to be a PE-constant. -
getTypeName
-
toString
-