|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kefirsf.bb.proc.ProcCode
public class ProcCode
The bbcode class
| Constructor Summary | |
|---|---|
ProcCode(ProcPattern pattern,
ProcTemplate template,
String name,
int priority)
Create the bb-code with priority |
|
| Method Summary | |
|---|---|
int |
compareTo(ProcCode code)
Compare by priorities |
boolean |
equals(Object o)
|
String |
getName()
Get code name |
int |
hashCode()
|
boolean |
process(Context context)
Parse bb-code Before invocation suspicious method must be call |
boolean |
startsWithConstant()
|
boolean |
suspicious(Source source)
Check if next sequence can be parsed with this code. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProcCode(ProcPattern pattern,
ProcTemplate template,
String name,
int priority)
pattern - pattern to parse the source texttemplate - template to build target textname - name of codepriority - priority. If priority higher then code be checking early.| Method Detail |
|---|
public boolean process(Context context)
throws IOException,
org.kefirsf.bb.proc.NestingException
context - the bb-processing context
IOException - if can't append to target
NestingException - if nesting is too big.public boolean suspicious(Source source)
source - text source
public int compareTo(ProcCode code)
compareTo in interface Comparable<ProcCode>public String getName()
public boolean startsWithConstant()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||