org.netbeans.modules.editor.bracesmatching/0 1.10

org.netbeans.spi.editor.bracesmatching
Interface BracesMatcherFactory


public interface BracesMatcherFactory

The factory for creating BracesMatchers. Instances of this class are supposed to be registered in MIME lookup under the mime type of documents that they wish to provide matching services for.


Method Summary
 BracesMatcher createMatcher(MatcherContext context)
          Creates a matcher for searching a document for matching areas.
 

Method Detail

createMatcher

BracesMatcher createMatcher(MatcherContext context)
Creates a matcher for searching a document for matching areas.

An example of BracesMatcher could be a matcher that detects braces, brackets or parenthesis next to a caret and finds their matching counterparts.

Parameters:
context - The context to use for searching. It contains the position of a caret in a document and allows to report results.
Returns:
A new matcher.

org.netbeans.modules.editor.bracesmatching/0 1.10

Built on November 7 2009.  |  Portions Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.