public class PatternConstant extends Object implements ProcPatternElement
| Constructor and Description |
|---|
PatternConstant(String value,
boolean ignoreCase)
Create constant element.
|
PatternConstant(String value,
boolean ignoreCase,
boolean ghost)
Create constant element.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
findIn(Source source)
Find this constant.
|
char[] |
getCharArray() |
String |
getValue() |
int |
hashCode() |
boolean |
isIgnoreCase() |
boolean |
isNextIn(Context context)
Check equals next sequence in source to this constant
|
boolean |
parse(Context context,
ProcPatternElement terminator)
Parse constant
|
String |
toString() |
public PatternConstant(String value, boolean ignoreCase)
value - constant valueignoreCase - ignore text case when parse a constantpublic PatternConstant(String value, boolean ignoreCase, boolean ghost)
value - constant valueignoreCase - ignore text case when parse a constantghost - don't move the cursor after parsingpublic boolean parse(Context context, ProcPatternElement terminator)
parse in interface ProcPatternElementcontext - current contextterminator - not usedpublic boolean isNextIn(Context context)
isNextIn in interface ProcPatternElementcontext - current contextpublic int findIn(Source source)
findIn in interface ProcPatternElementsource - text sourcepublic String getValue()
public boolean isIgnoreCase()
public char[] getCharArray()
Copyright © 2016. All rights reserved.