org.kefirsf.bb.proc
Class PatternJunk
java.lang.Object
org.kefirsf.bb.proc.PatternJunk
- All Implemented Interfaces:
- ProcPatternElement
public class PatternJunk
- extends Object
- implements ProcPatternElement
- Author:
- Vitalii Samolovskikh aka Kefir
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PatternJunk
public PatternJunk()
parse
public boolean parse(Context context,
ProcPatternElement terminator)
- Description copied from interface:
ProcPatternElement
- Parse element
- Specified by:
parse in interface ProcPatternElement
- Parameters:
context - contextterminator - teminator to stop text process
- Returns:
- true - subsequence is valid to this pattern
false - not valid
isNextIn
public boolean isNextIn(Source source)
- Description copied from interface:
ProcPatternElement
- Check next subsequence
- Specified by:
isNextIn in interface ProcPatternElement
- Parameters:
source - source text
- Returns:
- true pattern sequence equals with next subsequence
false not equals
findIn
public int findIn(Source source)
- Description copied from interface:
ProcPatternElement
- Find constant
- Specified by:
findIn in interface ProcPatternElement
- Parameters:
source - text source
- Returns:
- constant offset
Copyright © 2013. All Rights Reserved.