com.taco.text
Class MatchResult

java.lang.Object
  extended by com.taco.text.MatchResult
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
InterpolatedValueMatchResult

public class MatchResult
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

A data structure that contains the result of matching string operations.

See Also:
Serialized Form

Field Summary
 int endIndex
          The end index of this result.
 java.lang.String s
          The string that this result covers.
 int startIndex
          The start index of this result.
 
Constructor Summary
MatchResult()
          Create a new instance with all field set to their default values.
MatchResult(java.lang.String s, int startIndex, int endIndex)
           
 
Method Summary
 java.lang.Object clone()
           
 void reset()
          Reset all fields to their default state.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

s

public java.lang.String s
The string that this result covers. By default, this is null.


startIndex

public int startIndex
The start index of this result. By default, this is -1.


endIndex

public int endIndex
The end index of this result. By default, this is -1.

Constructor Detail

MatchResult

public MatchResult()
Create a new instance with all field set to their default values.


MatchResult

public MatchResult(java.lang.String s,
                   int startIndex,
                   int endIndex)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

reset

public void reset()
Reset all fields to their default state.