public final class BBProcessor extends TextProcessorAdapter
| Modifier and Type | Field and Description |
|---|---|
static String |
LOGGER_CONTEXT |
static String |
LOGGER_GENERATE |
static String |
LOGGER_PARSE |
| Constructor and Description |
|---|
BBProcessor()
Create the bbcode processor
|
| Modifier and Type | Method and Description |
|---|---|
CharSequence |
process(CharSequence source)
Process bbcodes
1.
|
void |
setConstants(Set<PatternConstant> constants) |
void |
setNestingLimit(int nestingLimit) |
void |
setParams(Map<String,CharSequence> params)
Set text processor parameters map.
|
void |
setPrefix(ProcTemplate prefix)
Set the prefix for text processor
|
void |
setPropagateNestingException(boolean propagateNestingException) |
void |
setScope(ProcScope scope)
Set the root scope of text processor.
|
void |
setSuffix(ProcTemplate suffix)
Set the suffix for text processor
|
process, process, processpublic static final String LOGGER_CONTEXT
public static final String LOGGER_PARSE
public static final String LOGGER_GENERATE
public CharSequence process(CharSequence source)
source - the source stringTextProcessor.process(CharSequence)public void setScope(ProcScope scope) throws IllegalStateException
scope - root code scopeIllegalStateException - if scope already settedpublic void setPrefix(ProcTemplate prefix) throws IllegalStateException
prefix - template wich uses to create prefixIllegalStateException - If prefix already settedpublic void setSuffix(ProcTemplate suffix)
suffix - template wich uses to create prefixIllegalStateException - If suffix already settedpublic void setParams(Map<String,CharSequence> params)
params - parameterspublic void setConstants(Set<PatternConstant> constants)
public void setNestingLimit(int nestingLimit)
public void setPropagateNestingException(boolean propagateNestingException)
Copyright © 2016. All rights reserved.