|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.bliki.wiki.template.AbstractTemplateFunction
info.bliki.wiki.template.Subst
public class Subst
A template parser function for {{subst: ... }}
. See Wikipedia-Help:Substitution
Field Summary | |
---|---|
static ITemplateFunction |
CONST
|
Constructor Summary | |
---|---|
Subst()
|
Method Summary | |
---|---|
java.lang.String |
parseFunction(java.util.List<java.lang.String> parts,
IWikiModel model,
char[] src,
int beginIndex,
int endIndex)
Parse a template function (like for example {{ #if: ... }} )
The result is also a text string in Wikipedia syntax notation which will be
parsed again (recursively) in the TemplateParser step. |
Methods inherited from class info.bliki.wiki.template.AbstractTemplateFunction |
---|
getFunctionDoc, parse, parseFunction |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ITemplateFunction CONST
Constructor Detail |
---|
public Subst()
Method Detail |
---|
public java.lang.String parseFunction(java.util.List<java.lang.String> parts, IWikiModel model, char[] src, int beginIndex, int endIndex)
ITemplateFunction
{{ #if: ... }}
)
The result is also a text string in Wikipedia syntax notation which will be
parsed again (recursively) in the TemplateParser step.
parseFunction
in interface ITemplateFunction
parseFunction
in class AbstractTemplateFunction
parts
- the parser function arguments (extracted from the wiki text by
splitting the string at the pipe symbol ´|´)model
- the wiki modelsrc
- the array of the current Wikipedia source textbeginIndex
- the beginning index, inclusive.endIndex
- the ending index, exclusive.
null
if
the parsing fails or isn't validTemplateParser#parseTemplate(StringBuffer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |