Package org.thymeleaf.engine
Class AttributeNames.AttributeNamesRepository
- java.lang.Object
-
- org.thymeleaf.engine.AttributeNames.AttributeNamesRepository
-
- Enclosing class:
- AttributeNames
static final class AttributeNames.AttributeNamesRepository extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.locks.ReadWriteLocklockprivate java.util.concurrent.locks.LockreadLockprivate java.util.List<AttributeName>repositoryprivate java.util.List<java.lang.String>repositoryNamesprivate TemplateModetemplateModeprivate java.util.concurrent.locks.LockwriteLock
-
Constructor Summary
Constructors Constructor Description AttributeNamesRepository(TemplateMode templateMode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static intbinarySearch(boolean caseSensitive, java.util.List<java.lang.String> values, char[] text, int offset, int len)private static intbinarySearch(boolean caseSensitive, java.util.List<java.lang.String> values, java.lang.String text)private static intbinarySearch(boolean caseSensitive, java.util.List<java.lang.String> values, java.lang.String prefix, java.lang.String attributeName)(package private) AttributeNamegetAttribute(char[] text, int offset, int len)(package private) AttributeNamegetAttribute(java.lang.String completeAttributeName)(package private) AttributeNamegetAttribute(java.lang.String prefix, java.lang.String attributeName)private AttributeNamestoreAttribute(char[] text, int offset, int len)private AttributeNamestoreAttribute(java.lang.String attributeName)private AttributeNamestoreAttribute(java.lang.String prefix, java.lang.String attributeName)
-
-
-
Field Detail
-
templateMode
private final TemplateMode templateMode
-
repositoryNames
private final java.util.List<java.lang.String> repositoryNames
-
repository
private final java.util.List<AttributeName> repository
-
lock
private final java.util.concurrent.locks.ReadWriteLock lock
-
readLock
private final java.util.concurrent.locks.Lock readLock
-
writeLock
private final java.util.concurrent.locks.Lock writeLock
-
-
Constructor Detail
-
AttributeNamesRepository
AttributeNamesRepository(TemplateMode templateMode)
-
-
Method Detail
-
getAttribute
AttributeName getAttribute(char[] text, int offset, int len)
-
getAttribute
AttributeName getAttribute(java.lang.String completeAttributeName)
-
getAttribute
AttributeName getAttribute(java.lang.String prefix, java.lang.String attributeName)
-
storeAttribute
private AttributeName storeAttribute(char[] text, int offset, int len)
-
storeAttribute
private AttributeName storeAttribute(java.lang.String attributeName)
-
storeAttribute
private AttributeName storeAttribute(java.lang.String prefix, java.lang.String attributeName)
-
binarySearch
private static int binarySearch(boolean caseSensitive, java.util.List<java.lang.String> values, char[] text, int offset, int len)
-
binarySearch
private static int binarySearch(boolean caseSensitive, java.util.List<java.lang.String> values, java.lang.String text)
-
binarySearch
private static int binarySearch(boolean caseSensitive, java.util.List<java.lang.String> values, java.lang.String prefix, java.lang.String attributeName)
-
-