Class JSSegmenter
java.lang.Object
com.oracle.truffle.js.runtime.builtins.JSClass
com.oracle.truffle.js.runtime.builtins.JSNonProxy
com.oracle.truffle.js.runtime.builtins.intl.JSSegmenter
- All Implemented Interfaces:
JSConstructorFactory,JSConstructorFactory.WithFunctions,PrototypeSupplier
public final class JSSegmenter
extends JSNonProxy
implements JSConstructorFactory.WithFunctions, PrototypeSupplier
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic classstatic classNested classes/interfaces inherited from interface com.oracle.truffle.js.runtime.builtins.JSConstructorFactory
JSConstructorFactory.Default, JSConstructorFactory.WithFunctions, JSConstructorFactory.WithFunctionsAndSpecies -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.oracle.truffle.api.strings.TruffleStringstatic final JSSegmenterstatic final com.oracle.truffle.api.strings.TruffleStringstatic final com.oracle.truffle.api.strings.TruffleStringstatic final com.oracle.truffle.api.strings.TruffleStringstatic final com.oracle.truffle.api.strings.TruffleStringstatic final com.oracle.truffle.api.strings.TruffleStringFields inherited from class com.oracle.truffle.js.runtime.builtins.JSNonProxy
GET_SYMBOL_SPECIES_NAME -
Method Summary
Modifier and TypeMethodDescriptionstatic JSSegmenterObjectcreate(JSContext context, JSRealm realm, JSDynamicObject proto) static org.graalvm.shadowed.com.ibm.icu.text.BreakIteratorcreateBreakIterator(JSSegmenterObject segmenterObj) static org.graalvm.shadowed.com.ibm.icu.text.BreakIteratorcreateBreakIterator(JSSegmenterObject segmenterObj, String text) static JSConstructorcreateConstructor(JSRealm realm) createPrototype(JSRealm realm, JSFunctionObject ctor) static JSSegmentIteratorObjectcreateSegmentIterator(JSContext context, JSRealm realm, JSSegmenterObject segmenter, com.oracle.truffle.api.strings.TruffleString value) static JSObjectCreates the %SegmentIteratorPrototype% object.static JSSegmentsObjectcreateSegments(JSContext context, JSRealm realm, JSSegmenterObject segmenter, com.oracle.truffle.api.strings.TruffleString string) static JSObjectcreateSegmentsPrototype(JSRealm realm) com.oracle.truffle.api.strings.TruffleStringstatic JSSegmenter.GranularitygetGranularity(JSSegmenterObject segmenterObj) getIntrinsicDefaultProto(JSRealm realm) Allows invokevirtual of this method instead of invokeinterface.static booleanisJSSegmenter(Object obj) static booleanstatic booleanisJSSegments(Object obj) com.oracle.truffle.api.object.ShapemakeInitialShape(JSContext ctx, JSDynamicObject prototype) static JSObjectresolvedOptions(JSContext context, JSRealm realm, JSSegmenterObject segmenterObj) static voidsetLocale(JSContext ctx, JSSegmenter.InternalState state, String[] locales) static voidsetupInternalBreakIterator(JSSegmenter.InternalState state, String granularity) Methods inherited from class com.oracle.truffle.js.runtime.builtins.JSNonProxy
checkProtoCycle, createSymbolSpeciesGetterFunction, defineOwnProperty, delete, delete, deletePropertyDefault, getHelper, getHelper, getMethodHelper, getOwnHelper, getOwnHelper, getOwnProperty, getOwnPropertyKeys, getPrototypeOf, hasOnlyShapeProperties, hasOwnProperty, hasOwnProperty, hasProperty, hasProperty, invokeAccessorPropertySetter, isExtensible, ordinaryGetOwnProperty, ordinaryGetOwnPropertyIntl, ordinaryIsExtensible, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeysSlow, ordinaryPreventExtensions, ordinarySet, ordinarySetIndex, ordinarySetWithReceiver, performOrdinarySetWithOwnDescriptor, preventExtensions, putConstructorSpeciesGetter, set, set, setIntegrityLevelFast, setPropertySlow, setPrototypeOf, testIntegrityLevelFast, usesOrdinaryGetOwnProperty, usesOrdinaryIsExtensibleMethods inherited from class com.oracle.truffle.js.runtime.builtins.JSClass
filterOwnPropertyKeys, get, get, isInstance, isInstance, isInstance, isInstance, ownPropertyKeys, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.oracle.truffle.js.runtime.builtins.JSConstructorFactory
createConstructorObject, fillConstructorMethods inherited from interface com.oracle.truffle.js.runtime.builtins.JSConstructorFactory.WithFunctions
createConstructorAndPrototype
-
Field Details
-
CLASS_NAME
public static final com.oracle.truffle.api.strings.TruffleString CLASS_NAME -
PROTOTYPE_NAME
public static final com.oracle.truffle.api.strings.TruffleString PROTOTYPE_NAME -
SEGMENTS_PROTOTYPE_NAME
public static final com.oracle.truffle.api.strings.TruffleString SEGMENTS_PROTOTYPE_NAME -
ITERATOR_CLASS_NAME
public static final com.oracle.truffle.api.strings.TruffleString ITERATOR_CLASS_NAME -
ITERATOR_PROTOTYPE_NAME
public static final com.oracle.truffle.api.strings.TruffleString ITERATOR_PROTOTYPE_NAME -
TO_STRING_TAG
public static final com.oracle.truffle.api.strings.TruffleString TO_STRING_TAG -
INSTANCE
-
-
Method Details
-
isJSSegmenter
-
getClassName
public com.oracle.truffle.api.strings.TruffleString getClassName()- Specified by:
getClassNamein interfaceJSConstructorFactory
-
createPrototype
- Specified by:
createPrototypein interfaceJSConstructorFactory
-
makeInitialShape
public com.oracle.truffle.api.object.Shape makeInitialShape(JSContext ctx, JSDynamicObject prototype) - Overrides:
makeInitialShapein classJSClass
-
createConstructor
-
create
-
createSegmentIterator
public static JSSegmentIteratorObject createSegmentIterator(JSContext context, JSRealm realm, JSSegmenterObject segmenter, com.oracle.truffle.api.strings.TruffleString value) -
createSegments
public static JSSegmentsObject createSegments(JSContext context, JSRealm realm, JSSegmenterObject segmenter, com.oracle.truffle.api.strings.TruffleString string) -
setLocale
-
setupInternalBreakIterator
-
createBreakIterator
public static org.graalvm.shadowed.com.ibm.icu.text.BreakIterator createBreakIterator(JSSegmenterObject segmenterObj) -
createBreakIterator
public static org.graalvm.shadowed.com.ibm.icu.text.BreakIterator createBreakIterator(JSSegmenterObject segmenterObj, String text) -
getGranularity
-
resolvedOptions
public static JSObject resolvedOptions(JSContext context, JSRealm realm, JSSegmenterObject segmenterObj) -
getIntrinsicDefaultProto
Description copied from class:JSClassAllows invokevirtual of this method instead of invokeinterface. Classes overriding this method should implementPrototypeSupplier.- Specified by:
getIntrinsicDefaultProtoin interfacePrototypeSupplier- Overrides:
getIntrinsicDefaultProtoin classJSClass- See Also:
-
isJSSegments
-
createSegmentsPrototype
-
isJSSegmentIterator
-
createSegmentIteratorPrototype
-