A
- attributepublic class PatternResult<A>
extends java.lang.Object
Constructor and Description |
---|
PatternResult(java.lang.String match,
int lastIndex,
A attribute)
constructs matching result.
|
Modifier and Type | Method and Description |
---|---|
A |
getAttribute()
gets an attribute.
|
int |
getLastIndex()
gets last index of matching.
|
java.lang.String |
getMatch()
gets matched string.
|
int |
getStartIndex()
gets start index of matching.
|
java.lang.String |
toString() |
public PatternResult(java.lang.String match, int lastIndex, A attribute)
match
- matched stringlastIndex
- last index of matchingattribute
- attributepublic java.lang.String getMatch()
public int getStartIndex()
public int getLastIndex()
public A getAttribute()
public java.lang.String toString()
toString
in class java.lang.Object