Package org.eclipse.m2m.atl.adt.ui.text
Class AtlHeuristicScanner.SkippingScopeMatch
- java.lang.Object
-
- org.eclipse.m2m.atl.adt.ui.text.AtlHeuristicScanner.SkippingScopeMatch
-
- All Implemented Interfaces:
AtlHeuristicScanner.StopCondition
- Enclosing class:
- AtlHeuristicScanner
protected class AtlHeuristicScanner.SkippingScopeMatch extends java.lang.ObjectActs like character match, but skips all scopes introduced by parenthesis, brackets, and braces.
-
-
Constructor Summary
Constructors Constructor Description SkippingScopeMatch(char ch)Creates a new instance.SkippingScopeMatch(char[] chars)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanstop(char ch, int position, boolean forward)Instructs the scanner to return the current position.
-
-
-
Method Detail
-
stop
public boolean stop(char ch, int position, boolean forward)Description copied from interface:AtlHeuristicScanner.StopConditionInstructs the scanner to return the current position.- Specified by:
stopin interfaceAtlHeuristicScanner.StopCondition- Parameters:
ch- the char at the current positionposition- the current positionforward- the iteration direction- Returns:
trueif the stop condition is met.
-
-