Class JSGuards
java.lang.Object
com.oracle.truffle.js.nodes.JSGuards
-
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?> getClassIfJSDynamicObject(Object object) static Class<?> getClassIfJSObject(Object object) static booleanhasOverloadedOperators(Object value) static booleanisArgumentsDisconnected(JSArgumentsObject argumentsArray) static booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanisCallable(Object reviver) static booleanisCallableProxy(JSDynamicObject proxy) static booleanisDoubleInInt32Range(double value) static booleanisDoubleLargerThan2e32(double d) static booleanisDoubleRepresentableAsLong(double d) static booleanisDoubleSafeInteger(double d) static booleanstatic booleanisForeignObject(Object value) static booleanstatic booleanisIntArrayIndex(int i) static booleanisJavaArray(Object value) static booleanisJavaNumber(Object operand) static booleanisJavaPackage(Object target) static booleanisJavaPrimitive(Object value) static booleanisJavaPrimitiveNumber(Object value) static booleanisJSAdapter(Object object) static booleanisJSArgumentsObject(Object value) static booleanstatic booleanisJSArrayBufferView(Object thisObj) static booleanisJSBigInt(Object value) static booleanisJSBoolean(Object value) static booleanisJSCollator(Object value) static booleanstatic booleanisJSDateTimeFormat(Object value) static booleanisJSDirectArrayBuffer(Object thisObj) static booleanisJSDisplayNames(Object value) static booleanisJSDynamicObject(Object value) Like isJSObject, but including Null and Undefined.static booleanisJSFastArgumentsObject(Object value) static booleanisJSFastArray(Object value) static booleanisJSFinalizationRegistry(Object value) static booleanisJSFunction(Object value) static booleanisJSFunctionShape(com.oracle.truffle.api.object.Shape shape) static booleanisJSHeapArrayBuffer(Object thisObj) static booleanisJSInteropArrayBuffer(Object thisObj) static booleanisJSListFormat(Object value) static booleanisJSLocale(Object value) static booleanstatic booleanisJSModuleNamespace(Object value) static booleanstatic booleanisJSNumber(Object value) static booleanisJSNumberFormat(Object value) static booleanisJSObject(Object value) Checks if this value is a JSObject; this excludes Null and Undefined, and foreign objects (values from other languages).static booleanisJSObjectPrototype(Object value) static booleanisJSOrdinaryObject(Object value) static booleanisJSPluralRules(Object value) static booleanstatic booleanisJSRegExp(Object value) static booleanisJSRelativeTimeFormat(Object value) static booleanisJSSegmenter(Object value) static booleanisJSSegmentIterator(Object value) static booleanisJSSegments(Object value) static booleanstatic booleanisJSSharedArrayBuffer(Object thisObj) static booleanisJSString(Object value) static booleanisJSSymbol(Object value) static booleanisJSTemporalCalendarHolder(Object value) static booleanisJSTemporalDuration(Object value) static booleanisJSTemporalInstant(Object value) static booleanisJSTemporalMonthDay(Object value) static booleanisJSTemporalPlainDate(Object value) static booleanisJSTemporalPlainDateTime(Object value) static booleanisJSTemporalPlainTime(Object value) static booleanisJSTemporalYearMonth(Object value) static booleanisJSTemporalZonedDateTime(Object value) static booleanisJSWeakMap(Object value) static booleanisJSWeakRef(Object value) static booleanisJSWeakSet(Object value) static booleanisJSWebAssemblyModule(Object object) static booleanisLongArrayIndex(long i) static booleanisLongRepresentableAsInt32(long value) static booleanisNullOrUndefined(Object value) static booleanstatic booleanisNumberDouble(Object operand) static booleanisNumberInteger(Object operand) static booleanisNumberLong(Object operand) static booleanisReferenceEquals(Object a, Object b) static booleanstatic booleanisStringString(Object operand, Object operand2) static booleanstatic booleanisTruffleObject(Object value) static booleanisTruffleString(Object value) static booleanisUndefined(Object value) static booleanisValidPrototype(Object prototype) static booleanlongFitsInDouble(long value) static booleanstringEquals(com.oracle.truffle.api.strings.TruffleString.EqualNode node, com.oracle.truffle.api.strings.TruffleString a, com.oracle.truffle.api.strings.TruffleString b) static intstringLength(com.oracle.truffle.api.strings.TruffleString operand)
-
Method Details
-
isJSObject
Checks if this value is a JSObject; this excludes Null and Undefined, and foreign objects (values from other languages). -
isJSDynamicObject
Like isJSObject, but including Null and Undefined. -
isTruffleObject
-
isTruffleString
-
isForeignObject
-
isUndefined
-
isJSNull
-
isJSFunction
-
isJSFunctionShape
public static boolean isJSFunctionShape(com.oracle.truffle.api.object.Shape shape) -
isCallable
-
isCallableProxy
-
isJSString
-
isJSNumber
-
isJSBigInt
-
isJSBoolean
-
isJSDate
-
isJSArray
-
isJSArgumentsObject
-
isJSRegExp
-
isJSOrdinaryObject
-
isJSDateTimeFormat
-
isJSCollator
-
isJSListFormat
-
isJSNumberFormat
-
isJSPluralRules
-
isJSRelativeTimeFormat
-
isJSSegmenter
-
isJSSegments
-
isJSSegmentIterator
-
isJSDisplayNames
-
isJSLocale
-
isNumber
-
isJavaNumber
-
isNumberInteger
-
isNumberLong
-
isNumberDouble
-
isString
-
isStringString
-
stringLength
public static int stringLength(com.oracle.truffle.api.strings.TruffleString operand) -
stringEquals
public static boolean stringEquals(com.oracle.truffle.api.strings.TruffleString.EqualNode node, com.oracle.truffle.api.strings.TruffleString a, com.oracle.truffle.api.strings.TruffleString b) -
isBoolean
-
isSymbol
-
isJSHeapArrayBuffer
-
isJSDirectArrayBuffer
-
isJSInteropArrayBuffer
-
isJSArrayBufferView
-
isJSFastArray
-
isJSProxy
-
isJSFastArgumentsObject
-
isJSObjectPrototype
-
isJSSymbol
-
isJSTemporalPlainTime
-
isJSTemporalPlainDate
-
isJSTemporalPlainDateTime
-
isJSTemporalYearMonth
-
isJSTemporalMonthDay
-
isJSTemporalDuration
-
isJSTemporalInstant
-
isJSTemporalZonedDateTime
-
isJSTemporalCalendarHolder
-
isJSMap
-
isJSSet
-
isJSWeakRef
-
isJSFinalizationRegistry
-
isJSWeakMap
-
isJSWeakSet
-
isJSModuleNamespace
-
isJSAdapter
-
isJSWebAssemblyModule
-
isValidPrototype
-
isJavaPackage
-
isJavaArray
-
isBigInt
-
isBigIntZero
-
isBigIntNegativeVal
-
isDoubleInInt32Range
public static boolean isDoubleInInt32Range(double value) -
isDoubleLargerThan2e32
public static boolean isDoubleLargerThan2e32(double d) -
isLongRepresentableAsInt32
public static boolean isLongRepresentableAsInt32(long value) -
isDoubleRepresentableAsLong
public static boolean isDoubleRepresentableAsLong(double d) -
isDoubleSafeInteger
public static boolean isDoubleSafeInteger(double d) -
isIntArrayIndex
public static boolean isIntArrayIndex(int i) -
isLongArrayIndex
public static boolean isLongArrayIndex(long i) -
isBigIntArrayIndex
-
isArgumentsDisconnected
-
getClassIfJSObject
-
getClassIfJSDynamicObject
-
isReferenceEquals
-
isJavaPrimitive
-
isJavaPrimitiveNumber
-
isForeignObjectOrNumber
-
isForeignNumber
-
isNullOrUndefined
-
hasOverloadedOperators
-
longFitsInDouble
public static boolean longFitsInDouble(long value)
-