◆ constructor()
◆ contact()
◆ help()
String org.turro.parser.wiki.WikiProcessors.help |
( |
| ) |
|
Definition at line 64 of file WikiProcessors.java.
65 StringBuilder sb =
new StringBuilder();
66 for(IMacroProcessor processor : Instances.cached().byInterface(IMacroProcessor.class, IMacroProcessor.class)) {
67 for(String name : processor.locateNames(constructor)) {
68 String expanded = processor.help(constructor, name);
69 if(expanded !=
null) {
◆ instance()
static WikiProcessors org.turro.parser.wiki.WikiProcessors.instance |
( |
| ) |
|
|
static |
◆ resolve()
String org.turro.parser.wiki.WikiProcessors.resolve |
( |
String |
value | ) |
|
Definition at line 44 of file WikiProcessors.java.
45 Final<String> result = Final.empty();
46 if(
"@w{help}".equals(value)) {
48 }
else if(value.contains(MACRO_START)) {
49 MacroParser.of(MACRO_START, MACRO_END).process(value, content -> {
50 String name = MacroParser.macroName(content);
51 Map<String, String> pars = MacroParser.parameterMap(content);
52 for(IMacroProcessor processor : Instances.cached().byInterface(IMacroProcessor.class, IMacroProcessor.class)) {
53 String expanded = processor.expand(constructor, contact, name, pars);
54 if(expanded != null) {
61 return result.isEmpty() ? notFound(value) : result.get();
The documentation for this class was generated from the following file: