Class DefaultVariableStartFinder
- java.lang.Object
-
- com.e1c.g5.v8.dt.lcore.ui.templates.preferences.DefaultVariableStartFinder
-
- All Implemented Interfaces:
IVariableStartFinder
public class DefaultVariableStartFinder extends Object implements IVariableStartFinder
Default implementation ofIVariableStartFinder
. Searches the start backwards until breaker character sequence is reached
-
-
Constructor Summary
Constructors Constructor Description DefaultVariableStartFinder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
guessStart(String text, int offset)
Guesses the start of the variable
-
-
-
Method Detail
-
guessStart
public int guessStart(String text, int offset)
Description copied from interface:IVariableStartFinder
Guesses the start of the variable- Specified by:
guessStart
in interfaceIVariableStartFinder
- Parameters:
text
- The text to find start of the variable in, cannot benull
offset
- The offset that points at the variable- Returns:
- The start of the variable in the text
-
-