|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprogram.MatchingPair
public class MatchingPair
Represents a matching pair of substrings. Matching pairs are identified in the second step of arc calculation. When day are accepted by all the rejecting rules, they are drawn.
| Constructor Summary | |
|---|---|
MatchingPair(java.lang.String str,
int iContentLength,
int indexStart,
int indexEnd)
Creates a new instance. |
|
| Method Summary | |
|---|---|
boolean |
containsPair(MatchingPair pair)
Returns if the particular instance 'contains' another matching pair. |
int |
getContentLength()
Returns the number of items contained in the matching pair. |
int |
getEndFirstSubstr()
Returns the end index of the first substring. |
int |
getEndSecondSubstr()
Returns the end index of the second substring. |
int |
getStartFirstSubstr()
Returns the start index of the first substring. |
int |
getStartSecondSubstr()
Returns the start index of the second substring. |
java.lang.String |
getString()
Returns the sting representing the matching pairs content. |
boolean |
isRepReg()
Returns if the matching pair is a repetition region. |
void |
setRepReg(boolean isRepReg)
Sets the matching pair a repetition region. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MatchingPair(java.lang.String str,
int iContentLength,
int indexStart,
int indexEnd)
str - a string, representing the matching pairs contentiContentLength - the number of items contained in the matching pairindexStart - the matching pairs starting index (begin of the first substring)indexEnd - the matching pairs final index (end of the second substring)| Method Detail |
|---|
public boolean isRepReg()
public void setRepReg(boolean isRepReg)
public java.lang.String getString()
public int getContentLength()
public int getStartFirstSubstr()
public int getEndFirstSubstr()
public int getStartSecondSubstr()
public int getEndSecondSubstr()
public boolean containsPair(MatchingPair pair)
pair - the pair to checkpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||