Package org.gjt.sp.jedit.textarea
Interface StructureMatcher
-
- All Known Implementing Classes:
StructureMatcher.BracketMatcher
public interface StructureMatcherAn interface for matching parts of a source file's stucture. The default implementation matches brackets. The XML plugin provides an implementation for matching XML tags.- Since:
- jEdit 4.2pre3
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classStructureMatcher.BracketMatcherstatic classStructureMatcher.HighlightPaints the structure match highlight.static classStructureMatcher.MatchA structure match, denoted by a start and end position.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StructureMatcher.MatchgetMatch(TextArea textArea)Returns the element matching the one at the given text area's caret position, or null.voidselectMatch(TextArea textArea)Selects from the caret to the matching structure element (if there is one, otherwise the behavior of this method is undefined).
-
-
-
Method Detail
-
getMatch
StructureMatcher.Match getMatch(TextArea textArea)
Returns the element matching the one at the given text area's caret position, or null.- Since:
- jEdit 4.2pre3
-
selectMatch
void selectMatch(TextArea textArea)
Selects from the caret to the matching structure element (if there is one, otherwise the behavior of this method is undefined).- Since:
- jEdit 4.2pre3
-
-