public abstract class AbstractEol extends Object implements ProcPatternElement
| Modifier and Type | Field and Description |
|---|---|
protected static char[] |
AN |
protected static char[] |
AR |
protected boolean |
ghost |
| Constructor and Description |
|---|
AbstractEol(boolean ghost) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
calcLength(Source source,
int index) |
int |
findIn(Source source)
Find constant
|
boolean |
isNextIn(Context context)
Check next subsequence
|
protected abstract int |
match(Source source,
int index) |
boolean |
parse(Context context,
ProcPatternElement terminator)
Parse element
|
protected static final char[] AN
protected static final char[] AR
protected final boolean ghost
public boolean parse(Context context, ProcPatternElement terminator) throws org.kefirsf.bb.proc.NestingException
ProcPatternElementparse in interface ProcPatternElementcontext - contextterminator - terminator to stop text processNestingException - if nesting of tags is bigger than maximum nesting valuepublic boolean isNextIn(Context context)
ProcPatternElementisNextIn in interface ProcPatternElementcontext - current contextpublic int findIn(Source source)
ProcPatternElementfindIn in interface ProcPatternElementsource - text sourceprotected abstract int match(Source source, int index)
protected int calcLength(Source source, int index)
source - the soruce textindex - current cursor positionCopyright © 2016. All rights reserved.