public class ExtSyntaxSupport.BracketFinder extends FinderFactory.GenericFinder
Modifier and Type | Field and Description |
---|---|
protected char |
bracketChar
Original bracket char
|
protected char |
matchChar
Matching bracket char
|
protected int |
moveCount
Will it be a forward finder +1 or backward finder -1 or 0 when
the given character is not bracket character.
|
forward
found
Constructor and Description |
---|
BracketFinder(char bracketChar) |
Modifier and Type | Method and Description |
---|---|
protected int |
scan(char ch,
boolean lastChar)
The method that gets the actual character and whether
that character is the last in the search.
|
protected boolean |
updateStatus()
Check whether the bracketChar really contains
the bracket character.
|
find, isForward
isFound, reset
protected char bracketChar
protected char matchChar
protected int moveCount
public BracketFinder(char bracketChar)
bracketChar
- bracket charprotected boolean updateStatus()
protected int scan(char ch, boolean lastChar)
FinderFactory.GenericFinder
scan
in class FinderFactory.GenericFinder