public class SpincastMainPebbleExtensionDefault extends com.mitchellbosecke.pebble.extension.AbstractExtension implements SpincastMainPebbleExtension
| Modifier and Type | Field and Description |
|---|---|
static String |
FILTER_NAME_BOOLEAN |
static String |
FILTER_NAME_CHECKED |
static String |
FILTER_NAME_ESCAPE_BUT_REPLACE_NEWLINE_BY_BR |
static String |
FILTER_NAME_SELECTED |
static String |
FILTER_NAME_VALIDATION_CLASS |
static String |
FILTER_NAME_VALIDATION_FRESH |
static String |
FILTER_NAME_VALIDATION_GET |
static String |
FILTER_NAME_VALIDATION_GROUP_MESSAGES |
static String |
FILTER_NAME_VALIDATION_HAS_ERRORS |
static String |
FILTER_NAME_VALIDATION_HAS_SUCCESSES |
static String |
FILTER_NAME_VALIDATION_HAS_WARNINGS |
static String |
FILTER_NAME_VALIDATION_IS_VALID |
static String |
FILTER_NAME_VALIDATION_MESSAGES |
static String |
FILTER_NAME_VALIDATION_SUBMITTED |
static String |
FUNCTION_NAME_MESSAGE |
static String |
FUNCTION_NAME_QUERYSTRING_APPEND |
static String |
FUNCTION_NAME_ROUTE |
static String |
FUNCTION_NAME_ROUTE_ID |
static String |
FUNCTION_NAME_VALIDATION_GET |
static String |
FUNCTION_NAME_VALIDATION_JS_ONE_LINE |
| Constructor and Description |
|---|
SpincastMainPebbleExtensionDefault(com.google.inject.Provider<TemplatingEngine> templatingEngineProvider,
SpincastPebbleTemplatingEngineConfig spincastPebbleTemplatingEngineConfig,
ObjectConverter objectConverter,
SpincastUtils spincastUtils,
Dictionary dictionary,
com.google.inject.Provider<RequestContext<?>> requestContextProvider)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected Set<Object> |
convertToSet(Object obj) |
protected String |
encodeQuerystringValue(String value) |
protected com.mitchellbosecke.pebble.extension.Filter |
getBooleanFilter() |
protected String |
getBooleanFilterName() |
protected com.mitchellbosecke.pebble.extension.Filter |
getCheckedFilter() |
protected String |
getCheckedFilterName() |
protected Dictionary |
getDictionary() |
protected com.mitchellbosecke.pebble.template.EvaluationContext |
getEvaluationContext(Map<String,Object> args) |
Map<String,com.mitchellbosecke.pebble.extension.Filter> |
getFilters() |
Map<String,com.mitchellbosecke.pebble.extension.Function> |
getFunctions() |
protected com.mitchellbosecke.pebble.extension.Filter |
getGetFilter() |
protected String |
getGetFilterName() |
protected com.mitchellbosecke.pebble.extension.Function |
getGetFunction() |
protected String |
getGetFunctionName() |
protected com.mitchellbosecke.pebble.extension.Function |
getJsOneLinerOutputFunction() |
protected String |
getJsOneLinerOutputFunctionName() |
protected com.mitchellbosecke.pebble.extension.Function |
getMessageFunction() |
protected String |
getMessageFunctionName() |
protected Object |
getModelElement(Map<String,Object> args,
String property) |
protected com.mitchellbosecke.pebble.extension.Filter |
getNewlineToBrFilter() |
protected String |
getNewlineToBrFilterName() |
protected ObjectConverter |
getObjectConverter() |
protected com.mitchellbosecke.pebble.template.PebbleTemplate |
getPebbleTemplate(Map<String,Object> args) |
protected Map<String,Object> |
getPropertyAsMap(Map<String,Object> args,
String property) |
protected String |
getPropertyAsString(Map<String,Object> args,
String property) |
protected com.mitchellbosecke.pebble.extension.Function |
getQuerystringAppendFunction() |
protected String |
getQuerystringAppendFunctionName() |
protected com.google.inject.Provider<RequestContext<?>> |
getRequestContextProvider() |
protected com.mitchellbosecke.pebble.extension.Function |
getRouteFunction() |
protected String |
getRouteFunctionName() |
protected com.mitchellbosecke.pebble.extension.Function |
getRouteIdFunction() |
protected String |
getRouteIdFunctionName() |
protected com.mitchellbosecke.pebble.template.ScopeChain |
getScopeChain(Map<String,Object> args) |
protected com.mitchellbosecke.pebble.extension.Filter |
getSelectedFilter() |
protected String |
getSelectedFilterName() |
protected SpincastPebbleTemplatingEngineConfig |
getSpincastPebbleTemplatingEngineConfig() |
protected SpincastUtils |
getSpincastUtils() |
TemplatingEngine |
getTemplatingEngine() |
protected String |
getValidationClassError() |
protected com.mitchellbosecke.pebble.extension.Filter |
getValidationClassFilter() |
protected String |
getValidationClassFilterName() |
protected Object |
getValidationClassNoMessage() |
protected Object |
getValidationClassSuccess() |
protected Object |
getValidationClassWarning() |
protected com.mitchellbosecke.pebble.extension.Filter |
getValidationFreshFilter() |
protected String |
getValidationFreshFilterName() |
protected String |
getValidationGroupMessagesFilterName() |
protected String |
getValidationGroupMessagesTemplatePath() |
protected com.mitchellbosecke.pebble.extension.Filter |
getValidationHasErrorsFilter() |
protected String |
getValidationHasErrorsFilterName() |
protected com.mitchellbosecke.pebble.extension.Filter |
getValidationHasSuccessesFilter() |
protected String |
getValidationHasSuccessesFilterName() |
protected com.mitchellbosecke.pebble.extension.Filter |
getValidationHasWarningsFilter() |
protected String |
getValidationHasWarningsFilterName() |
protected com.mitchellbosecke.pebble.extension.Filter |
getValidationIsValidFilter() |
protected String |
getValidationIsValidFilterName() |
protected com.mitchellbosecke.pebble.extension.Filter |
getValidationMessagesFilter(String templatePath) |
protected String |
getValidationMessagesFilterName() |
protected String |
getValidationMessagesTemplatePath() |
protected com.mitchellbosecke.pebble.extension.Filter |
getValidationSubmittedFilter() |
protected String |
getValidationSubmittedFilterName() |
getBinaryOperators, getGlobalVariables, getNodeVisitors, getTests, getTokenParsers, getUnaryOperatorspublic static final String FILTER_NAME_CHECKED
public static final String FILTER_NAME_SELECTED
public static final String FILTER_NAME_VALIDATION_MESSAGES
public static final String FILTER_NAME_VALIDATION_GROUP_MESSAGES
public static final String FILTER_NAME_VALIDATION_CLASS
public static final String FILTER_NAME_VALIDATION_FRESH
public static final String FILTER_NAME_VALIDATION_SUBMITTED
public static final String FILTER_NAME_VALIDATION_IS_VALID
public static final String FILTER_NAME_VALIDATION_HAS_SUCCESSES
public static final String FILTER_NAME_VALIDATION_HAS_WARNINGS
public static final String FILTER_NAME_VALIDATION_HAS_ERRORS
public static final String FILTER_NAME_VALIDATION_GET
public static final String FILTER_NAME_ESCAPE_BUT_REPLACE_NEWLINE_BY_BR
public static final String FILTER_NAME_BOOLEAN
public static final String FUNCTION_NAME_VALIDATION_GET
public static final String FUNCTION_NAME_VALIDATION_JS_ONE_LINE
public static final String FUNCTION_NAME_MESSAGE
public static final String FUNCTION_NAME_QUERYSTRING_APPEND
public static final String FUNCTION_NAME_ROUTE
public static final String FUNCTION_NAME_ROUTE_ID
@Inject public SpincastMainPebbleExtensionDefault(com.google.inject.Provider<TemplatingEngine> templatingEngineProvider, SpincastPebbleTemplatingEngineConfig spincastPebbleTemplatingEngineConfig, ObjectConverter objectConverter, SpincastUtils spincastUtils, Dictionary dictionary, com.google.inject.Provider<RequestContext<?>> requestContextProvider)
public TemplatingEngine getTemplatingEngine()
protected ObjectConverter getObjectConverter()
protected SpincastUtils getSpincastUtils()
protected Dictionary getDictionary()
protected com.google.inject.Provider<RequestContext<?>> getRequestContextProvider()
protected SpincastPebbleTemplatingEngineConfig getSpincastPebbleTemplatingEngineConfig()
public Map<String,com.mitchellbosecke.pebble.extension.Filter> getFilters()
getFilters in interface com.mitchellbosecke.pebble.extension.ExtensiongetFilters in class com.mitchellbosecke.pebble.extension.AbstractExtensionpublic Map<String,com.mitchellbosecke.pebble.extension.Function> getFunctions()
getFunctions in interface com.mitchellbosecke.pebble.extension.ExtensiongetFunctions in class com.mitchellbosecke.pebble.extension.AbstractExtensionprotected com.mitchellbosecke.pebble.template.EvaluationContext getEvaluationContext(Map<String,Object> args)
protected com.mitchellbosecke.pebble.template.PebbleTemplate getPebbleTemplate(Map<String,Object> args)
protected com.mitchellbosecke.pebble.template.ScopeChain getScopeChain(Map<String,Object> args)
protected Map<String,Object> getPropertyAsMap(Map<String,Object> args, String property)
protected String getValidationClassError()
protected Object getValidationClassWarning()
protected Object getValidationClassSuccess()
protected Object getValidationClassNoMessage()
protected String getValidationMessagesTemplatePath()
protected String getValidationGroupMessagesTemplatePath()
protected String getCheckedFilterName()
protected com.mitchellbosecke.pebble.extension.Filter getCheckedFilter()
protected String getSelectedFilterName()
protected com.mitchellbosecke.pebble.extension.Filter getSelectedFilter()
protected String getValidationMessagesFilterName()
protected String getValidationGroupMessagesFilterName()
protected com.mitchellbosecke.pebble.extension.Filter getValidationMessagesFilter(String templatePath)
protected String getValidationClassFilterName()
protected com.mitchellbosecke.pebble.extension.Filter getValidationClassFilter()
protected String getValidationFreshFilterName()
protected com.mitchellbosecke.pebble.extension.Filter getValidationFreshFilter()
protected String getValidationSubmittedFilterName()
protected com.mitchellbosecke.pebble.extension.Filter getValidationSubmittedFilter()
protected String getValidationIsValidFilterName()
protected com.mitchellbosecke.pebble.extension.Filter getValidationIsValidFilter()
protected String getValidationHasSuccessesFilterName()
protected com.mitchellbosecke.pebble.extension.Filter getValidationHasSuccessesFilter()
protected String getValidationHasWarningsFilterName()
protected com.mitchellbosecke.pebble.extension.Filter getValidationHasWarningsFilter()
protected String getValidationHasErrorsFilterName()
protected com.mitchellbosecke.pebble.extension.Filter getValidationHasErrorsFilter()
protected String getGetFilterName()
protected com.mitchellbosecke.pebble.extension.Filter getGetFilter()
protected String getNewlineToBrFilterName()
protected com.mitchellbosecke.pebble.extension.Filter getNewlineToBrFilter()
protected String getBooleanFilterName()
protected com.mitchellbosecke.pebble.extension.Filter getBooleanFilter()
protected String getGetFunctionName()
protected com.mitchellbosecke.pebble.extension.Function getGetFunction()
protected String getJsOneLinerOutputFunctionName()
protected com.mitchellbosecke.pebble.extension.Function getJsOneLinerOutputFunction()
protected String getMessageFunctionName()
protected com.mitchellbosecke.pebble.extension.Function getMessageFunction()
protected String getQuerystringAppendFunctionName()
protected com.mitchellbosecke.pebble.extension.Function getQuerystringAppendFunction()
protected String getRouteFunctionName()
protected com.mitchellbosecke.pebble.extension.Function getRouteFunction()
protected String getRouteIdFunctionName()
protected com.mitchellbosecke.pebble.extension.Function getRouteIdFunction()
Copyright © 2018. All rights reserved.