public final class JSSegmenter extends JSNonProxy implements JSConstructorFactory.WithFunctions, PrototypeSupplier
usesOrdinaryGetOwnProperty| Modifier and Type | Class and Description |
|---|---|
static class |
JSSegmenter.Granularity |
static class |
JSSegmenter.InternalState |
static class |
JSSegmenter.IteratorState |
JSConstructorFactory.Default, JSConstructorFactory.WithFunctions, JSConstructorFactory.WithFunctionsAndSpecies| Modifier and Type | Field and Description |
|---|---|
static String |
CLASS_NAME |
static JSSegmenter |
INSTANCE |
static String |
ITERATOR_CLASS_NAME |
static String |
ITERATOR_PROTOTYPE_NAME |
static String |
PROTOTYPE_NAME |
EMPTY_STRING_ARRAY| Modifier and Type | Method and Description |
|---|---|
static com.oracle.truffle.api.object.DynamicObject |
create(JSContext context) |
static com.ibm.icu.text.BreakIterator |
createBreakIterator(com.oracle.truffle.api.object.DynamicObject segmenterObj,
String text) |
static JSConstructor |
createConstructor(JSRealm realm) |
com.oracle.truffle.api.object.DynamicObject |
createPrototype(JSRealm realm,
com.oracle.truffle.api.object.DynamicObject ctor) |
static com.oracle.truffle.api.object.DynamicObject |
createSegmentIterator(JSContext context,
com.oracle.truffle.api.object.DynamicObject segmenter,
String value) |
static com.oracle.truffle.api.object.DynamicObject |
createSegmentIteratorPrototype(JSContext context,
JSRealm realm)
Creates the %SegmentIteratorPrototype% object.
|
String |
getClassName() |
String |
getClassName(com.oracle.truffle.api.object.DynamicObject object)
The [[Class]] internal property.
|
static JSSegmenter.Granularity |
getGranularity(com.oracle.truffle.api.object.DynamicObject segmenterObj) |
static JSSegmenter.InternalState |
getInternalState(com.oracle.truffle.api.object.DynamicObject segmenterObj) |
com.oracle.truffle.api.object.DynamicObject |
getIntrinsicDefaultProto(JSRealm realm) |
static boolean |
isJSSegmenter(Object obj) |
static boolean |
isJSSegmenterIterator(Object obj) |
static com.oracle.truffle.api.object.Shape |
makeInitialSegmentIteratorShape(JSContext ctx,
com.oracle.truffle.api.object.DynamicObject prototype) |
com.oracle.truffle.api.object.Shape |
makeInitialShape(JSContext ctx,
com.oracle.truffle.api.object.DynamicObject prototype) |
static com.oracle.truffle.api.object.DynamicObject |
resolvedOptions(JSContext context,
com.oracle.truffle.api.object.DynamicObject segmenterObj) |
static void |
setLocale(JSContext ctx,
JSSegmenter.InternalState state,
String[] locales) |
static void |
setupInternalBreakIterator(JSSegmenter.InternalState state,
String granularity) |
checkProtoCycle, createSymbolSpeciesGetterFunction, defineOwnProperty, delete, delete, deletePropertyDefault, getBuiltinToStringTag, getHelper, getHelper, getMethodHelper, getOwnHelper, getOwnHelper, getOwnProperty, getOwnPropertyKeys, getPrototypeOf, hasOnlyShapeProperties, hasOwnProperty, hasOwnProperty, hasProperty, hasProperty, invokeAccessorPropertySetter, isExtensible, ordinaryGetOwnProperty, ordinaryGetOwnPropertyIntl, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeysSlow, ordinarySet, ordinarySetIndex, ordinarySetWithReceiver, performOrdinarySetWithOwnDescriptor, preventExtensions, preventExtensionsImpl, putConstructorSpeciesGetter, set, set, setIntegrityLevel, setIntegrityLevelFast, setPropertySlow, setPrototypeOf, testIntegrityLevel, testIntegrityLevelFast, toDisplayStringImpl, toString, usesOrdinaryGetOwnProperty, usesOrdinaryIsExtensibledefaultToString, filterOwnPropertyKeys, formatToString, get, get, getToStringTag, isInstance, isInstance, isInstance, isInstance, ownPropertyKeys, testIntegrityLevelDefaultdispatch, equals, hashCode, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateConstructorAndPrototypecreateConstructorObject, fillConstructorpublic static final String CLASS_NAME
public static final String PROTOTYPE_NAME
public static final String ITERATOR_CLASS_NAME
public static final String ITERATOR_PROTOTYPE_NAME
public static final JSSegmenter INSTANCE
public static boolean isJSSegmenter(Object obj)
public String getClassName()
getClassName in interface JSConstructorFactorypublic String getClassName(com.oracle.truffle.api.object.DynamicObject object)
JSClassgetClassName in class JSClassobject - object to be usedpublic com.oracle.truffle.api.object.DynamicObject createPrototype(JSRealm realm, com.oracle.truffle.api.object.DynamicObject ctor)
createPrototype in interface JSConstructorFactorypublic com.oracle.truffle.api.object.Shape makeInitialShape(JSContext ctx, com.oracle.truffle.api.object.DynamicObject prototype)
makeInitialShape in class JSClasspublic static JSConstructor createConstructor(JSRealm realm)
public static com.oracle.truffle.api.object.DynamicObject create(JSContext context)
public static com.oracle.truffle.api.object.DynamicObject createSegmentIterator(JSContext context, com.oracle.truffle.api.object.DynamicObject segmenter, String value)
public static void setLocale(JSContext ctx, JSSegmenter.InternalState state, String[] locales)
public static void setupInternalBreakIterator(JSSegmenter.InternalState state, String granularity)
public static com.ibm.icu.text.BreakIterator createBreakIterator(com.oracle.truffle.api.object.DynamicObject segmenterObj,
String text)
public static JSSegmenter.Granularity getGranularity(com.oracle.truffle.api.object.DynamicObject segmenterObj)
public static com.oracle.truffle.api.object.DynamicObject resolvedOptions(JSContext context, com.oracle.truffle.api.object.DynamicObject segmenterObj)
public static JSSegmenter.InternalState getInternalState(com.oracle.truffle.api.object.DynamicObject segmenterObj)
public com.oracle.truffle.api.object.DynamicObject getIntrinsicDefaultProto(JSRealm realm)
getIntrinsicDefaultProto in interface PrototypeSupplierpublic static com.oracle.truffle.api.object.Shape makeInitialSegmentIteratorShape(JSContext ctx, com.oracle.truffle.api.object.DynamicObject prototype)
public static boolean isJSSegmenterIterator(Object obj)