public class TokenRendererComponent extends AbstractRegexRendererComponent
| Modifier and Type | Field and Description |
|---|---|
static String |
BLOCK_TOKEN_PATTERN_STR
Deprecated.
since Renderer 6.0 use
TokenType#BLOCK#getTokenPatternString |
static String |
INLINE_TOKEN_PATTERN_STR
Deprecated.
since Renderer 6.0 use
TokenType#INLINE#getTokenPatternString |
| Constructor and Description |
|---|
TokenRendererComponent(SubRenderer subRenderer) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendSubstitution(StringBuffer buffer,
RenderContext context,
Matcher matcher)
Implement this method to perform your actual regex substitution.
|
String |
render(String wiki,
RenderContext context)
Render this piece of wiki text.
|
boolean |
shouldRender(RenderMode renderMode)
Whether or not this render component is required given the current render mode.
|
regexRenderpublic static final String BLOCK_TOKEN_PATTERN_STR
TokenType#BLOCK#getTokenPatternStringpublic static final String INLINE_TOKEN_PATTERN_STR
TokenType#INLINE#getTokenPatternStringpublic TokenRendererComponent(SubRenderer subRenderer)
public boolean shouldRender(RenderMode renderMode)
RendererComponentshouldRender in interface RendererComponentshouldRender in class AbstractRegexRendererComponentpublic String render(String wiki, RenderContext context)
RendererComponentrender in interface RendererComponentrender in class AbstractRegexRendererComponentpublic void appendSubstitution(StringBuffer buffer, RenderContext context, Matcher matcher)
AbstractRegexRendererComponentappendSubstitution in class AbstractRegexRendererComponentCopyright © 2019 Atlassian. All rights reserved.