public class ProcVariable extends ProcNamedElement implements ProcPatternElement
| Constructor and Description |
|---|
ProcVariable(String name,
Pattern regex,
boolean ghost,
Action action)
Create named variable
|
| Modifier and Type | Method and Description |
|---|---|
int |
findIn(Source source)
Find this element
|
boolean |
isNextIn(Context context)
Определяет, что дальше в разбираемой строке находится нужная последовательность
|
boolean |
parse(Context context,
ProcPatternElement terminator)
Парсит элемент
|
String |
toString() |
getName, setAttributepublic boolean parse(Context context, ProcPatternElement terminator)
parse in interface ProcPatternElementcontext - контекстterminator - terminator to stop text processpublic boolean isNextIn(Context context)
isNextIn in interface ProcPatternElementcontext - current contextpublic int findIn(Source source)
findIn in interface ProcPatternElementsource - text sourceCopyright © 2016. All rights reserved.