proj_name
stringclasses
131 values
relative_path
stringlengths
30
228
class_name
stringlengths
1
68
func_name
stringlengths
1
48
masked_class
stringlengths
78
9.82k
func_body
stringlengths
46
9.61k
len_input
int64
29
2.01k
len_output
int64
14
1.94k
total
int64
55
2.05k
relevant_context
stringlengths
0
38.4k
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/CDATASection.java
CDATASection
getCDATASection
class CDATASection extends AbstractTextualTemplateEvent implements ICDATASection { // CDATA Section nodes do not exist in text parsing, so we are safe expliciting markup structures here static final String CDATA_PREFIX = "<![CDATA["; static final String CDATA_SUFFIX = "]]>"; final String prefix; ...
String c = this.computedCDATASectionStr; if (c == null) { this.computedCDATASectionStr = c = this.prefix + getContentText() + this.suffix; } return c;
884
63
947
<methods>public java.lang.String toString() ,public final void writeContent(java.io.Writer) throws java.io.IOException<variables>private volatile java.lang.Boolean computedContentIsInlineable,private volatile java.lang.Boolean computedContentIsWhitespace,private volatile int computedContentLength,private volatile java....
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/CDATASectionStructureHandler.java
CDATASectionStructureHandler
setContent
class CDATASectionStructureHandler implements ICDATASectionStructureHandler { boolean setContent; CharSequence setContentValue; boolean replaceWithModel; IModel replaceWithModelValue; boolean replaceWithModelProcessable; boolean removeCDATASection; CDATASectionStructureHandler() { ...
reset(); Validate.notNull(content, "Content cannot be null"); this.setContent = true; this.setContentValue = content;
320
42
362
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/CloseElementTag.java
CloseElementTag
asEngineCloseElementTag
class CloseElementTag extends AbstractElementTag implements ICloseElementTag, IEngineTemplateEvent { final String trailingWhiteSpace; // can be null if there is none final boolean unmatched; CloseElementTag( final TemplateMode templateMode, final Element...
if (closeElementTag instanceof CloseElementTag) { return (CloseElementTag) closeElementTag; } return new CloseElementTag( closeElementTag.getTemplateMode(), closeElementTag.getElementDefinition(), closeElementTag.getElementCompleteName(), null, clos...
686
113
799
<methods>public final java.lang.String getElementCompleteName() ,public final org.thymeleaf.engine.ElementDefinition getElementDefinition() ,public final org.thymeleaf.templatemode.TemplateMode getTemplateMode() ,public final boolean isSynthetic() ,public final java.lang.String toString() <variables>final non-sealed ja...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/Comment.java
Comment
charAt
class Comment extends AbstractTextualTemplateEvent implements IComment { // Comment nodes do not exist in text parsing, so we are safe expliciting markup structures here private static final String COMMENT_PREFIX = "<!--"; private static final String COMMENT_SUFFIX = "-->"; final String prefix; f...
if (index < this.prefix.length()) { return this.prefix.charAt(index); } final int prefixedContentLen = this.prefix.length() + getContentLength(); if (index >= prefixedContentLen) { return this.suffix.charAt(index - prefixedContentLen); } return ch...
775
99
874
<methods>public java.lang.String toString() ,public final void writeContent(java.io.Writer) throws java.io.IOException<variables>private volatile java.lang.Boolean computedContentIsInlineable,private volatile java.lang.Boolean computedContentIsWhitespace,private volatile int computedContentLength,private volatile java....
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/CommentStructureHandler.java
CommentStructureHandler
setContent
class CommentStructureHandler implements ICommentStructureHandler { boolean setContent; CharSequence setContentValue; boolean replaceWithModel; IModel replaceWithModelValue; boolean replaceWithModelProcessable; boolean removeComment; CommentStructureHandler() { super(); ...
reset(); Validate.notNull(content, "Content cannot be null"); this.setContent = true; this.setContentValue = content;
299
42
341
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/DataDrivenTemplateIterator.java
DataDrivenTemplateIterator
finishStep
class DataDrivenTemplateIterator implements Iterator<Object> { private static final char[] SSE_HEAD_EVENT_NAME = "head".toCharArray(); private static final char[] SSE_MESSAGE_EVENT_NAME = "message".toCharArray(); private static final char[] SSE_TAIL_EVENT_NAME = "tail".toCharArray(); private final Li...
if (!this.inStep) { return; } this.inStep = false; if (this.sseControl != null) { try { this.sseControl.endEvent(); } catch (final IOException e) { throw new TemplateProcessingException("Cannot signal end of SSE event",...
1,712
93
1,805
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/DecreaseContextLevelProcessable.java
DecreaseContextLevelProcessable
process
class DecreaseContextLevelProcessable implements IEngineProcessable { private final IEngineContext context; private final TemplateFlowController flowController; DecreaseContextLevelProcessable(final IEngineContext context, final TemplateFlowController flowController) { super(); this.conte...
/* * First, check the stopProcess flag */ if (this.flowController.stopProcessing) { return false; } /* * Process the queue */ if (this.context != null) { this.context.decreaseLevel(); } return true; ...
111
88
199
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/DocType.java
DocType
computeDocType
class DocType extends AbstractTemplateEvent implements IDocType, IEngineTemplateEvent { // DOCTYPE nodes do not exist in text parsing, so we are safe expliciting markup structures here public static final String DEFAULT_KEYWORD = "DOCTYPE"; public static final String DEFAULT_ELEMENT_NAME = "html"; publ...
final StringBuilder strBuilder = new StringBuilder(120); strBuilder.append("<!"); strBuilder.append(this.keyword); strBuilder.append(' '); strBuilder.append(this.elementName); if (this.type != null) { strBuilder.append(' '); strBuilder.append(ty...
1,098
239
1,337
<methods>public final int getCol() ,public final int getLine() ,public final java.lang.String getTemplateName() ,public final boolean hasLocation() <variables>final non-sealed int col,final non-sealed int line,final non-sealed java.lang.String templateName
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/DocTypeStructureHandler.java
DocTypeStructureHandler
reset
class DocTypeStructureHandler implements IDocTypeStructureHandler { boolean setDocType; String setDocTypeKeyword; String setDocTypeElementName; String setDocTypePublicId; String setDocTypeSystemId; String setDocTypeInternalSubset; boolean replaceWithModel; IModel replaceWithModelValue;...
this.setDocType = false; this.setDocTypeKeyword = null; this.setDocTypeElementName = null; this.setDocTypePublicId = null; this.setDocTypeSystemId = null; this.setDocTypeInternalSubset = null; this.replaceWithModel = false; this.replaceWithModelValue = ...
419
121
540
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/ElementDefinition.java
ElementDefinition
equals
class ElementDefinition { final ElementName elementName; private final Set<IElementProcessor> associatedProcessorsSet; final IElementProcessor[] associatedProcessors; // The internal representation is an array for better performance final boolean hasAssociatedProcessors; ElementDefinition(final E...
if (this == o) { return true; } if (!o.getClass().equals(this.getClass())) { return false; } final ElementDefinition that = (ElementDefinition) o; if (!this.elementName.equals(that.elementName)) { return false; } r...
474
93
567
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/ElementModelStructureHandler.java
ElementModelStructureHandler
setLocalVariable
class ElementModelStructureHandler implements IElementModelStructureHandler { boolean setLocalVariable; Map<String,Object> addedLocalVariables; boolean removeLocalVariable; Set<String> removedLocalVariableNames; boolean setSelectionTarget; Object selectionTargetObject; boolean setInline...
// Can be combined with others, no need to resetGathering this.setLocalVariable = true; if (this.addedLocalVariables == null) { this.addedLocalVariables = new HashMap<String, Object>(3); } this.addedLocalVariables.put(name, value);
817
81
898
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/ElementName.java
ElementName
toString
class ElementName { /* * NOTE it is VERY important that an ElementName does NOT contain a TemplateMode, because there is a type * of ElementName (TextElementName) that is used for 3 different template modes: TEXT, JAVASCRIPT and CSS */ protected final String prefix; protected final String e...
final StringBuilder strBuilder = new StringBuilder(); strBuilder.append('{'); strBuilder.append(this.completeElementNames[0]); for (int i = 1; i < this.completeElementNames.length; i++) { strBuilder.append(','); strBuilder.append(this.completeElementNames[i]); ...
546
106
652
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/EngineContextManager.java
EngineContextManager
createEngineContextIfNeeded
class EngineContextManager { static IEngineContext prepareEngineContext( final IEngineConfiguration configuration, final TemplateData templateData, final Map<String, Object> templateResolutionAttributes, final IContext context) { final IEngineContext engineContext = ...
if (context instanceof IEngineContext) { // If this context is already an IEngineContext, we will not clone it return (IEngineContext) context; } // It's the engine context factory the one who has the responsibility of creating the specific // implementation of...
330
121
451
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/EngineEventUtils.java
EngineEventUtils
computeWhitespace
class EngineEventUtils { public static boolean isWhitespace(final IText text) { if (text == null) { return false; } if (text instanceof Text) { return ((Text) text).isWhitespace(); } return computeWhitespace(text); } public static bool...
int n = text.length(); if (n == 0) { return false; } char c; while (n-- != 0) { c = text.charAt(n); if (!Character.isWhitespace(c)) { return false; } } return true;
1,165
86
1,251
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/GatheringModelProcessable.java
GatheringModelProcessable
process
class GatheringModelProcessable extends AbstractGatheringModelProcessable { private final IEngineContext context; private int offset; GatheringModelProcessable( final IEngineConfiguration configuration, ProcessorTemplateHandler processorTemplateHandler, final IEngineContext context, ...
/* * First, check the stopProcess flag */ final TemplateFlowController flowController = getFlowController(); if (flowController != null && flowController.stopProcessing) { return false; } if (this.offset == 0) { /* * Rese...
195
301
496
<methods>public final void gatherCDATASection(org.thymeleaf.model.ICDATASection) ,public final void gatherCloseElement(org.thymeleaf.model.ICloseElementTag) ,public final void gatherComment(org.thymeleaf.model.IComment) ,public final void gatherDocType(org.thymeleaf.model.IDocType) ,public final void gatherOpenElement(...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/HTMLAttributeName.java
HTMLAttributeName
forName
class HTMLAttributeName extends AttributeName { final String completeNamespacedAttributeName; final String completeHTML5AttributeName; static HTMLAttributeName forName(final String prefix, final String attributeName) {<FILL_FUNCTION_BODY>} private HTMLAttributeName( final String prefix...
final boolean hasPrefix = prefix != null && prefix.length() > 0; final String nameAttributeName = (attributeName == null || attributeName.length() == 0)? null : attributeName.toLowerCase(); final String namePrefix; final String completeNamespacedAttributeName; ...
241
278
519
<methods>public boolean equals(java.lang.Object) ,public java.lang.String getAttributeName() ,public java.lang.String[] getCompleteAttributeNames() ,public java.lang.String getPrefix() ,public int hashCode() ,public boolean isPrefixed() ,public java.lang.String toString() <variables>protected final non-sealed java.lang...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/HTMLElementName.java
HTMLElementName
forName
class HTMLElementName extends ElementName { final String completeNamespacedElementName; final String completeHTML5ElementName; static HTMLElementName forName(final String prefix, final String elementName) {<FILL_FUNCTION_BODY>} private HTMLElementName( final String prefix, final Strin...
final boolean hasPrefix = prefix != null && prefix.length() > 0; // No-suffix element names are allowed by the HTML5 Custom Element specification ("<tag->" is valid), // so we will just normalize to the empty string so that we treat them in the same way as no-name // elements in the t...
238
337
575
<methods>public boolean equals(java.lang.Object) ,public java.lang.String[] getCompleteElementNames() ,public java.lang.String getElementName() ,public java.lang.String getPrefix() ,public int hashCode() ,public boolean isPrefixed() ,public java.lang.String toString() <variables>protected final non-sealed java.lang.Str...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/IterationStatusVar.java
IterationStatusVar
toString
class IterationStatusVar { int index; Integer size; // it can be null if we don't know the size of the iterated object beforehand! Object current; IterationStatusVar() { super(); } public int getIndex() { return this.index; } public int getCount() { return thi...
return "{index = " + this.index + ", count = " + (this.index + 1) + ", size = " + this.size + ", current = " + (this.current == null? "null" : this.current.toString()) + "}";
320
66
386
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/ModelBuilderTemplateHandler.java
ModelBuilderTemplateHandler
handleCDATASection
class ModelBuilderTemplateHandler extends AbstractTemplateHandler { private final List<IEngineTemplateEvent> events; private final IEngineConfiguration configuration; private final TemplateData templateData; public ModelBuilderTemplateHandler(final IEngineConfiguration configuration, final TemplateD...
this.events.add(CDATASection.asEngineCDATASection(cdataSection)); // The engine event we might have created is not forwarded - this makes cache creating transparent to the handler chain super.handleCDATASection(cdataSection);
1,110
65
1,175
<methods>public void handleCDATASection(org.thymeleaf.model.ICDATASection) ,public void handleCloseElement(org.thymeleaf.model.ICloseElementTag) ,public void handleComment(org.thymeleaf.model.IComment) ,public void handleDocType(org.thymeleaf.model.IDocType) ,public void handleOpenElement(org.thymeleaf.model.IOpenEleme...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/OpenElementTag.java
OpenElementTag
removeAttribute
class OpenElementTag extends AbstractProcessableElementTag implements IOpenElementTag, IEngineTemplateEvent { OpenElementTag( final TemplateMode templateMode, final ElementDefinition elementDefinition, final String elementCompleteName, fina...
final Attributes oldAttributes = (this.attributes != null? this.attributes : Attributes.EMPTY_ATTRIBUTES); final Attributes newAttributes = oldAttributes.removeAttribute(attributeName); if (oldAttributes == newAttributes) { return this; } return new OpenElementTag(th...
1,609
117
1,726
<methods>public org.thymeleaf.model.IAttribute[] getAllAttributes() ,public final org.thymeleaf.model.IAttribute getAttribute(java.lang.String) ,public final org.thymeleaf.model.IAttribute getAttribute(java.lang.String, java.lang.String) ,public final org.thymeleaf.model.IAttribute getAttribute(org.thymeleaf.engine.Att...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/OpenElementTagModelProcessable.java
OpenElementTagModelProcessable
process
class OpenElementTagModelProcessable implements IEngineProcessable { private final OpenElementTag openElementTag; private final ProcessorExecutionVars vars; private final TemplateFlowController flowController; private final TemplateModelController modelController; private final ProcessorTemplateHan...
/* * First, check the stopProcess flag */ if (this.flowController.stopProcessing) { return false; } if (!this.beforeProcessed) { /* * PROCESS THE QUEUE BEFORE DELEGATING, if specified to do so */ if (this...
317
634
951
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/OutputTemplateHandler.java
OutputTemplateHandler
handleCDATASection
class OutputTemplateHandler extends AbstractTemplateHandler { private final Writer writer; /** * <p> * Creates a new instance of this handler. * </p> * * @param writer the writer to which output will be written. */ public OutputTemplateHandler(final Writer writer) { ...
try { cdataSection.write(this.writer); } catch (final Exception e) { throw new TemplateOutputException( "An error happened during template rendering", cdataSection.getTemplateName(), cdataSection.getLine(), cdataSection.getCol(), ...
1,185
107
1,292
<methods>public void handleCDATASection(org.thymeleaf.model.ICDATASection) ,public void handleCloseElement(org.thymeleaf.model.ICloseElementTag) ,public void handleComment(org.thymeleaf.model.IComment) ,public void handleDocType(org.thymeleaf.model.IDocType) ,public void handleOpenElement(org.thymeleaf.model.IOpenEleme...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/ProcessingInstruction.java
ProcessingInstruction
asEngineProcessingInstruction
class ProcessingInstruction extends AbstractTemplateEvent implements IProcessingInstruction, IEngineTemplateEvent { private final String target; private final String content; private final String processingInstruction; ProcessingInstruction( final String target, final Strin...
if (processingInstruction instanceof ProcessingInstruction) { return (ProcessingInstruction) processingInstruction; } return new ProcessingInstruction( null, processingInstruction.getTarget(), processingInstruction.getContent(), proc...
557
89
646
<methods>public final int getCol() ,public final int getLine() ,public final java.lang.String getTemplateName() ,public final boolean hasLocation() <variables>final non-sealed int col,final non-sealed int line,final non-sealed java.lang.String templateName
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/ProcessingInstructionStructureHandler.java
ProcessingInstructionStructureHandler
replaceWith
class ProcessingInstructionStructureHandler implements IProcessingInstructionStructureHandler { boolean setProcessingInstruction; String setProcessingInstructionTarget; String setProcessingInstructionContent; boolean replaceWithModel; IModel replaceWithModelValue; boolean replaceWithModelProc...
reset(); Validate.notNull(model, "Model cannot be null"); this.replaceWithModel = true; this.replaceWithModelValue = model; this.replaceWithModelProcessable = processable;
381
57
438
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/ProcessorExecutionVars.java
ProcessorExecutionVars
cloneVars
class ProcessorExecutionVars { final ElementProcessorIterator processorIterator; Model modelBefore = null; Model modelAfter = null; boolean modelAfterProcessable = false; boolean discardEvent = false; TemplateModelController.SkipBody skipBody = TemplateModelController.SkipBody.PROCESS; bool...
final ProcessorExecutionVars clone = new ProcessorExecutionVars(); clone.processorIterator.resetAsCloneOf(this.processorIterator); if (this.modelBefore != null) { clone.modelBefore = (Model) this.modelBefore.cloneModel(); } if (this.modelAfter != null) { ...
142
167
309
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/SSEThrottledTemplateWriter.java
SSEThrottledTemplateWriter
doStartEvent
class SSEThrottledTemplateWriter extends ThrottledTemplateWriter implements ISSEThrottledTemplateWriterControl { private final static char[] SSE_ID_PREFIX = "id: ".toCharArray(); private final static char[] SSE_EVENT_PREFIX = "event: ".toCharArray(); private final static char[] SSE_DATA_PREFIX = "data: ".t...
this.eventHasMeta = false; if (this.event != null) { // Write the "event" field if (!checkTokenValid(this.event)) { throw new IllegalArgumentException("Event for SSE event cannot contain a newline (\\n) character"); } super.write(SSE_EVENT...
1,446
225
1,671
<methods>public void close() throws java.io.IOException,public void flush() throws java.io.IOException,public int getMaxOverflowSize() ,public int getOverflowGrowCount() ,public int getWrittenCount() ,public boolean isOverflown() throws java.io.IOException,public boolean isStopped() throws java.io.IOException,public vo...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/SimpleModelProcessable.java
SimpleModelProcessable
process
class SimpleModelProcessable implements IEngineProcessable { private final Model model; private final ITemplateHandler modelHandler; private final TemplateFlowController flowController; private int offset; SimpleModelProcessable( final Model model, final ITemplateHandler modelHandler...
/* * First, check the stopProcess flag */ if (this.flowController.stopProcessing) { return false; } /* * Process the queue */ this.offset += this.model.process(this.modelHandler, this.offset, this.flowController); /* ...
187
128
315
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/StandaloneElementTag.java
StandaloneElementTag
setAttribute
class StandaloneElementTag extends AbstractProcessableElementTag implements IStandaloneElementTag, IEngineTemplateEvent { final boolean minimized; StandaloneElementTag( final TemplateMode templateMode, final ElementDefinition elementDefinition, fin...
final Attributes oldAttributes = (this.attributes != null? this.attributes : Attributes.EMPTY_ATTRIBUTES); final Attributes newAttributes = oldAttributes.setAttribute(attributeDefinitions, this.templateMode, attributeDefinition, completeName, value, valueQuotes); return new Stan...
1,883
126
2,009
<methods>public org.thymeleaf.model.IAttribute[] getAllAttributes() ,public final org.thymeleaf.model.IAttribute getAttribute(java.lang.String) ,public final org.thymeleaf.model.IAttribute getAttribute(java.lang.String, java.lang.String) ,public final org.thymeleaf.model.IAttribute getAttribute(org.thymeleaf.engine.Att...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/StandaloneElementTagModelProcessable.java
StandaloneElementTagModelProcessable
process
class StandaloneElementTagModelProcessable implements IEngineProcessable { private final StandaloneElementTag standaloneElementTag; private final ProcessorExecutionVars vars; private final IEngineContext context; private final TemplateFlowController flowController; private final TemplateModelContro...
/* * First, check the stopProcess flag */ if (this.flowController.stopProcessing) { return false; } if (!this.beforeProcessed) { /* * PROCESS THE QUEUE BEFORE DELEGATING, if specified to do so */ if (this...
348
649
997
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/TemplateBoundariesStructureHandler.java
TemplateBoundariesStructureHandler
setLocalVariable
class TemplateBoundariesStructureHandler implements ITemplateBoundariesStructureHandler { boolean insertText; String insertTextValue; boolean insertTextProcessable; boolean insertModel; IModel insertModelValue; boolean insertModelProcessable; boolean setLocalVariable; Map<String,Obje...
// Can be combined with others, no need to resetGathering this.setLocalVariable = true; if (this.addedLocalVariables == null) { this.addedLocalVariables = new HashMap<String, Object>(3); } this.addedLocalVariables.put(name, value);
953
81
1,034
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/TemplateData.java
TemplateData
hasTemplateSelectors
class TemplateData { private final String template; private final Set<String> templateSelectors; private final ITemplateResource templateResource; private final TemplateMode templateMode; private final ICacheEntryValidity cacheValidity; /** * <p> * Builds a new {@code TemplateData...
// Checking for null is enough, as we have already processed this in the constructor return this.templateSelectors != null;
1,475
34
1,509
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/TemplateEnd.java
TemplateEnd
write
class TemplateEnd extends AbstractTemplateEvent implements ITemplateEnd, IEngineTemplateEvent { final static TemplateEnd TEMPLATE_END_INSTANCE = new TemplateEnd(); private TemplateEnd() { super(); } public void accept(final IModelVisitor visitor) { visitor.visit(this); } ...
// Nothing to be done here -- template end events are not writable to output!
230
22
252
<methods>public final int getCol() ,public final int getLine() ,public final java.lang.String getTemplateName() ,public final boolean hasLocation() <variables>final non-sealed int col,final non-sealed int line,final non-sealed java.lang.String templateName
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/TemplateEndModelProcessable.java
TemplateEndModelProcessable
process
class TemplateEndModelProcessable implements IEngineProcessable { private final ITemplateEnd templateEnd; private final Model model; private final ITemplateHandler modelHandler; private final ProcessorTemplateHandler processorTemplateHandler; private final ITemplateHandler nextHandler; private ...
/* * First, check the stopProcess flag */ if (this.flowController.stopProcessing) { return false; } /* * Process the queue */ this.offset += this.model.process(this.modelHandler, this.offset, this.flowController); if (thi...
240
286
526
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/TemplateHandlerAdapterRawHandler.java
TemplateHandlerAdapterRawHandler
handleText
class TemplateHandlerAdapterRawHandler implements IRawHandler { private final String templateName; private final ITemplateHandler templateHandler; private final int lineOffset; private final int colOffset; public TemplateHandlerAdapterRawHandler(final String templateName, ...
this.templateHandler.handleText( new Text(new String(buffer, offset, len), this.templateName, this.lineOffset + line, (line == 1? this.colOffset : 0) + col));
465
55
520
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/TemplateModel.java
TemplateModel
immutableModelException
class TemplateModel implements IModel { final IEngineConfiguration configuration; final TemplateData templateData; final IEngineTemplateEvent[] queue; // This is final because this IModel is IMMUTABLE // Package-protected constructor, because we don't want anyone creating these objects from outside t...
throw new UnsupportedOperationException( "Modifications are not allowed on immutable model objects. This model object is an immutable " + "implementation of the " + IModel.class.getName() + " interface, and no modifications are allowed in " + "order to keep cache...
1,135
117
1,252
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/TemplateStart.java
TemplateStart
write
class TemplateStart extends AbstractTemplateEvent implements ITemplateStart, IEngineTemplateEvent { final static TemplateStart TEMPLATE_START_INSTANCE = new TemplateStart(); private TemplateStart() { super(); } public void accept(final IModelVisitor visitor) { visitor.visit(this...
// Nothing to be done here -- template start events are not writable to output!
230
22
252
<methods>public final int getCol() ,public final int getLine() ,public final java.lang.String getTemplateName() ,public final boolean hasLocation() <variables>final non-sealed int col,final non-sealed int line,final non-sealed java.lang.String templateName
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/Text.java
Text
asEngineText
class Text extends AbstractTextualTemplateEvent implements IText { Text(final CharSequence text) { super(text); } Text(final CharSequence text, final String templateName, final int line, final int col) { super(text, templateName, line, col); } public String getText() { ...
if (text instanceof Text) { return (Text) text; } return new Text(text.getText(), text.getTemplateName(), text.getLine(), text.getCol());
339
49
388
<methods>public java.lang.String toString() ,public final void writeContent(java.io.Writer) throws java.io.IOException<variables>private volatile java.lang.Boolean computedContentIsInlineable,private volatile java.lang.Boolean computedContentIsWhitespace,private volatile int computedContentLength,private volatile java....
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/TextAttributeName.java
TextAttributeName
forName
class TextAttributeName extends AttributeName { final String completeNamespacedAttributeName; static TextAttributeName forName(final String prefix, final String attributeName) {<FILL_FUNCTION_BODY>} private TextAttributeName( final String prefix, final String attributeName, fin...
final boolean hasPrefix = prefix != null && prefix.length() > 0; final String completeNamespacedAttributeName; final String[] completeAttributeNames; if (hasPrefix) { completeNamespacedAttributeName = prefix + ":" + attributeName; completeAttributeNames = new...
166
154
320
<methods>public boolean equals(java.lang.Object) ,public java.lang.String getAttributeName() ,public java.lang.String[] getCompleteAttributeNames() ,public java.lang.String getPrefix() ,public int hashCode() ,public boolean isPrefixed() ,public java.lang.String toString() <variables>protected final non-sealed java.lang...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/TextElementName.java
TextElementName
forName
class TextElementName extends ElementName { final String completeNamespacedElementName; static TextElementName forName(final String prefix, final String elementName) {<FILL_FUNCTION_BODY>} private TextElementName( final String prefix, final String elementName, final String comp...
final boolean hasPrefix = prefix != null && prefix.length() > 0; final String completeNamespacedElementName; final String[] completeElementNames; if (hasPrefix) { completeNamespacedElementName = prefix + ":" + elementName; completeElementNames = new String[] ...
166
154
320
<methods>public boolean equals(java.lang.Object) ,public java.lang.String[] getCompleteElementNames() ,public java.lang.String getElementName() ,public java.lang.String getPrefix() ,public int hashCode() ,public boolean isPrefixed() ,public java.lang.String toString() <variables>protected final non-sealed java.lang.Str...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/TextStructureHandler.java
TextStructureHandler
reset
class TextStructureHandler implements ITextStructureHandler { boolean setText; CharSequence setTextValue; boolean replaceWithModel; IModel replaceWithModelValue; boolean replaceWithModelProcessable; boolean removeText; TextStructureHandler() { super(); reset(); } ...
this.setText = false; this.setTextValue = null; this.replaceWithModel = false; this.replaceWithModelValue = null; this.replaceWithModelProcessable = false; this.removeText = false;
271
66
337
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/ThrottledTemplateWriter.java
ThrottledTemplateWriter
setOutput
class ThrottledTemplateWriter extends Writer implements IThrottledTemplateWriterControl { private final String templateName; private final TemplateFlowController flowController; private IThrottledTemplateWriterAdapter adapter; private Writer writer; private boolean flushable; ThrottledTempl...
if (this.adapter != null && this.adapter instanceof ThrottledTemplateWriterWriterAdapter) { throw new TemplateOutputException( "The throttled processor has already been initialized to use char-based output (Writer), " + "but an OutputStream has been specified...
1,083
963
2,046
<methods>public java.io.Writer append(java.lang.CharSequence) throws java.io.IOException,public java.io.Writer append(char) throws java.io.IOException,public java.io.Writer append(java.lang.CharSequence, int, int) throws java.io.IOException,public abstract void close() throws java.io.IOException,public abstract void fl...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/XMLAttributeName.java
XMLAttributeName
forName
class XMLAttributeName extends AttributeName { final String completeNamespacedAttributeName; static XMLAttributeName forName(final String prefix, final String attributeName) {<FILL_FUNCTION_BODY>} private XMLAttributeName( final String prefix, final String attributeName, final ...
final boolean hasPrefix = prefix != null && prefix.length() > 0; final String completeNamespacedAttributeName; final String[] completeAttributeNames; if (hasPrefix) { completeNamespacedAttributeName = prefix + ":" + attributeName; completeAttributeNames = new...
175
157
332
<methods>public boolean equals(java.lang.Object) ,public java.lang.String getAttributeName() ,public java.lang.String[] getCompleteAttributeNames() ,public java.lang.String getPrefix() ,public int hashCode() ,public boolean isPrefixed() ,public java.lang.String toString() <variables>protected final non-sealed java.lang...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/XMLDeclaration.java
XMLDeclaration
computeXmlDeclaration
class XMLDeclaration extends AbstractTemplateEvent implements IXMLDeclaration, IEngineTemplateEvent { // XML Declaration nodes do not exist in text parsing, so we are safe expliciting markup structures here public static final String DEFAULT_KEYWORD = "xml"; public static final String DEFAULT_VERSION = "1....
final StringBuilder strBuilder = new StringBuilder(40); strBuilder.append("<?"); strBuilder.append(this.keyword); if (this.version != null) { strBuilder.append(' '); strBuilder.append(XMLDeclaration.ATTRIBUTE_NAME_VERSION); strBuilder.append("=\"");...
787
285
1,072
<methods>public final int getCol() ,public final int getLine() ,public final java.lang.String getTemplateName() ,public final boolean hasLocation() <variables>final non-sealed int col,final non-sealed int line,final non-sealed java.lang.String templateName
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/XMLDeclarationStructureHandler.java
XMLDeclarationStructureHandler
replaceWith
class XMLDeclarationStructureHandler implements IXMLDeclarationStructureHandler { boolean setXMLDeclaration; String setXMLDeclarationKeyword; String setXMLDeclarationVersion; String setXMLDeclarationEncoding; String setXMLDeclarationStandalone; boolean replaceWithModel; IModel replaceWith...
reset(); Validate.notNull(model, "Model cannot be null"); this.replaceWithModel = true; this.replaceWithModelValue = model; this.replaceWithModelProcessable = processable;
410
57
467
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/engine/XMLElementName.java
XMLElementName
forName
class XMLElementName extends ElementName { final String completeNamespacedElementName; static XMLElementName forName(final String prefix, final String elementName) {<FILL_FUNCTION_BODY>} private XMLElementName( final String prefix, final String elementName, final String complet...
final boolean hasPrefix = prefix != null && prefix.length() > 0; final String completeNamespacedElementName; final String[] completeElementNames; if (hasPrefix) { completeNamespacedElementName = prefix + ":" + elementName; completeElementNames = new String[] ...
172
156
328
<methods>public boolean equals(java.lang.Object) ,public java.lang.String[] getCompleteElementNames() ,public java.lang.String getElementName() ,public java.lang.String getPrefix() ,public int hashCode() ,public boolean isPrefixed() ,public java.lang.String toString() <variables>protected final non-sealed java.lang.Str...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/exceptions/TemplateAssertionException.java
TemplateAssertionException
createMessage
class TemplateAssertionException extends RuntimeException { private static final long serialVersionUID = -2261382147273524844L; private static final String ASSERTION_MESSAGE = "Assertion '%s' not valid in template '%s'"; private static final String ASSERTION_MESSAGE_LINE_COL = "Assertion '%s' not valid in...
if (line == null || col == null) { return String.format(ASSERTION_MESSAGE, assertionExpression, templateName); } return String.format(ASSERTION_MESSAGE_LINE_COL, assertionExpression, templateName, line, col);
261
69
330
<methods>public void <init>() ,public void <init>(java.lang.String) ,public void <init>(java.lang.Throwable) ,public void <init>(java.lang.String, java.lang.Throwable) <variables>static final long serialVersionUID
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/expression/Bools.java
Bools
arrayAnd
class Bools { public Bools() { super(); } public Boolean isTrue(final Object target) { return Boolean.valueOf(EvaluationUtils.evaluateAsBoolean(target)); } public Boolean[] arrayIsTrue(final Object[] target) { Validate.notNull(target, "Target cannot be null"); ...
Validate.notNull(target, "Target cannot be null"); for (final Object aTarget : target) { if (!isTrue(aTarget).booleanValue()) { return Boolean.FALSE; } } return Boolean.TRUE;
1,105
65
1,170
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/expression/Conversions.java
Conversions
convert
class Conversions { private final IExpressionContext context; public Conversions(final IExpressionContext context) { super(); Validate.notNull(context, "Context cannot be null"); this.context = context; } public Object convert(final Object target, final String className) {...
try { final Class<?> clazz = ClassLoaderUtils.loadClass(className); return convert(target, clazz); } catch (final ClassNotFoundException e) { try { final Class<?> clazz = ClassLoaderUtils.loadClass("java.lang." + className); return co...
168
125
293
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/expression/ExecutionInfo.java
ExecutionInfo
getTemplateModes
class ExecutionInfo { private final ITemplateContext context; private final Calendar now; public ExecutionInfo(final ITemplateContext context) { super(); this.context = context; this.now = Calendar.getInstance(context.getLocale()); } /** * <p> * Returns the t...
final List<TemplateData> templateStack = this.context.getTemplateStack(); final List<TemplateMode> templateModeStack = new ArrayList<TemplateMode>(templateStack.size()); for (final TemplateData templateData : templateStack) { templateModeStack.add(templateData.getTemplateMode()); ...
1,326
85
1,411
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/expression/ExpressionObjects.java
ExpressionObjects
getObject
class ExpressionObjects implements IExpressionObjects { /* * Making room for 3 expression objects should be enough for most cases, given these maps will be * created for each IProcessingContext (i.e. for each template processing request) */ private static final int EXPRESSION_OBJECT_MAP_DEFAULT_...
/* * First, a quick attempt to resolve from the object cache */ if (this.objects != null && this.objects.containsKey(name)) { return this.objects.get(name); } /* * If the object is not provided by the factory, simply return null */ ...
355
314
669
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/expression/Ids.java
Ids
seq
class Ids { private final ITemplateContext context; public String seq(final Object id) {<FILL_FUNCTION_BODY>} public String next(final Object id) { Validate.notNull(id, "ID cannot be null"); final String str = id.toString(); return str + this.context.getIdentifie...
Validate.notNull(id, "ID cannot be null"); final String str = id.toString(); return str + this.context.getIdentifierSequences().getAndIncrementIDSeq(str);
226
54
280
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/expression/Objects.java
Objects
setNullSafe
class Objects { public <T> T nullSafe(final T target, final T defaultValue) { return ObjectUtils.nullSafe(target, defaultValue); } public <T> T[] arrayNullSafe(final T[] target, final T defaultValue) { Validate.notNull(target, "Target cannot be null"); final T[] result = ...
Validate.notNull(target, "Target cannot be null"); final Set<T> result = new LinkedHashSet<T>(target.size() + 2); for (final T element : target) { result.add(nullSafe(element, defaultValue)); } return result;
311
76
387
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/inline/NoOpInliner.java
NoOpInliner
inline
class NoOpInliner implements IInliner { public static final NoOpInliner INSTANCE = new NoOpInliner(); private NoOpInliner() { super(); } public String getName() { return "NOOP"; } public CharSequence inline(final ITemplateContext context, final IText text) { // Nothi...
// Nothing to do. Anyway, this should never end up being executed... return null;
206
26
232
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/model/AbstractModelVisitor.java
AbstractModelVisitor
visit
class AbstractModelVisitor implements IModelVisitor { public void visit(final ITemplateStart templateStart) { // Nothing to be done here - just an empty default implementation } public void visit(final ITemplateEnd templateEnd) { // Nothing to be done here - just an empty default implemen...
// Nothing to be done here - just an empty default implementation
377
17
394
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/processor/cdatasection/AbstractCDATASectionProcessor.java
AbstractCDATASectionProcessor
process
class AbstractCDATASectionProcessor extends AbstractProcessor implements ICDATASectionProcessor { public AbstractCDATASectionProcessor(final TemplateMode templateMode, final int precedence) { super(templateMode, precedence); } public final void process( final ITemplateContex...
try { doProcess(context, cdataSection, structureHandler); } catch (final TemplateProcessingException e) { if (cdataSection.hasLocation()) { if (!e.hasTemplateName()) { e.setTemplateName(cdataSection.getTemplateName()); } ...
159
194
353
<methods>public void <init>(org.thymeleaf.templatemode.TemplateMode, int) ,public final int getPrecedence() ,public final org.thymeleaf.templatemode.TemplateMode getTemplateMode() <variables>private final non-sealed int precedence,private final non-sealed org.thymeleaf.templatemode.TemplateMode templateMode
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/processor/comment/AbstractCommentProcessor.java
AbstractCommentProcessor
process
class AbstractCommentProcessor extends AbstractProcessor implements ICommentProcessor { public AbstractCommentProcessor(final TemplateMode templateMode, final int precedence) { super(templateMode, precedence); } public final void process( final ITemplateContext context, ...
try { doProcess(context, comment, structureHandler); } catch (final TemplateProcessingException e) { if (comment.hasLocation()) { if (!e.hasTemplateName()) { e.setTemplateName(comment.getTemplateName()); } if...
134
178
312
<methods>public void <init>(org.thymeleaf.templatemode.TemplateMode, int) ,public final int getPrecedence() ,public final org.thymeleaf.templatemode.TemplateMode getTemplateMode() <variables>private final non-sealed int precedence,private final non-sealed org.thymeleaf.templatemode.TemplateMode templateMode
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/processor/doctype/AbstractDocTypeProcessor.java
AbstractDocTypeProcessor
process
class AbstractDocTypeProcessor extends AbstractProcessor implements IDocTypeProcessor { public AbstractDocTypeProcessor(final TemplateMode templateMode, final int precedence) { super(templateMode, precedence); } public final void process( final ITemplateContext context, ...
try { doProcess(context, docType, structureHandler); } catch (final TemplateProcessingException e) { if (docType.hasLocation()) { if (!e.hasTemplateName()) { e.setTemplateName(docType.getTemplateName()); } if...
143
186
329
<methods>public void <init>(org.thymeleaf.templatemode.TemplateMode, int) ,public final int getPrecedence() ,public final org.thymeleaf.templatemode.TemplateMode getTemplateMode() <variables>private final non-sealed int precedence,private final non-sealed org.thymeleaf.templatemode.TemplateMode templateMode
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/processor/element/AbstractAttributeModelProcessor.java
AbstractAttributeModelProcessor
doProcess
class AbstractAttributeModelProcessor extends AbstractElementModelProcessor { private final boolean removeAttribute; protected AbstractAttributeModelProcessor( final TemplateMode templateMode, final String dialectPrefix, final String elementName, final boolean prefixElementName, ...
AttributeName attributeName = null; IProcessableElementTag firstEvent = null; try { attributeName = getMatchingAttributeName().getMatchingAttributeName(); firstEvent = (IProcessableElementTag) model.get(0); final String attributeValue = ...
418
678
1,096
<methods>public void <init>(org.thymeleaf.templatemode.TemplateMode, java.lang.String, java.lang.String, boolean, java.lang.String, boolean, int) ,public final org.thymeleaf.processor.element.MatchingAttributeName getMatchingAttributeName() ,public final org.thymeleaf.processor.element.MatchingElementName getMatchingEl...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/processor/element/AbstractAttributeTagProcessor.java
AbstractAttributeTagProcessor
doProcess
class AbstractAttributeTagProcessor extends AbstractElementTagProcessor { private final boolean removeAttribute; protected AbstractAttributeTagProcessor( final TemplateMode templateMode, final String dialectPrefix, final String elementName, final boolean prefixElementName, ...
AttributeName attributeName = null; try { attributeName = getMatchingAttributeName().getMatchingAttributeName(); final String attributeValue = EscapedAttributeUtils.unescapeAttribute(context.getTemplateMode(), tag.getAttributeValue(attributeName)); ...
269
516
785
<methods>public void <init>(org.thymeleaf.templatemode.TemplateMode, java.lang.String, java.lang.String, boolean, java.lang.String, boolean, int) ,public final org.thymeleaf.processor.element.MatchingAttributeName getMatchingAttributeName() ,public final org.thymeleaf.processor.element.MatchingElementName getMatchingEl...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/processor/element/AbstractElementModelProcessor.java
AbstractElementModelProcessor
process
class AbstractElementModelProcessor extends AbstractProcessor implements IElementModelProcessor { private final String dialectPrefix; private final MatchingElementName matchingElementName; private final MatchingAttributeName matchingAttributeName; public AbstractElementModelProcessor( ...
ITemplateEvent firstEvent = null; try { firstEvent = model.get(0); doProcess(context, model, structureHandler); } catch (final TemplateProcessingException e) { // We will try to add all information possible to the exception report (template name, line, c...
437
397
834
<methods>public void <init>(org.thymeleaf.templatemode.TemplateMode, int) ,public final int getPrecedence() ,public final org.thymeleaf.templatemode.TemplateMode getTemplateMode() <variables>private final non-sealed int precedence,private final non-sealed org.thymeleaf.templatemode.TemplateMode templateMode
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/processor/element/AbstractElementTagProcessor.java
AbstractElementTagProcessor
process
class AbstractElementTagProcessor extends AbstractProcessor implements IElementTagProcessor { private final String dialectPrefix; private final MatchingElementName matchingElementName; private final MatchingAttributeName matchingAttributeName; public AbstractElementTagProcessor( ...
try { doProcess(context, tag, structureHandler); } catch (final TemplateProcessingException e) { // This is a nice moment to check whether the execution raised an error and, if so, add location information if (tag.hasLocation()) { if (!e.hasTemplat...
448
202
650
<methods>public void <init>(org.thymeleaf.templatemode.TemplateMode, int) ,public final int getPrecedence() ,public final org.thymeleaf.templatemode.TemplateMode getTemplateMode() <variables>private final non-sealed int precedence,private final non-sealed org.thymeleaf.templatemode.TemplateMode templateMode
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/processor/element/MatchingAttributeName.java
MatchingAttributeName
forAllAttributesWithPrefix
class MatchingAttributeName { private final TemplateMode templateMode; private final AttributeName matchingAttributeName; private final String matchingAllAttributesWithPrefix; private final boolean matchingAllAttributes; public static MatchingAttributeName forAttributeName(final TemplateMode tem...
Validate.notNull(templateMode, "Template mode cannot be null"); // Prefix can actually be null -> match all attributes with no prefix return new MatchingAttributeName(templateMode, null, matchingAllAttributesWithPrefix, false);
1,046
60
1,106
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/processor/element/MatchingElementName.java
MatchingElementName
forElementName
class MatchingElementName { private final TemplateMode templateMode; private final ElementName matchingElementName; private final String matchingAllElementsWithPrefix; private final boolean matchingAllElements; public static MatchingElementName forElementName(final TemplateMode templateMode, fin...
Validate.notNull(templateMode, "Template mode cannot be null"); Validate.notNull(matchingElementName, "Matching element name cannot be null"); if (templateMode == TemplateMode.HTML && !(matchingElementName instanceof HTMLElementName)) { throw new IllegalArgumentException("Element na...
864
231
1,095
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/processor/processinginstruction/AbstractProcessingInstructionProcessor.java
AbstractProcessingInstructionProcessor
process
class AbstractProcessingInstructionProcessor extends AbstractProcessor implements IProcessingInstructionProcessor { public AbstractProcessingInstructionProcessor(final TemplateMode templateMode, final int precedence) { super(templateMode, precedence); } public final void process( ...
try { doProcess(context, processingInstruction, structureHandler); } catch (final TemplateProcessingException e) { if (processingInstruction.hasLocation()) { if (!e.hasTemplateName()) { e.setTemplateName(processingInstruction.getTemplateNam...
158
194
352
<methods>public void <init>(org.thymeleaf.templatemode.TemplateMode, int) ,public final int getPrecedence() ,public final org.thymeleaf.templatemode.TemplateMode getTemplateMode() <variables>private final non-sealed int precedence,private final non-sealed org.thymeleaf.templatemode.TemplateMode templateMode
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/processor/templateboundaries/AbstractTemplateBoundariesProcessor.java
AbstractTemplateBoundariesProcessor
processTemplateEnd
class AbstractTemplateBoundariesProcessor extends AbstractProcessor implements ITemplateBoundariesProcessor { public AbstractTemplateBoundariesProcessor(final TemplateMode templateMode, final int precedence) { super(templateMode, precedence); } public final void processTemplateStart( ...
try { doProcessTemplateEnd(context, templateEnd, structureHandler); } catch (final TemplateProcessingException e) { if (templateEnd.hasLocation()) { if (!e.hasTemplateName()) { e.setTemplateName(templateEnd.getTemplateName()); ...
435
188
623
<methods>public void <init>(org.thymeleaf.templatemode.TemplateMode, int) ,public final int getPrecedence() ,public final org.thymeleaf.templatemode.TemplateMode getTemplateMode() <variables>private final non-sealed int precedence,private final non-sealed org.thymeleaf.templatemode.TemplateMode templateMode
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/processor/text/AbstractTextProcessor.java
AbstractTextProcessor
process
class AbstractTextProcessor extends AbstractProcessor implements ITextProcessor { public AbstractTextProcessor(final TemplateMode templateMode, final int precedence) { super(templateMode, precedence); } public final void process( final ITemplateContext context, f...
try { doProcess(context, text, structureHandler); } catch (final TemplateProcessingException e) { if (text.hasLocation()) { if (!e.hasTemplateName()) { e.setTemplateName(text.getTemplateName()); } if (!e.hasL...
134
178
312
<methods>public void <init>(org.thymeleaf.templatemode.TemplateMode, int) ,public final int getPrecedence() ,public final org.thymeleaf.templatemode.TemplateMode getTemplateMode() <variables>private final non-sealed int precedence,private final non-sealed org.thymeleaf.templatemode.TemplateMode templateMode
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/processor/xmldeclaration/AbstractXMLDeclarationProcessor.java
AbstractXMLDeclarationProcessor
process
class AbstractXMLDeclarationProcessor extends AbstractProcessor implements IXMLDeclarationProcessor { public AbstractXMLDeclarationProcessor(final TemplateMode templateMode, final int precedence) { super(templateMode, precedence); } public final void process( final ITemplate...
try { doProcess(context, xmlDeclaration, structureHandler); } catch (final TemplateProcessingException e) { if (xmlDeclaration.hasLocation()) { if (!e.hasTemplateName()) { e.setTemplateName(xmlDeclaration.getTemplateName()); ...
143
186
329
<methods>public void <init>(org.thymeleaf.templatemode.TemplateMode, int) ,public final int getPrecedence() ,public final org.thymeleaf.templatemode.TemplateMode getTemplateMode() <variables>private final non-sealed int precedence,private final non-sealed org.thymeleaf.templatemode.TemplateMode templateMode
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/AbstractStandardConversionService.java
AbstractStandardConversionService
convert
class AbstractStandardConversionService implements IStandardConversionService { protected AbstractStandardConversionService() { super(); } public final <T> T convert( final IExpressionContext context, final Object object, final Class<T> targetClass) {<FILL_FUNCTION_BOD...
Validate.notNull(targetClass, "Target class cannot be null"); /* * CONVERSIONS TO String (will be 99% of executions) */ if (targetClass.equals(String.class)) { if (object == null || object instanceof String) { return (T) object; } ...
204
131
335
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/AdditionExpression.java
AdditionExpression
executeAddition
class AdditionExpression extends AdditionSubtractionExpression { private static final long serialVersionUID = -971366486450425605L; private static final Logger logger = LoggerFactory.getLogger(AdditionExpression.class); public AdditionExpression(final IStandardExpression left, final IStandardE...
if (logger.isTraceEnabled()) { logger.trace("[THYMELEAF][{}] Evaluating addition expression: \"{}\"", TemplateEngine.threadIndex(), expression.getStringRepresentation()); } final IStandardVariableExpressionEvaluator expressionEvaluator = StandardExpressions.getVari...
204
536
740
<methods><variables>protected static final java.lang.String ADDITION_OPERATOR,private static final non-sealed java.lang.reflect.Method LEFT_ALLOWED_METHOD,private static final boolean[] LENIENCIES,static final java.lang.String[] OPERATORS,private static final Class<? extends org.thymeleaf.standard.expression.BinaryOper...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/AdditionSubtractionExpression.java
AdditionSubtractionExpression
isLeftAllowed
class AdditionSubtractionExpression extends BinaryOperationExpression { private static final long serialVersionUID = -7977102096580376925L; protected static final String ADDITION_OPERATOR = "+"; protected static final String SUBTRACTION_OPERATOR = "-"; static final String[] OPERATORS = new S...
return left != null && !(left instanceof Token && !(left instanceof NumberTokenExpression || left instanceof GenericTokenExpression));
578
33
611
<methods>public org.thymeleaf.standard.expression.IStandardExpression getLeft() ,public org.thymeleaf.standard.expression.IStandardExpression getRight() <variables>private final non-sealed org.thymeleaf.standard.expression.IStandardExpression left,private final non-sealed org.thymeleaf.standard.expression.IStandardExpr...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/AndExpression.java
AndExpression
composeAndExpression
class AndExpression extends BinaryOperationExpression { private static final long serialVersionUID = -6085038102412415337L; private static final Logger logger = LoggerFactory.getLogger(AndExpression.class); private static final String OPERATOR = "and"; static final String[] OPERATORS = new Strin...
return composeBinaryOperationExpression( state, nodeIndex, OPERATORS, LENIENCIES, OPERATOR_CLASSES, LEFT_ALLOWED_METHOD, RIGHT_ALLOWED_METHOD);
747
58
805
<methods>public org.thymeleaf.standard.expression.IStandardExpression getLeft() ,public org.thymeleaf.standard.expression.IStandardExpression getRight() <variables>private final non-sealed org.thymeleaf.standard.expression.IStandardExpression left,private final non-sealed org.thymeleaf.standard.expression.IStandardExpr...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/Assignation.java
Assignation
getStringRepresentation
class Assignation implements Serializable { private static final long serialVersionUID = -20278893925937213L; private final IStandardExpression left; private final IStandardExpression right; Assignation(final IStandardExpression left, final IStandardExpression right) { supe...
final StringBuilder strBuilder = new StringBuilder(); strBuilder.append(this.left.getStringRepresentation()); if (this.right != null) { strBuilder.append('='); if (this.right instanceof ComplexExpression) { strBuilder.append('('); strBuild...
228
134
362
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/AssignationSequence.java
AssignationSequence
getStringRepresentation
class AssignationSequence implements Iterable<Assignation>, Serializable { private static final long serialVersionUID = -4915282307441011014L; private final List<Assignation> assignations; AssignationSequence(final List<Assignation> assignations) { super(); Validate.no...
final StringBuilder sb = new StringBuilder(); if (this.assignations.size() > 0) { sb.append(this.assignations.get(0)); for (int i = 1; i < this.assignations.size(); i++) { sb.append(','); sb.append(this.assignations.get(i)); } ...
291
102
393
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/AssignationUtils.java
AssignationUtils
composeAssignation
class AssignationUtils { public static AssignationSequence parseAssignationSequence( final IExpressionContext context, final String input, final boolean allowParametersWithoutValue) { Validate.notNull(context, "Context cannot be null"); Validate.notNull(input, "Input can...
if (state == null || nodeIndex >= state.size()) { return null; } if (state.hasExpressionAt(nodeIndex)) { if (!allowParametersWithoutValue) { return null; } // could happen if we are traversing pointers recursively, so we will con...
1,094
505
1,599
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/BinaryOperationExpression.java
BinaryOperationExpression
doComposeBinaryOperationExpression
class BinaryOperationExpression extends ComplexExpression { private static final long serialVersionUID = 7524261639178859585L; private final IStandardExpression left; private final IStandardExpression right; protected BinaryOperationExpression(final IStandardExpression left, final IStandar...
final String leftStr = input.substring(0, operatorPos).trim(); final String rightStr = input.substring(operatorPos + operator.length()).trim(); if (leftStr.length() == 0 || rightStr.length() == 0) { return null; } final Expression leftExpr = ...
1,178
534
1,712
<methods><variables>private static final long serialVersionUID
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/BooleanTokenExpression.java
BooleanTokenExpression
parseBooleanTokenExpression
class BooleanTokenExpression extends Token { private static final Logger logger = LoggerFactory.getLogger(BooleanTokenExpression.class); private static final long serialVersionUID = 7003426193298054476L; public BooleanTokenExpression(final String value) { super(Boolean.valueOf(value)); } ...
if ("true".equalsIgnoreCase(input) || "false".equalsIgnoreCase(input)) { return new BooleanTokenExpression(input); } return null;
259
44
303
<methods>public java.lang.String getStringRepresentation() ,public java.lang.Object getValue() ,public static boolean isTokenChar(java.lang.String, int) ,public java.lang.String toString() <variables>private static final long serialVersionUID,private final non-sealed java.lang.Object value
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/ComplexExpression.java
ComplexExpression
executeComplex
class ComplexExpression extends Expression { private static final long serialVersionUID = -3807499386899890260L; protected ComplexExpression() { super(); } static Object executeComplex( final IExpressionContext context, final ComplexExpression expressio...
if (expression instanceof AdditionExpression) { return AdditionExpression.executeAddition(context, (AdditionExpression)expression, expContext); } if (expression instanceof SubtractionExpression) { return SubtractionExpression.executeSubtraction(context, (Subtrac...
120
689
809
<methods>public java.lang.Object execute(org.thymeleaf.context.IExpressionContext) ,public java.lang.Object execute(org.thymeleaf.context.IExpressionContext, org.thymeleaf.standard.expression.StandardExpressionExecutionContext) ,public abstract java.lang.String getStringRepresentation() ,public java.lang.String toStrin...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/ConditionalExpression.java
ConditionalExpression
composeConditionalExpression
class ConditionalExpression extends ComplexExpression { private static final Logger logger = LoggerFactory.getLogger(ConditionalExpression.class); private static final long serialVersionUID = -6966177717462316363L; private static final char CONDITION_SUFFIX_CHAR = '?'; private static fi...
// Returning "state" means "try next in chain" or "success" // Returning "null" means parsing error final String input = state.get(nodeIndex).getInput(); if (StringUtils.isEmptyOrWhitespace(input)) { return null; } // Trying to fail qu...
969
629
1,598
<methods><variables>private static final long serialVersionUID
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/DefaultExpression.java
DefaultExpression
composeDefaultExpression
class DefaultExpression extends ComplexExpression { private static final Logger logger = LoggerFactory.getLogger(DefaultExpression.class); private static final long serialVersionUID = 1830867943963082362L; private static final String OPERATOR = "?:"; // Future proof, just in case in the future ...
// Returning "state" means "try next in chain" or "success" // Returning "null" means parsing error final String input = state.get(nodeIndex).getInput(); if (StringUtils.isEmptyOrWhitespace(input)) { return null; } // Trying to fail quickly... fin...
728
336
1,064
<methods><variables>private static final long serialVersionUID
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/DivisionExpression.java
DivisionExpression
executeDivision
class DivisionExpression extends MultiplicationDivisionRemainderExpression { private static final long serialVersionUID = -6480768503994179971L; private static final Logger logger = LoggerFactory.getLogger(DivisionExpression.class); public DivisionExpression(final IStandardExpression left, fin...
if (logger.isTraceEnabled()) { logger.trace("[THYMELEAF][{}] Evaluating division expression: \"{}\"", TemplateEngine.threadIndex(), expression.getStringRepresentation()); } Object leftValue = expression.getLeft().execute(context, expContext); Object rightValue = e...
207
397
604
<methods><variables>protected static final java.lang.String DIVISION_OPERATOR,protected static final java.lang.String DIVISION_OPERATOR_2,private static final non-sealed java.lang.reflect.Method LEFT_ALLOWED_METHOD,private static final boolean[] LENIENCIES,protected static final java.lang.String MULTIPLICATION_OPERATOR...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/Each.java
Each
getStringRepresentation
class Each implements Serializable { private static final long serialVersionUID = -4085690403057997591L; private final IStandardExpression iterVar; private final IStandardExpression statusVar; private final IStandardExpression iterable; public Each(final IStandardExpr...
final StringBuilder sb = new StringBuilder(); sb.append(this.iterVar); if (hasStatusVar()) { sb.append(','); sb.append(this.statusVar); } sb.append(" : "); sb.append(this.iterable); return sb.toString();
336
82
418
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/EachUtils.java
EachUtils
parseEach
class EachUtils { private static final String OPERATOR = ":"; private static final String STAT_SEPARATOR = ","; public static Each parseEach( final IExpressionContext context, final String input) {<FILL_FUNCTION_BODY>} static Each internalParseEach(final String input) ...
Validate.notNull(context, "Context cannot be null"); Validate.notNull(input, "Input cannot be null"); final String preprocessedInput = StandardExpressionPreprocessor.preprocess(context, input); final IEngineConfiguration configuration = context.getConfiguration();...
855
228
1,083
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/EqualsExpression.java
EqualsExpression
executeEquals
class EqualsExpression extends EqualsNotEqualsExpression { private static final long serialVersionUID = -3223406642461547141L; private static final Logger logger = LoggerFactory.getLogger(EqualsExpression.class); public EqualsExpression(final IStandardExpression left, final IStandardExpression righ...
Object leftValue = expression.getLeft().execute(context, expContext); Object rightValue = expression.getRight().execute(context, expContext); leftValue = LiteralValue.unwrap(leftValue); rightValue = LiteralValue.unwrap(rightValue); if (leftValue == null) { return...
217
487
704
<methods><variables>protected static final java.lang.String EQUALS_OPERATOR,protected static final java.lang.String EQUALS_OPERATOR_2,private static final non-sealed java.lang.reflect.Method LEFT_ALLOWED_METHOD,private static final boolean[] LENIENCIES,protected static final java.lang.String NOT_EQUALS_OPERATOR,protect...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/EqualsNotEqualsExpression.java
EqualsNotEqualsExpression
composeEqualsNotEqualsExpression
class EqualsNotEqualsExpression extends BinaryOperationExpression { private static final long serialVersionUID = -8648395536336588140L; protected static final String EQUALS_OPERATOR = "=="; protected static final String EQUALS_OPERATOR_2 = "eq"; protected static final String NOT_EQUALS_OPERAT...
return composeBinaryOperationExpression( state, nodeIndex, OPERATORS, LENIENCIES, OPERATOR_CLASSES, LEFT_ALLOWED_METHOD, RIGHT_ALLOWED_METHOD);
642
58
700
<methods>public org.thymeleaf.standard.expression.IStandardExpression getLeft() ,public org.thymeleaf.standard.expression.IStandardExpression getRight() <variables>private final non-sealed org.thymeleaf.standard.expression.IStandardExpression left,private final non-sealed org.thymeleaf.standard.expression.IStandardExpr...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/Expression.java
Expression
parse
class Expression implements IStandardExpression, Serializable { private static final long serialVersionUID = 1608378943284014151L; public static final char PARSING_PLACEHOLDER_CHAR = '\u00A7'; public static final char NESTING_START_CHAR = '('; public static final char NESTING_END_CHAR = ')';...
Validate.notNull(input, "Input cannot be null"); /* * PHASE 01: Decomposition (including unnesting parenthesis) */ final ExpressionParsingState decomposition = ExpressionParsingUtil.decompose(input); if (decomposition == null) { return null; } ...
530
173
703
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/ExpressionCache.java
ExpressionCache
removeFromCache
class ExpressionCache { private static final String EXPRESSION_CACHE_TYPE_STANDARD_EXPRESSION = "expr"; private static final String EXPRESSION_CACHE_TYPE_ASSIGNATION_SEQUENCE = "aseq"; private static final String EXPRESSION_CACHE_TYPE_EXPRESSION_SEQUENCE = "eseq"; private static final String EXPRESSION...
final ICacheManager cacheManager = configuration.getCacheManager(); if (cacheManager != null) { final ICache<ExpressionCacheKey,Object> cache = cacheManager.getExpressionCache(); if (cache != null) { cache.clearKey(new ExpressionCacheKey(type,input)); ...
1,053
83
1,136
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/ExpressionParsingNode.java
ExpressionParsingNode
toString
class ExpressionParsingNode { private final String input; private final Expression expression; ExpressionParsingNode(final String input) { super(); // INPUT SHOULD NEVER BE NULL!!! this.input = input.trim(); this.expression = null; } ExpressionParsingNode(f...
return (isExpression()? "[" + this.expression.getStringRepresentation() + "]" : this.input);
291
34
325
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/ExpressionSequence.java
ExpressionSequence
getStringRepresentation
class ExpressionSequence implements Iterable<IStandardExpression>, Serializable { private static final long serialVersionUID = -6069208208568731809L; private final List<IStandardExpression> expressions; public ExpressionSequence(final List<? extends IStandardExpression> expressions) { ...
final StringBuilder sb = new StringBuilder(); if (this.expressions.size() > 0) { sb.append(this.expressions.get(0)); for (int i = 1; i < this.expressions.size(); i++) { sb.append(','); sb.append(this.expressions.get(i)); } } ...
287
102
389
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/ExpressionSequenceUtils.java
ExpressionSequenceUtils
composeSequence
class ExpressionSequenceUtils { public static ExpressionSequence parseExpressionSequence( final IExpressionContext context, final String input) { Validate.notNull(context, "Context cannot be null"); Validate.notNull(input, "Input cannot be null"); final String preprocessedI...
if (state == null || nodeIndex >= state.size()) { return null; } if (state.hasExpressionAt(nodeIndex)) { // could happen if we are traversing pointers recursively, so we will consider an expression sequence // with one expression only final List...
460
351
811
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/Fragment.java
Fragment
toString
class Fragment { public static final Fragment EMPTY_FRAGMENT = new Fragment(); private final TemplateModel templateModel; private final Map<String,Object> parameters; private final boolean syntheticParameters; public Fragment( final TemplateModel templateModel, final Map<String, Obje...
final Writer stringWriter = new FastStringWriter(); try { write(stringWriter); } catch (final IOException e) { throw new TemplateProcessingException("Exception while creating String representation of model entity", e); } return stringWriter.toString(); ...
377
68
445
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/FragmentSignature.java
FragmentSignature
getStringRepresentation
class FragmentSignature implements Serializable { private static final long serialVersionUID = 6847640942405961705L; private static final char FRAGMENT_SIGNATURE_PARAMETERS_START = '('; private static final char FRAGMENT_SIGNATURE_PARAMETERS_END = ')'; private final String fragmentName; private ...
if (this.parameterNames == null || this.parameterNames.size() == 0) { return this.fragmentName; } return this.fragmentName + " " + FRAGMENT_SIGNATURE_PARAMETERS_START + StringUtils.join(this.parameterNames, ',') + FRAGMENT_SIGNATURE_PA...
323
94
417
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/FragmentSignatureUtils.java
FragmentSignatureUtils
processParameters
class FragmentSignatureUtils { private static final char FRAGMENT_SIGNATURE_PARAMETERS_START = '('; private static final char FRAGMENT_SIGNATURE_PARAMETERS_END = ')'; public static FragmentSignature parseFragmentSignature(final IEngineConfiguration configuration, final String input) { Val...
Validate.notNull(fragmentSignature, "Fragment signature cannot be null"); if (specifiedParameters == null || specifiedParameters.size() == 0) { if (fragmentSignature.hasParameters()) { // Fragment signature requires parameters, but we haven't specified them! ...
1,064
742
1,806
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/GenericTokenExpression.java
GenericTokenExpression
parseGenericTokenExpression
class GenericTokenExpression extends Token { private static final Logger logger = LoggerFactory.getLogger(GenericTokenExpression.class); private static final long serialVersionUID = 7913229642187691263L; GenericTokenExpression(final String value) { super(value); } @Override pu...
if (input == null) { return null; } final int inputLen = input.length(); for (int i = 0; i < inputLen; i++) { if (!isTokenChar(input, i)) { return null; } } return new GenericTokenExpression(input);
263
84
347
<methods>public java.lang.String getStringRepresentation() ,public java.lang.Object getValue() ,public static boolean isTokenChar(java.lang.String, int) ,public java.lang.String toString() <variables>private static final long serialVersionUID,private final non-sealed java.lang.Object value
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/GreaterLesserExpression.java
GreaterLesserExpression
isLeftAllowed
class GreaterLesserExpression extends BinaryOperationExpression { private static final long serialVersionUID = 3488922833645278122L; protected static final String GREATER_THAN_OPERATOR = ">"; protected static final String GREATER_OR_EQUAL_TO_OPERATOR = ">="; protected static final String LES...
return left != null && !(left instanceof Token && !(left instanceof NumberTokenExpression || left instanceof GenericTokenExpression));
904
33
937
<methods>public org.thymeleaf.standard.expression.IStandardExpression getLeft() ,public org.thymeleaf.standard.expression.IStandardExpression getRight() <variables>private final non-sealed org.thymeleaf.standard.expression.IStandardExpression left,private final non-sealed org.thymeleaf.standard.expression.IStandardExpr...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/GreaterOrEqualToExpression.java
GreaterOrEqualToExpression
executeGreaterOrEqualTo
class GreaterOrEqualToExpression extends GreaterLesserExpression { private static final long serialVersionUID = 4318966518910979010L; private static final Logger logger = LoggerFactory.getLogger(GreaterOrEqualToExpression.class); public GreaterOrEqualToExpression(final IStandardExpression left, fina...
Object leftValue = expression.getLeft().execute(context, expContext); Object rightValue = expression.getRight().execute(context, expContext); leftValue = LiteralValue.unwrap(leftValue); rightValue = LiteralValue.unwrap(rightValue); Boolean result = null; fina...
236
439
675
<methods><variables>protected static final java.lang.String GREATER_OR_EQUAL_TO_OPERATOR,protected static final java.lang.String GREATER_OR_EQUAL_TO_OPERATOR_2,protected static final java.lang.String GREATER_THAN_OPERATOR,protected static final java.lang.String GREATER_THAN_OPERATOR_2,private static final non-sealed ja...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/GreaterThanExpression.java
GreaterThanExpression
executeGreaterThan
class GreaterThanExpression extends GreaterLesserExpression { private static final long serialVersionUID = -1416343400122380675L; private static final Logger logger = LoggerFactory.getLogger(GreaterThanExpression.class); public GreaterThanExpression(final IStandardExpression left, final IStandardEx...
if (logger.isTraceEnabled()) { logger.trace("[THYMELEAF][{}] Evaluating GREATER THAN expression: \"{}\"", TemplateEngine.threadIndex(), expression.getStringRepresentation()); } Object leftValue = expression.getLeft().execute(context, expContext); Object rightValue ...
227
566
793
<methods><variables>protected static final java.lang.String GREATER_OR_EQUAL_TO_OPERATOR,protected static final java.lang.String GREATER_OR_EQUAL_TO_OPERATOR_2,protected static final java.lang.String GREATER_THAN_OPERATOR,protected static final java.lang.String GREATER_THAN_OPERATOR_2,private static final non-sealed ja...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/LessOrEqualToExpression.java
LessOrEqualToExpression
executeLessOrEqualTo
class LessOrEqualToExpression extends GreaterLesserExpression { private static final long serialVersionUID = 7042174616566611488L; private static final Logger logger = LoggerFactory.getLogger(LessOrEqualToExpression.class); public LessOrEqualToExpression(final IStandardExpression left, final I...
if (logger.isTraceEnabled()) { logger.trace("[THYMELEAF][{}] Evaluating LESS OR EQUAL TO expression: \"{}\"", TemplateEngine.threadIndex(), expression.getStringRepresentation()); } Object leftValue = expression.getLeft().execute(context, expContext); Object rightVa...
237
575
812
<methods><variables>protected static final java.lang.String GREATER_OR_EQUAL_TO_OPERATOR,protected static final java.lang.String GREATER_OR_EQUAL_TO_OPERATOR_2,protected static final java.lang.String GREATER_THAN_OPERATOR,protected static final java.lang.String GREATER_THAN_OPERATOR_2,private static final non-sealed ja...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/LessThanExpression.java
LessThanExpression
executeLessThan
class LessThanExpression extends GreaterLesserExpression { private static final long serialVersionUID = 6097188129113613164L; private static final Logger logger = LoggerFactory.getLogger(LessThanExpression.class); public LessThanExpression(final IStandardExpression left, final IStandardExpressi...
if (logger.isTraceEnabled()) { logger.trace("[THYMELEAF][{}] Evaluating LESS THAN expression: \"{}\"", TemplateEngine.threadIndex(), expression.getStringRepresentation()); } Object leftValue = expression.getLeft().execute(context, expContext); Object rightValue = e...
224
563
787
<methods><variables>protected static final java.lang.String GREATER_OR_EQUAL_TO_OPERATOR,protected static final java.lang.String GREATER_OR_EQUAL_TO_OPERATOR_2,protected static final java.lang.String GREATER_THAN_OPERATOR,protected static final java.lang.String GREATER_THAN_OPERATOR_2,private static final non-sealed ja...
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/LiteralSubstitutionUtil.java
LiteralSubstitutionUtil
performLiteralSubstitution
class LiteralSubstitutionUtil { private static final char LITERAL_SUBSTITUTION_DELIMITER = '|'; /* * The goal here is to convert literal substitution expressions (|...|) into a concatenation of variable and/or * literal expressions. * * Example: * * # ------------------------...
if (input == null) { return null; } StringBuilder strBuilder = null; boolean inLiteralSubstitution = false; boolean inLiteralSubstitutionInsertion = false; int literalSubstitutionIndex = -1; int expLevel = 0; boolean inLiteral = false; ...
354
1,514
1,868
<no_super_class>
thymeleaf_thymeleaf
thymeleaf/lib/thymeleaf/src/main/java/org/thymeleaf/standard/expression/LiteralValue.java
LiteralValue
unwrap
class LiteralValue implements Serializable { /* * This class is internally used during expression parsing in order to avoid * the interpretation of text literals like '4' or '2.' as numbers in * arithmetic operations. */ private static final long serialVersionUID = -4769586410724418224...
if (obj == null) { return null; } if (obj instanceof LiteralValue) { return ((LiteralValue)obj).getValue(); } return obj;
190
50
240
<no_super_class>