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, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElementdefineFunctionProperties, defineProperty, getClassName, setClassName, setParentScopeapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, sizepublic Object getDefaultValue(Class<?> hint)
getDefaultValue in interface net.sourceforge.htmlunit.corejs.javascript.ScriptablegetDefaultValue in class SimpleScriptablehint - 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 unknownCopyright © 2002–2016 Gargoyle Software Inc.. All rights reserved.