Modifier and Type | Method and Description |
---|---|
List<Node> |
TemplateRepository.getFragment(Arguments arguments,
String fragment)
Obtains a fragment.
|
Modifier and Type | Method and Description |
---|---|
ArrayList<ProcessorAndContext> |
Configuration.computeProcessorsForNode(Node node)
Computes all the processors that should be applied to a specific
Node . |
Modifier and Type | Field and Description |
---|---|
static ICacheEntryValidityChecker<String,List<Node>> |
StandardCacheManager.DEFAULT_FRAGMENT_CACHE_VALIDITY_CHECKER
Default fragment cache validity checker: null
|
Modifier and Type | Method and Description |
---|---|
ICache<String,List<Node>> |
AbstractCacheManager.getFragmentCache() |
ICache<String,List<Node>> |
ICacheManager.getFragmentCache()
Returns the cache of template code fragments.
|
ICacheEntryValidityChecker<String,List<Node>> |
StandardCacheManager.getFragmentCacheValidityChecker() |
protected abstract ICache<String,List<Node>> |
AbstractCacheManager.initializeFragmentCache() |
protected ICache<String,List<Node>> |
StandardCacheManager.initializeFragmentCache() |
Modifier and Type | Method and Description |
---|---|
void |
StandardCacheManager.setFragmentCacheValidityChecker(ICacheEntryValidityChecker<String,List<Node>> fragmentCacheValidityChecker) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractTextNode
Base abstract class for text-based node types in Thymeleaf DOM trees:
Text s and CDATASection s. |
class |
CDATASection
A CDATA Section node in a Thymeleaf DOM tree.
|
class |
Comment
A Comment node in a Thymeleaf DOM tree.
|
class |
Document |
class |
Element
An Element node in a Thymeleaf DOM tree.
|
class |
GroupNode
A node group, potentially with attributes but no element name (no tag associated).
|
class |
Macro
Node containing a piece of markup or text that should not be parsed or
interpreted in any way.
|
class |
NestableAttributeHolderNode
A specialization of
NestableNode that adds the ability to hold
attributes. |
class |
NestableNode
Base abstract class for all nodes in a Thymeleaf DOM tree which have
children.
|
class |
Text
A Text node in a Thymeleaf DOM tree.
|
Modifier and Type | Method and Description |
---|---|
Node |
Node.cloneNode(NestableNode newParent,
boolean cloneProcessors)
Creates a clone of this node.
|
Node |
NestableNode.getFirstChild()
Returns the first child of this node.
|
Node[] |
NestableNode.unsafeGetChildrenNodeArray()
Returns the real, unsafe, inner array of node children.
|
Modifier and Type | Method and Description |
---|---|
List<Node> |
NestableNode.getChildren()
Returns the children of this node.
|
List<Node> |
DOMSelector.select(List<Node> nodes)
Executes the DOM selector against the specified list of nodes,
returning the result of applying the selector expression.
|
List<Node> |
DOMSelector.select(List<Node> nodes,
DOMSelector.INodeReferenceChecker referenceChecker)
Executes the DOM selector against the specified list of nodes and
using the specified reference checker (if references are used in the DOM selector
expression).
|
List<Node> |
DOMSelector.select(Node node)
Executes the DOM selector against the specified node, returning
the result of applying the selector expression.
|
List<Node> |
DOMSelector.select(Node node,
DOMSelector.INodeReferenceChecker referenceChecker)
Executes the DOM selector against the specified node and
using the specified reference checker (if references are used in the DOM selector
expression).
|
Modifier and Type | Method and Description |
---|---|
void |
NestableNode.addChild(Node newChild)
Adds a new child to the node.
|
boolean |
DOMSelector.INodeReferenceChecker.checkReference(Node node,
String referenceValue)
Check whether the node passed as argument matches the specified reference value.
|
boolean |
DOMSelector.AggregatingNodeReferenceChecker.checkReference(Node node,
String referenceValue) |
void |
NestableNode.extractChild(Node child)
Extracts a child by removing it from the DOM tree and lifting all
of its children one level, so that they become children nodes of
this node.
|
void |
NestableNode.insertAfter(Node existingChild,
Node newChild)
Adds a new children to the node, positioned just after
another child node that is also specified.
|
void |
NestableNode.insertBefore(Node existingChild,
Node newChild)
Adds a new children to the node, positioned just before
another child node that is also specified.
|
void |
NestableNode.insertChild(int index,
Node newChild)
Adds a new child to the node, at a specific position.
|
void |
NestableNode.removeChild(Node child)
Removes a specific child node from this node.
|
List<Node> |
DOMSelector.select(Node node)
Executes the DOM selector against the specified node, returning
the result of applying the selector expression.
|
List<Node> |
DOMSelector.select(Node node,
DOMSelector.INodeReferenceChecker referenceChecker)
Executes the DOM selector against the specified node and
using the specified reference checker (if references are used in the DOM selector
expression).
|
void |
DOMVisitor.visit(Node node) |
Modifier and Type | Method and Description |
---|---|
List<Node> |
DOMSelector.select(List<Node> nodes)
Executes the DOM selector against the specified list of nodes,
returning the result of applying the selector expression.
|
List<Node> |
DOMSelector.select(List<Node> nodes,
DOMSelector.INodeReferenceChecker referenceChecker)
Executes the DOM selector against the specified list of nodes and
using the specified reference checker (if references are used in the DOM selector
expression).
|
void |
NestableNode.setChildren(List<Node> newChildren)
Sets the new children of the node to the specified list.
|
Modifier and Type | Method and Description |
---|---|
List<Node> |
DOMSelectorFragmentSpec.extractFragment(Configuration configuration,
List<Node> nodes) |
List<Node> |
ElementAndAttributeNameFragmentSpec.extractFragment(Configuration configuration,
List<Node> nodes) |
List<Node> |
WholeFragmentSpec.extractFragment(Configuration configuration,
List<Node> nodes) |
List<Node> |
ChainedFragmentSpec.extractFragment(Configuration configuration,
List<Node> nodes) |
List<Node> |
IFragmentSpec.extractFragment(Configuration configuration,
List<Node> nodes)
Executes the fragment specification against a list of nodes representing a DOM tree
(or a set of trees), returning the extracted nodes.
|
Modifier and Type | Method and Description |
---|---|
List<Node> |
DOMSelectorFragmentSpec.extractFragment(Configuration configuration,
List<Node> nodes) |
List<Node> |
ElementAndAttributeNameFragmentSpec.extractFragment(Configuration configuration,
List<Node> nodes) |
List<Node> |
WholeFragmentSpec.extractFragment(Configuration configuration,
List<Node> nodes) |
List<Node> |
ChainedFragmentSpec.extractFragment(Configuration configuration,
List<Node> nodes) |
List<Node> |
IFragmentSpec.extractFragment(Configuration configuration,
List<Node> nodes)
Executes the fragment specification against a list of nodes representing a DOM tree
(or a set of trees), returning the extracted nodes.
|
Modifier and Type | Interface and Description |
---|---|
interface |
IProcessorMatcher<T extends Node>
Common interface for objects that specify when a processor can be applied
to a node.
|
Modifier and Type | Method and Description |
---|---|
IProcessorMatcher<? extends Node> |
IProcessor.getMatcher()
Returns the matcher (
IProcessorMatcher ) that
defines the applicability of this processor. |
Modifier and Type | Method and Description |
---|---|
protected abstract ProcessorResult |
AbstractProcessor.doProcess(Arguments arguments,
ProcessorMatchingContext processorMatchingContext,
Node node) |
boolean |
ProcessorAndContext.matches(Node node) |
boolean |
DocumentNodeProcessorMatcher.matches(Node node,
ProcessorMatchingContext context) |
boolean |
CommentNodeProcessorMatcher.matches(Node node,
ProcessorMatchingContext context) |
boolean |
ElementNameProcessorMatcher.matches(Node node,
ProcessorMatchingContext context) |
boolean |
TextNodeProcessorMatcher.matches(Node node,
ProcessorMatchingContext context) |
boolean |
IProcessorMatcher.matches(Node node,
ProcessorMatchingContext context)
Try to match the node, using the specified matching context.
|
boolean |
AttributeNameProcessorMatcher.matches(Node node,
ProcessorMatchingContext context) |
ProcessorResult |
IProcessor.process(Arguments arguments,
ProcessorMatchingContext processorMatchingContext,
Node node)
Processes a node.
|
ProcessorResult |
AbstractProcessor.process(Arguments arguments,
ProcessorMatchingContext processorMatchingContext,
Node node) |
Modifier and Type | Method and Description |
---|---|
protected abstract List<Node> |
AbstractFragmentHandlingAttrProcessor.computeFragment(Arguments arguments,
Element element,
String attributeName,
String attributeValue) |
protected List<Node> |
AbstractTextChildModifierAttrProcessor.getModifiedChildren(Arguments arguments,
Element element,
String attributeName) |
protected abstract List<Node> |
AbstractChildrenModifierAttrProcessor.getModifiedChildren(Arguments arguments,
Element element,
String attributeName) |
protected List<Node> |
AbstractUnescapedTextChildModifierAttrProcessor.getModifiedChildren(Arguments arguments,
Element element,
String attributeName) |
Modifier and Type | Method and Description |
---|---|
protected ProcessorResult |
AbstractAttrProcessor.doProcess(Arguments arguments,
ProcessorMatchingContext processorMatchingContext,
Node node) |
Modifier and Type | Method and Description |
---|---|
protected ProcessorResult |
AbstractCommentNodeProcessor.doProcess(Arguments arguments,
ProcessorMatchingContext processorMatchingContext,
Node node) |
Modifier and Type | Method and Description |
---|---|
protected ProcessorResult |
AbstractDocumentProcessor.doProcess(Arguments arguments,
ProcessorMatchingContext processorMatchingContext,
Node node) |
Modifier and Type | Method and Description |
---|---|
protected abstract List<Node> |
AbstractFragmentHandlingElementProcessor.computeFragment(Arguments arguments,
Element element) |
protected List<Node> |
AbstractUnescapedTextChildModifierElementProcessor.getMarkupSubstitutes(Arguments arguments,
Element element) |
protected List<Node> |
AbstractTextChildModifierElementProcessor.getMarkupSubstitutes(Arguments arguments,
Element element) |
protected abstract List<Node> |
AbstractMarkupSubstitutionElementProcessor.getMarkupSubstitutes(Arguments arguments,
Element element) |
Modifier and Type | Method and Description |
---|---|
protected ProcessorResult |
AbstractElementProcessor.doProcess(Arguments arguments,
ProcessorMatchingContext processorMatchingContext,
Node node) |
Modifier and Type | Method and Description |
---|---|
protected ProcessorResult |
AbstractTextNodeProcessor.doProcess(Arguments arguments,
ProcessorMatchingContext processorMatchingContext,
Node node) |
Modifier and Type | Method and Description |
---|---|
List<Node> |
StandardFragment.extractFragment(Configuration configuration,
IProcessingContext context,
TemplateRepository templateRepository)
Read the specified template from
TemplateRepository , and then apply
the IFragmentSpec to the result of parsing it (the template). |
List<Node> |
StandardDOMSelectorFragmentSpec.extractFragment(Configuration configuration,
List<Node> nodes) |
Modifier and Type | Method and Description |
---|---|
boolean |
StandardFragmentSignatureNodeReferenceChecker.checkReference(Node node,
String referenceValue) |
Modifier and Type | Method and Description |
---|---|
List<Node> |
StandardDOMSelectorFragmentSpec.extractFragment(Configuration configuration,
List<Node> nodes) |
Modifier and Type | Method and Description |
---|---|
protected List<Node> |
AbstractStandardFragmentHandlingAttrProcessor.computeFragment(Arguments arguments,
Element element,
String attributeName,
String attributeValue) |
Modifier and Type | Method and Description |
---|---|
List<Node> |
ITemplateParser.parseFragment(Configuration configuration,
String fragment)
Parses the document fragment contained in the given String object.
|
Modifier and Type | Method and Description |
---|---|
List<Node> |
AbstractHtmlTemplateParser.parseFragment(Configuration configuration,
String fragment) |
protected abstract List<Node> |
AbstractHtmlTemplateParser.unwrapFragment(Document document) |
protected List<Node> |
LegacyHtml5TemplateParser.unwrapFragment(Document document) |
Modifier and Type | Method and Description |
---|---|
List<Node> |
AbstractNonValidatingDOMTemplateParser.parseFragment(Configuration configuration,
String fragment)
Deprecated.
|
protected List<Node> |
XmlValidatingDOMTemplateParser.unwrapFragment(Document document)
Deprecated.
|
protected List<Node> |
XhtmlAndHtml5NonValidatingDOMTemplateParser.unwrapFragment(Document document)
Deprecated.
|
protected abstract List<Node> |
AbstractNonValidatingDOMTemplateParser.unwrapFragment(Document document)
Deprecated.
|
protected List<Node> |
XhtmlValidatingDOMTemplateParser.unwrapFragment(Document document)
Deprecated.
|
protected List<Node> |
XmlNonValidatingDOMTemplateParser.unwrapFragment(Document document)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
List<Node> |
AbstractNonValidatingSAXTemplateParser.parseFragment(Configuration configuration,
String fragment) |
protected List<Node> |
XhtmlValidatingSAXTemplateParser.unwrapFragment(Document document) |
protected List<Node> |
XmlNonValidatingSAXTemplateParser.unwrapFragment(Document document) |
protected List<Node> |
XmlValidatingSAXTemplateParser.unwrapFragment(Document document) |
protected List<Node> |
XhtmlAndHtml5NonValidatingSAXTemplateParser.unwrapFragment(Document document) |
protected abstract List<Node> |
AbstractNonValidatingSAXTemplateParser.unwrapFragment(Document document) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractGeneralTemplateWriter.writeNode(Arguments arguments,
Writer writer,
Node node) |
Modifier and Type | Method and Description |
---|---|
static Node |
StandardDOMTranslator.translateNode(Node domNode,
NestableNode parentNode,
String documentName) |
Modifier and Type | Method and Description |
---|---|
static List<Node> |
DOMUtils.extractFragmentByElementAndAttributeValue(List<Node> rootNodes,
String elementName,
String attributeName,
String attributeValue) |
Modifier and Type | Method and Description |
---|---|
static String |
DOMUtils.getHtml5For(Node node) |
static String |
DOMUtils.getOutputFor(Arguments arguments,
Node node,
AbstractGeneralTemplateWriter templateWriter) |
static String |
DOMUtils.getOutputFor(Node node,
AbstractGeneralTemplateWriter templateWriter,
String templateMode)
This method is for testing purposes only! It creates mock configuration, template and resource
resolution artifacts, etc.
|
static String |
DOMUtils.getXhtmlFor(Node node) |
static String |
DOMUtils.getXmlFor(Node node) |
Modifier and Type | Method and Description |
---|---|
static List<Node> |
DOMUtils.extractFragmentByElementAndAttributeValue(List<Node> rootNodes,
String elementName,
String attributeName,
String attributeValue) |
Copyright © 2017 The THYMELEAF team. All rights reserved.