Tabnine Logo
IElementTagStructureHandler.setSelectionTarget
Code IndexAdd Tabnine to your IDE (free)

How to use
setSelectionTarget
method
in
org.thymeleaf.processor.element.IElementTagStructureHandler

Best Java code snippets using org.thymeleaf.processor.element.IElementTagStructureHandler.setSelectionTarget (Showing top 1 results out of 315)

origin: thymeleaf/thymeleaf

@Override
protected final void doProcess(
    final ITemplateContext context,
    final IProcessableElementTag tag,
    final AttributeName attributeName, final String attributeValue,
    final IElementTagStructureHandler structureHandler) {
  final IStandardExpressionParser expressionParser = StandardExpressions.getExpressionParser(context.getConfiguration());
  final IStandardExpression expression =
      expressionParser.parseExpression(context, attributeValue);
  validateSelectionValue(context, tag, attributeName, attributeValue, expression);
  final Object newSelectionTarget = expression.execute(context);
  final Map<String,Object> additionalLocalVariables =
      computeAdditionalLocalVariables(context, tag, attributeName, attributeValue, expression);
  if (additionalLocalVariables != null && additionalLocalVariables.size() > 0) {
    for (final Map.Entry<String,Object> variableEntry : additionalLocalVariables.entrySet()) {
      structureHandler.setLocalVariable(variableEntry.getKey(), variableEntry.getValue());
    }
  }
  structureHandler.setSelectionTarget(newSelectionTarget);
}
org.thymeleaf.processor.elementIElementTagStructureHandlersetSelectionTarget

Javadoc

Instructs the engine to set a new selection target.

The selection target is the object on which selection expressions (*{...})} are executed. In the Standard Dialect, this selection target is usually modified by means of the th:objectattribute, but custom processors can do it too. Note the selection target has the same scope as a local variable, and will therefore be accessible only inside the body of the element being processed.

See ITemplateContext#getSelectionTarget()

Popular methods of IElementTagStructureHandler

  • setBody
  • removeAttribute
  • removeElement
  • setAttribute
  • replaceWith
  • setLocalVariable
  • insertBefore
  • insertImmediatelyAfter
  • replaceAttribute
  • removeTags
  • iterateElement
    Instructs the engine to iterate the current element, applying a specific iteration configuration.
  • removeAllButFirstChild
    Instructs the engine to remove all the children of the element being processed, except the first on
  • iterateElement,
  • removeAllButFirstChild,
  • removeBody,
  • setInliner,
  • setTemplateData

Popular in Java

  • Start an intent from android
  • getContentResolver (Context)
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now