Modifier and Type | Method and Description |
---|---|
String |
get(int index)
Gets the value at a given index.
|
<T extends NativeObjectContainer> |
groups(NativeObjectContainerFactory<T> factory)
Returns the object to refer to certain token by string that a regular expression matches.
|
int |
index()
Returns the 0-based index of the match in the string.
|
int |
indexOf(String value)
Returns the index of the first occurrence of the specified element in this array, or -1 if this array does not contain the element.
|
String |
input()
Returns the original string that was matched against.
|
int |
lastIndexOf(String value)
Returns the index of the last occurrence of the specified element in this array, or -1 if this array does not contain the element.
|
@JsProperty(name="index") public final int index()
@JsProperty(name="input") public final String input()
public int lastIndexOf(String value)
value
- element to search forpublic int indexOf(String value)
value
- element to search for@JsOverlay public String get(int index)
index
- the index to be retrieved@JsOverlay public <T extends NativeObjectContainer> T groups(NativeObjectContainerFactory<T> factory)
T
- type of native object containerfactory
- native container factory in order to map the result of regular expression execution