|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.mtl.parser.cst.utils.Sequence
public class Sequence
The configuration of a sequence to parse.
| Constructor Summary | |
|---|---|
Sequence(java.lang.String token)
Constructor. |
|
Sequence(java.lang.String[] tokens)
Constructor. |
|
Sequence(java.lang.String token1,
java.lang.String token2)
Constructor. |
|
Sequence(java.lang.String token1,
java.lang.String token2,
java.lang.String token3)
Constructor. |
|
Sequence(java.lang.String token1,
java.lang.String token2,
java.lang.String token3,
java.lang.String token4)
Constructor. |
|
| Method Summary | |
|---|---|
Region |
search(java.lang.StringBuffer buffer)
To find the first offset of this sequence in the given buffer. |
Region |
search(java.lang.StringBuffer buffer,
int posBegin,
int posEnd)
To find the first offset of this sequence in the given buffer. |
Region |
search(java.lang.StringBuffer buffer,
int posBegin,
int posEnd,
Sequence spec,
SequenceBlock[] inhibs)
To find the first offset of this sequence in the given buffer, ignoring other sequences... |
java.util.List<Region> |
split(java.lang.StringBuffer buffer,
int posBegin,
int posEnd,
boolean keepSeparator,
Sequence spec,
SequenceBlock[] inhibs)
This sequence is used to split the buffer between the given positions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Sequence(java.lang.String token)
token - is the single token of the sequence
public Sequence(java.lang.String token1,
java.lang.String token2)
token1 - is the first token of the sequencetoken2 - is the second token of the sequence
public Sequence(java.lang.String token1,
java.lang.String token2,
java.lang.String token3)
token1 - is the first token of the sequencetoken2 - is the second token of the sequencetoken3 - is the third token of the sequence
public Sequence(java.lang.String token1,
java.lang.String token2,
java.lang.String token3,
java.lang.String token4)
token1 - is the first token of the sequencetoken2 - is the second token of the sequencetoken3 - is the third token of the sequencetoken4 - is the forth token of the sequencepublic Sequence(java.lang.String[] tokens)
tokens - are the tokens of the sequence| Method Detail |
|---|
public Region search(java.lang.StringBuffer buffer)
buffer - is the buffer
public Region search(java.lang.StringBuffer buffer,
int posBegin,
int posEnd)
search in interface ISequencebuffer - is the bufferposBegin - is the beginning indexposEnd - is the ending index
ISequence.search(java.lang.StringBuffer, int, int)
public Region search(java.lang.StringBuffer buffer,
int posBegin,
int posEnd,
Sequence spec,
SequenceBlock[] inhibs)
search in interface ISequencebuffer - is the bufferposBegin - is the beginning indexposEnd - is the ending indexspec - is a specific sequence to ignoreinhibs - are some blocks to ignore
ISequence.search(java.lang.StringBuffer, int, int,
org.eclipse.mtl.parser.cst.utils.Sequence, org.eclipse.mtl.parser.cst.utils.SequenceBlock[])
public java.util.List<Region> split(java.lang.StringBuffer buffer,
int posBegin,
int posEnd,
boolean keepSeparator,
Sequence spec,
SequenceBlock[] inhibs)
buffer - is the bufferposBegin - is the beginning indexposEnd - is the ending indexkeepSeparator - indicates if the positions of the separators are keptspec - is the escape characterinhibs - are the ignored blocks
|
Copyright 2008 Obeo All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||