public abstract class AbstractUrl extends ProcNamedElement implements ProcPatternElement
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
ghost
Don't move the cursor offset.
|
| Constructor and Description |
|---|
AbstractUrl(String name,
boolean ghost) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
calcEnd(Source source,
ProcPatternElement terminator) |
abstract int |
findIn(Source source)
Find constant
|
boolean |
isNextIn(Context context)
Check next subsequence
|
boolean |
parse(Context context,
ProcPatternElement terminator)
Parse element
|
protected int |
parseRegex(Source source,
int offset,
int end,
Pattern pattern) |
getName, setAttributepublic AbstractUrl(String name, boolean ghost)
public boolean parse(Context context, ProcPatternElement terminator) throws org.kefirsf.bb.proc.NestingException
parse in interface ProcPatternElementcontext - contextterminator - terminator to stop text processNestingException - if nesting of tags is bigger than maximum nesting valuepublic boolean isNextIn(Context context)
isNextIn in interface ProcPatternElementcontext - current contextpublic abstract int findIn(Source source)
ProcPatternElementfindIn in interface ProcPatternElementsource - text sourceprotected int calcEnd(Source source, ProcPatternElement terminator)
Copyright © 2016. All rights reserved.