|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.mtl.parser.cst.utils.Region
public class Region
A region with a beginning index and an ending index.
| Field Summary | |
|---|---|
static Region |
NOT_FOUND
To specify that the region doesn't exist. |
| Constructor Summary | |
|---|---|
Region(int b,
int e,
Sequence sequence)
Constructor. |
|
| Method Summary | |
|---|---|
int |
b()
Gets the beginning index. |
static Region[] |
createPositions(int length)
Initializes a table of region. |
int |
e()
Gets the ending index. |
boolean |
equals(java.lang.Object arg0)
|
Sequence |
getSequence()
Gets the sequence used to match the region. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Region NOT_FOUND
| Constructor Detail |
|---|
public Region(int b,
int e,
Sequence sequence)
b - is the beginning index of a substringe - is the ending index of a substringsequence - is the sequence used to match the region| Method Detail |
|---|
public int b()
public int e()
public Sequence getSequence()
public boolean equals(java.lang.Object arg0)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public static Region[] createPositions(int length)
length - is the length of the table to create
|
Copyright 2008 Obeo All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||