org.kefirsf.bb.proc
Interface ProcPatternElement

All Known Implementing Classes:
PatternConstant, PatternJunk, ProcText, ProcVariable

public interface ProcPatternElement

Pattern element for parse part of bbcode

Author:
Kefir

Method Summary
 int findIn(Source source)
          Find constant
 boolean isNextIn(Source source)
          Check next subsequence
 boolean parse(Context context, ProcPatternElement terminator)
          Parse element
 

Method Detail

parse

boolean parse(Context context,
              ProcPatternElement terminator)
              throws org.kefirsf.bb.proc.NestingException
Parse element

Parameters:
context - context
terminator - teminator to stop text process
Returns:
true - subsequence is valid to this pattern false - not valid
Throws:
org.kefirsf.bb.proc.NestingException

isNextIn

boolean isNextIn(Source source)
Check next subsequence

Parameters:
source - source text
Returns:
true pattern sequence equals with next subsequence false not equals

findIn

int findIn(Source source)
Find constant

Parameters:
source - text source
Returns:
constant offset


Copyright © 2013. All Rights Reserved.