站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

FinderFactory.AbstractBlocksFinder (Editor Library) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor.lib/1 1.14.0 3

org.netbeans.editor
Class FinderFactory.AbstractBlocksFinder

java.lang.Object
  extended by org.netbeans.editor.FinderFactory.AbstractFinder
      extended by 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.


Field Summary
 
Fields inherited from class org.netbeans.editor.FinderFactory.AbstractFinder
found
 
Constructor Summary
FinderFactory.AbstractBlocksFinder()
           
 
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 org.netbeans.editor.FinderFactory.AbstractFinder
isFound
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.netbeans.editor.Finder
find, isFound
 

Constructor Detail

FinderFactory.AbstractBlocksFinder

public FinderFactory.AbstractBlocksFinder()
Method Detail

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()

org.netbeans.modules.editor.lib/1 1.14.0 3

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.