19 package org.turro.parser;
21 import java.util.List;
22 import java.util.stream.Collectors;
23 import org.turro.action.Secrets;
24 import org.turro.action.content.ContentProviders;
25 import org.turro.annotation.ExternalParser;
26 import org.turro.emoji.EmojiMap;
27 import org.turro.icon.IconSet;
28 import org.turro.indicator.IElephantIndicator;
29 import org.turro.indicator.Indicators;
30 import org.turro.marker.ElephantMarker;
31 import org.turro.reflection.Instances;
32 import org.turro.security.Permissions;
33 import org.turro.security.SecurityGroups;
44 return "Documentation";
63 marker.
put(
"elephantParsers",
65 .stream().filter((p) -> {
66 return
"all".equals(getToken(1)) ||
67 ((p instanceof AbstractParser) &&
68 ((AbstractParser) p).getParserName().equals(getToken(1)));
69 }).collect(Collectors.toList()));
75 marker.
put(
"emojimap", EmojiMap.getInstance());
79 marker.
put(
"iconset", IconSet.getInstance());
81 }
else if(
"elephant-indicators".equals(
getMacroName())) {
84 return
"all".equals(getToken(1)) ||
85 ((i instanceof IElephantIndicator) &&
86 ((IElephantIndicator) i).getRoot().equals(getToken(1)));
87 }).collect(Collectors.toList()));
93 marker.
put(
"notice",
Secrets.<List<String>>getObject(
"key=notice;show=false"));
94 marker.
process(
"widgets/licenses",
"notice");
97 marker.
put(
"licenses",
Secrets.<List<String>>getObject(
"key=licenses;show=false"));
98 marker.
process(
"widgets/licenses",
"licenses");
101 marker.
put(
"libraries",
Secrets.<List<String>>getObject(
"key=libraries;show=false"));
102 marker.
process(
"widgets/licenses",
"libraries");
110 .
addParameter(
"doc-properties",
true,
"*/documentation")
114 .
addParameter(
"doc-properties",
true,
"*/documentation")
120 .
addParameter(
"doc-properties",
true,
"*/documentation")
129 macros.
addMacro(
"elephant-indicators")
132 .
addParameter(
"doc-properties",
true,
"*/documentation")
static List< IContentProvider > getProviders()
static List< IElephantIndicator > getIndicators()
void process(String rootTmpl, String tmpl)
Object put(Object key, Object value)
void prepareProperties(ElephantMarker marker, String properties)
String getToken(String name)
void explainMacros(ParserMacroSet macros)
ParserMacro addMacro(String macroName)
ParserMacro addParameter(String name, boolean optional)
static SortedMap< String, SortedSet< String > > permissionStringMap()
static Collection< SecurityGroup > getAll()