| Constructor and Description |
|---|
WtEngineImpl(WikiConfig wikiConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected EngProcessedPage |
expand(ExpansionCallback callback,
PageId pageId,
WtPreproWikitextPage ppAst,
WtEntityMap entityMap,
boolean forInclusion,
Map<String,WtNodeList> arguments,
ExpansionFrame rootFrame,
ExpansionFrame parentFrame) |
EngProcessedPage |
expand(PageId pageId,
String wikitext,
boolean forInclusion,
ExpansionCallback callback)
Takes wikitext and expands the wikitext.
|
EngProcessedPage |
expand(PageId pageId,
String wikitext,
ExpansionCallback callback)
Takes wikitext and expands the wikitext.
|
ExpansionDebugHooks |
getDebugHooks() |
WikiConfig |
getWikiConfig() |
boolean |
isCatchAll() |
boolean |
isNoRedirect() |
boolean |
isTimingEnabled() |
EngineNodeFactory |
nf() |
EngProcessedPage |
parse(PageId pageId,
String wikitext,
ExpansionCallback callback)
Takes wikitext and parses the wikitext for viewing.
|
EngProcessedPage |
parseAndPostprocess(PageId pageId,
String wikitext,
ExpansionCallback callback)
Takes wikitext and parses the wikitext for viewing.
|
EngProcessedPage |
postprocess(PageId pageId,
String wikitext,
ExpansionCallback callback)
Takes wikitext and parses the wikitext for viewing.
|
EngProcessedPage |
postprocessPpOrExpAst(PageId pageId,
WtPreproWikitextPage pprAst)
Takes an AST after preprocessing or after expansion and performs the
following steps:
Parsing
Entity substitution
Postprocessing
|
EngProcessedPage |
preprocess(PageId pageId,
String wikitext,
boolean forInclusion,
ExpansionCallback callback)
Takes wikitext and preprocesses the wikitext (without performing
expansion).
|
protected EngProcessedPage |
preprocessAndExpand(ExpansionCallback callback,
PageId pageId,
String wikitext,
boolean forInclusion,
WtEntityMap entityMap,
Map<String,WtNodeList> arguments,
ExpansionFrame rootFrame,
ExpansionFrame parentFrame)
This function is only called by preprocessor frames to pull in pages for
transclusion or redirection.
|
void |
setCatchAll(boolean catchAll) |
void |
setDebugHooks(ExpansionDebugHooks hooks) |
void |
setNoRedirect(boolean noRedirect) |
void |
setTimingEnabled(boolean timingEnabled) |
public WtEngineImpl(WikiConfig wikiConfig)
public void setDebugHooks(ExpansionDebugHooks hooks)
setDebugHooks in interface WtEnginepublic void setNoRedirect(boolean noRedirect)
setNoRedirect in interface WtEnginepublic void setTimingEnabled(boolean timingEnabled)
setTimingEnabled in interface WtEnginepublic void setCatchAll(boolean catchAll)
setCatchAll in interface WtEnginepublic WikiConfig getWikiConfig()
getWikiConfig in interface WtEnginepublic ExpansionDebugHooks getDebugHooks()
getDebugHooks in interface WtEnginepublic boolean isNoRedirect()
isNoRedirect in interface WtEnginepublic boolean isTimingEnabled()
isTimingEnabled in interface WtEnginepublic boolean isCatchAll()
isCatchAll in interface WtEnginepublic EngineNodeFactory nf()
public EngProcessedPage preprocess(PageId pageId, String wikitext, boolean forInclusion, ExpansionCallback callback) throws EngineException
preprocess in interface WtEngineEngineExceptionpublic EngProcessedPage expand(PageId pageId, String wikitext, ExpansionCallback callback) throws EngineException
expand in interface WtEngineEngineExceptionpublic EngProcessedPage expand(PageId pageId, String wikitext, boolean forInclusion, ExpansionCallback callback) throws EngineException
expand in interface WtEngineEngineExceptionpublic EngProcessedPage parse(PageId pageId, String wikitext, ExpansionCallback callback) throws EngineException
parse in interface WtEngineEngineExceptionpublic EngProcessedPage parseAndPostprocess(PageId pageId, String wikitext, ExpansionCallback callback) throws EngineException
EngineExceptionpublic EngProcessedPage postprocess(PageId pageId, String wikitext, ExpansionCallback callback) throws EngineException
postprocess in interface WtEngineEngineExceptionpublic EngProcessedPage postprocessPpOrExpAst(PageId pageId, WtPreproWikitextPage pprAst) throws EngineException
postprocessPpOrExpAst in interface WtEngineEngineExceptionprotected EngProcessedPage preprocessAndExpand(ExpansionCallback callback, PageId pageId, String wikitext, boolean forInclusion, WtEntityMap entityMap, Map<String,WtNodeList> arguments, ExpansionFrame rootFrame, ExpansionFrame parentFrame) throws EngineException
EngineExceptionprotected EngProcessedPage expand(ExpansionCallback callback, PageId pageId, WtPreproWikitextPage ppAst, WtEntityMap entityMap, boolean forInclusion, Map<String,WtNodeList> arguments, ExpansionFrame rootFrame, ExpansionFrame parentFrame) throws EngineException
EngineExceptionCopyright © 2010–2018 University of Erlangen-Nürnberg - Open Source Research Group. All rights reserved.