public class ProcCode extends Object implements Comparable<ProcCode>
| Constructor and Description |
|---|
ProcCode(List<ProcPattern> patterns,
ProcTemplate template,
String name,
int priority,
boolean transparent)
Create the bb-code with priority
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ProcCode code)
Compare by priorities
|
boolean |
containsCheck() |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
process(Context context)
Parse bb-code
Before invocation suspicious method must be call
|
boolean |
startsWithConstant() |
boolean |
suspicious(Context context)
Check if next sequence can be parsed with this code.
|
public ProcCode(List<ProcPattern> patterns, ProcTemplate template, String name, int priority, boolean transparent)
patterns - pattern to parse the source texttemplate - template to build target textname - name of codepriority - priority. If priority higher then code be checking early.transparent - Do show variables outside the code?public boolean process(Context context) throws org.kefirsf.bb.proc.NestingException
context - the bb-processing contextNestingException - if nesting is too big.public boolean suspicious(Context context)
context - current contextpublic int compareTo(ProcCode code)
compareTo in interface Comparable<ProcCode>public boolean startsWithConstant()
public boolean containsCheck()
Copyright © 2016. All rights reserved.