|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.mtl.parser.cst.utils.SequenceBlock
public class SequenceBlock
The configuration of a block to parse. TODO COMMENT
| Constructor Summary | |
|---|---|
SequenceBlock(Sequence beginHeader,
Sequence endHeaderBody,
Sequence specHeader,
boolean recursiveHeader,
SequenceBlock[] inhibsHeader)
Constructor. |
|
SequenceBlock(Sequence beginHeader,
Sequence endHeaderOnly,
Sequence endHeaderBody,
SequenceBlock[] inhibsHeader,
Sequence endBody,
Sequence specBody,
SequenceBlock[] inhibsBody)
Constructor. |
|
| Method Summary | |
|---|---|
Sequence |
getEndHeaderBody()
Gets the sequence for the ending of the header and the body. |
Sequence |
getEndHeaderOnly()
Gets the sequence for the ending of the header. |
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... |
Region |
searchBeginHeader(java.lang.StringBuffer buffer,
int posBegin,
int posEnd)
To find the beginning of the header. |
Region |
searchEndBodyAtBeginHeader(java.lang.StringBuffer buffer,
Region indexOfBeginHeaderFound,
int posEnd)
To find the ending of the body. |
Region |
searchEndBodyAtEndHeader(java.lang.StringBuffer buffer,
Region indexOfEndHeaderFound,
int posEnd)
To find the ending of the body. |
Region |
searchEndHeaderAtBeginHeader(java.lang.StringBuffer buffer,
Region indexOfBeginHeaderFound,
int posEnd)
To find the ending of the header. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SequenceBlock(Sequence beginHeader,
Sequence endHeaderBody,
Sequence specHeader,
boolean recursiveHeader,
SequenceBlock[] inhibsHeader)
It uses only the header settings.
beginHeader - the sequence for the beginning of the headerendHeaderBody - the sequence for the ending of the header and the bodyspecHeader - is the escape sequence for the headerrecursiveHeader - indicates if the header block can contain itselfinhibsHeader - the blocks to be ignored when We search the sequence for the ending of the header
public SequenceBlock(Sequence beginHeader,
Sequence endHeaderOnly,
Sequence endHeaderBody,
SequenceBlock[] inhibsHeader,
Sequence endBody,
Sequence specBody,
SequenceBlock[] inhibsBody)
beginHeader - the sequence for the beginning of the headerendHeaderOnly - the sequence for the ending of the headerendHeaderBody - the sequence for the ending of the header and the bodyinhibsHeader - the blocks to be ignored when We search the sequence for the ending of the headerendBody - the sequence for the ending of the bodyspecBody - is the escape sequence for the bodyinhibsBody - the blocks to be ignored when We search the sequence for the ending of the block| Method Detail |
|---|
public Sequence getEndHeaderOnly()
public Sequence getEndHeaderBody()
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 Region searchBeginHeader(java.lang.StringBuffer buffer,
int posBegin,
int posEnd)
buffer - is the bufferposBegin - is the beginning indexposEnd - is the ending index
public Region searchEndBodyAtBeginHeader(java.lang.StringBuffer buffer,
Region indexOfBeginHeaderFound,
int posEnd)
buffer - is the bufferindexOfBeginHeaderFound - is the beginning index of the headerposEnd - is the ending index
public Region searchEndHeaderAtBeginHeader(java.lang.StringBuffer buffer,
Region indexOfBeginHeaderFound,
int posEnd)
buffer - is the bufferindexOfBeginHeaderFound - is the beginning index of the headerposEnd - is the ending index
public Region searchEndBodyAtEndHeader(java.lang.StringBuffer buffer,
Region indexOfEndHeaderFound,
int posEnd)
buffer - is the bufferindexOfEndHeaderFound - is the ending index of the headerposEnd - is the ending index
|
Copyright 2008 Obeo All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||