public class V8BreakIterator extends SimpleScriptable
V8BreakIterator
.Constructor and Description |
---|
V8BreakIterator()
The default constructor.
|
V8BreakIterator(Object locales,
Object types)
The JavaScript constructor, with optional parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
adoptText(String text)
Assigns text to be segmented to the iterator.
|
String |
breakType()
Returns the type of the break.
|
int |
current()
Returns the index of the current break.
|
int |
first()
Returns the index of the first break and moves pointer to it.
|
Object |
getDefaultValue(Class<?> hint)
Returns the JavaScript default value of this object.
|
int |
next()
Returns the index of the next break and moves pointer to it.
|
Object |
resolvedOptions()
Returns the resolved options.
|
clone, equivalentValues, get, getBrowserVersion, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement
defineFunctionProperties, defineProperty, getClassName, put, setClassName, setParentScope
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isReadOnlySettable, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, size
public Object getDefaultValue(Class<?> hint)
getDefaultValue
in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
getDefaultValue
in class SimpleScriptable
hint
- a hint as to the format of the default value (ignored in this case)public Object resolvedOptions()
public int first()
public int next()
public int current()
public void adoptText(String text)
text
- the textpublic String breakType()
none
, number
, letter
, kana
, ideo
or unknown
Copyright © 2002–2021 Gargoyle Software Inc.. All rights reserved.