org.eclipse.mtl.parser.cst.utils
Interface ISequence

All Known Implementing Classes:
Sequence, SequenceBlock

public interface ISequence

A sequence to search in the text.


Method Summary
 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...
 

Method Detail

search

Region search(java.lang.StringBuffer buffer,
              int posBegin,
              int posEnd)
To find the first offset of this sequence in the given buffer.

Parameters:
buffer - is the buffer
posBegin - is the beginning index
posEnd - is the ending index
Returns:
the index of the first offset, Region.NOT_FOUND if the sequence doesn't exist between posBegin and posEnd

search

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...

Parameters:
buffer - is the buffer
posBegin - is the beginning index
posEnd - is the ending index
spec - is a specific sequence to ignore
inhibs - are some blocks to ignore
Returns:
the index of the first offset, Region.NOT_FOUND if the sequence doesn't exist between posBegin and posEnd

Copyright 2008 Obeo
All Rights Reserved.