Package org.thymeleaf.engine
Class Attributes
- java.lang.Object
-
- org.thymeleaf.engine.Attributes
-
final class Attributes extends java.lang.Object- Since:
- 3.0.0
-
-
Field Summary
Fields Modifier and Type Field Description private intassociatedProcessorCount(package private) Attribute[]attributes(package private) static java.lang.StringDEFAULT_WHITE_SPACE(package private) static java.lang.String[]DEFAULT_WHITE_SPACE_ARRAY(package private) static Attribute[]EMPTY_ATTRIBUTE_ARRAY(package private) static AttributesEMPTY_ATTRIBUTES(package private) java.lang.String[]innerWhiteSpaces
-
Constructor Summary
Constructors Constructor Description Attributes(Attribute[] attributes, java.lang.String[] innerWhiteSpaces)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private intcomputeAssociatedProcessorCount()(package private) Attribute[]getAllAttributes()(package private) intgetAssociatedProcessorCount()(package private) AttributegetAttribute(AttributeName attributeName)(package private) AttributegetAttribute(TemplateMode templateMode, java.lang.String completeName)(package private) AttributegetAttribute(TemplateMode templateMode, java.lang.String prefix, java.lang.String name)(package private) java.util.Map<java.lang.String,java.lang.String>getAttributeMap()(package private) booleanhasAttribute(AttributeName attributeName)(package private) booleanhasAttribute(TemplateMode templateMode, java.lang.String completeName)(package private) booleanhasAttribute(TemplateMode templateMode, java.lang.String prefix, java.lang.String name)private AttributesremoveAttribute(int attrIdx)(package private) AttributesremoveAttribute(AttributeName attributeName)(package private) AttributesremoveAttribute(TemplateMode templateMode, java.lang.String completeName)(package private) AttributesremoveAttribute(TemplateMode templateMode, java.lang.String prefix, java.lang.String name)(package private) AttributesreplaceAttribute(AttributeDefinitions attributeDefinitions, TemplateMode templateMode, AttributeName oldName, AttributeDefinition newAttributeDefinition, java.lang.String newCompleteName, java.lang.String value, AttributeValueQuotes valueQuotes)private intsearchAttribute(AttributeName attributeName)private intsearchAttribute(TemplateMode templateMode, java.lang.String completeName)private intsearchAttribute(TemplateMode templateMode, java.lang.String prefix, java.lang.String name)(package private) AttributessetAttribute(AttributeDefinitions attributeDefinitions, TemplateMode templateMode, AttributeDefinition attributeDefinition, java.lang.String completeName, java.lang.String value, AttributeValueQuotes valueQuotes)java.lang.StringtoString()(package private) voidwrite(java.io.Writer writer)
-
-
-
Field Detail
-
DEFAULT_WHITE_SPACE
static final java.lang.String DEFAULT_WHITE_SPACE
- See Also:
- Constant Field Values
-
DEFAULT_WHITE_SPACE_ARRAY
static final java.lang.String[] DEFAULT_WHITE_SPACE_ARRAY
-
EMPTY_ATTRIBUTES
static final Attributes EMPTY_ATTRIBUTES
-
EMPTY_ATTRIBUTE_ARRAY
static final Attribute[] EMPTY_ATTRIBUTE_ARRAY
-
attributes
final Attribute[] attributes
-
innerWhiteSpaces
final java.lang.String[] innerWhiteSpaces
-
associatedProcessorCount
private volatile int associatedProcessorCount
-
-
Constructor Detail
-
Attributes
Attributes(Attribute[] attributes, java.lang.String[] innerWhiteSpaces)
-
-
Method Detail
-
getAssociatedProcessorCount
int getAssociatedProcessorCount()
-
computeAssociatedProcessorCount
private int computeAssociatedProcessorCount()
-
searchAttribute
private int searchAttribute(TemplateMode templateMode, java.lang.String completeName)
-
searchAttribute
private int searchAttribute(TemplateMode templateMode, java.lang.String prefix, java.lang.String name)
-
searchAttribute
private int searchAttribute(AttributeName attributeName)
-
hasAttribute
boolean hasAttribute(TemplateMode templateMode, java.lang.String completeName)
-
hasAttribute
boolean hasAttribute(TemplateMode templateMode, java.lang.String prefix, java.lang.String name)
-
hasAttribute
boolean hasAttribute(AttributeName attributeName)
-
getAttribute
Attribute getAttribute(TemplateMode templateMode, java.lang.String completeName)
-
getAttribute
Attribute getAttribute(TemplateMode templateMode, java.lang.String prefix, java.lang.String name)
-
getAttribute
Attribute getAttribute(AttributeName attributeName)
-
getAllAttributes
Attribute[] getAllAttributes()
-
getAttributeMap
java.util.Map<java.lang.String,java.lang.String> getAttributeMap()
-
setAttribute
Attributes setAttribute(AttributeDefinitions attributeDefinitions, TemplateMode templateMode, AttributeDefinition attributeDefinition, java.lang.String completeName, java.lang.String value, AttributeValueQuotes valueQuotes)
-
replaceAttribute
Attributes replaceAttribute(AttributeDefinitions attributeDefinitions, TemplateMode templateMode, AttributeName oldName, AttributeDefinition newAttributeDefinition, java.lang.String newCompleteName, java.lang.String value, AttributeValueQuotes valueQuotes)
-
removeAttribute
Attributes removeAttribute(TemplateMode templateMode, java.lang.String prefix, java.lang.String name)
-
removeAttribute
Attributes removeAttribute(TemplateMode templateMode, java.lang.String completeName)
-
removeAttribute
Attributes removeAttribute(AttributeName attributeName)
-
removeAttribute
private Attributes removeAttribute(int attrIdx)
-
write
void write(java.io.Writer writer) throws java.io.IOException- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-