当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
FinderFactory.AbstractBlocksFinder (Editor Library) - NetBeans API Javadoc (Current Development Version)
org.netbeans.editor
Class FinderFactory.AbstractBlocksFinder
java.lang.Object
org.netbeans.editor.FinderFactory.AbstractFinder
org.netbeans.editor.FinderFactory.AbstractBlocksFinder
- All Implemented Interfaces:
- Finder, FinderFactory.BlocksFinder
- Direct Known Subclasses:
- ExtFinderFactory.LineBlocksFinder, FinderFactory.FalseBlocksFinder, FinderFactory.StringBlocksFinder, FinderFactory.WholeWordsBlocksFinder
- Enclosing class:
- FinderFactory
public abstract static class FinderFactory.AbstractBlocksFinder
- extends FinderFactory.AbstractFinder
- implements FinderFactory.BlocksFinder
Support for creating blocks finders.
Method Summary |
protected void |
addBlock(int blkStartPos,
int blkEndPos)
|
protected void |
closeBlocks()
Insert closing sequence [-1, -1] |
String |
debugBlocks()
|
int[] |
getBlocks()
Get the array filled with position blocks. |
void |
reset()
Reset the finder |
void |
setBlocks(int[] blocks)
Set the array into which the finder puts
the position blocks. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FinderFactory.AbstractBlocksFinder
public FinderFactory.AbstractBlocksFinder()
reset
public void reset()
- Description copied from class:
FinderFactory.AbstractFinder
- Reset the finder
- Specified by:
reset
in interface Finder
- Overrides:
reset
in class FinderFactory.AbstractFinder
getBlocks
public int[] getBlocks()
- Description copied from interface:
FinderFactory.BlocksFinder
- Get the array filled with position blocks. It is either
original array passed to setBlocks() or the new array
if the finder extended the array.
- Specified by:
getBlocks
in interface FinderFactory.BlocksFinder
setBlocks
public void setBlocks(int[] blocks)
- Description copied from interface:
FinderFactory.BlocksFinder
- Set the array into which the finder puts
the position blocks. If the length of array is not sufficient
the finder extends the array. The last block is set to [-1, -1].
- Specified by:
setBlocks
in interface FinderFactory.BlocksFinder
addBlock
protected void addBlock(int blkStartPos,
int blkEndPos)
closeBlocks
protected void closeBlocks()
- Insert closing sequence [-1, -1]
debugBlocks
public String debugBlocks()