Package org.thymeleaf.engine
Class ProcessingInstruction
java.lang.Object
org.thymeleaf.engine.AbstractTemplateEvent
org.thymeleaf.engine.ProcessingInstruction
- All Implemented Interfaces:
IEngineTemplateEvent,IProcessingInstruction,ITemplateEvent
final class ProcessingInstruction
extends AbstractTemplateEvent
implements IProcessingInstruction, IEngineTemplateEvent
-
Field Summary
FieldsFields inherited from class org.thymeleaf.engine.AbstractTemplateEvent
col, line, templateName -
Constructor Summary
ConstructorsConstructorDescriptionProcessingInstruction(String target, String content) ProcessingInstruction(String processingInstruction, String target, String content, String templateName, int line, int col) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IModelVisitor visitor) Accept a visitor, implementation ofIModelVisitor.(package private) static ProcessingInstructionasEngineProcessingInstruction(IProcessingInstruction processingInstruction) voidbeHandled(ITemplateHandler handler) private StringReturns the content of the Processing Instruction.Returns the complete Processing Instruction as a String.Returns the target of the Processing Instruction.toString()voidWrites this event to the specifiedWriter.Methods inherited from class org.thymeleaf.engine.AbstractTemplateEvent
getCol, getLine, getTemplateName, hasLocationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.thymeleaf.model.ITemplateEvent
getCol, getLine, getTemplateName, hasLocation
-
Field Details
-
target
-
-
processingInstruction
-
-
Constructor Details
-
ProcessingInstruction
-
ProcessingInstruction
-
-
Method Details
-
getTarget
Description copied from interface:IProcessingInstructionReturns the target of the Processing Instruction.
- Specified by:
getTargetin interfaceIProcessingInstruction- Returns:
- the Processing Instruction target.
-
getContent
Description copied from interface:IProcessingInstructionReturns the content of the Processing Instruction.
- Specified by:
getContentin interfaceIProcessingInstruction- Returns:
- the Processing Instruction content.
-
getProcessingInstruction
Description copied from interface:IProcessingInstructionReturns the complete Processing Instruction as a String.
- Specified by:
getProcessingInstructionin interfaceIProcessingInstruction- Returns:
- the complete Processing Instruction.
-
computeProcessingInstruction
-
accept
Description copied from interface:ITemplateEventAccept a visitor, implementation of
IModelVisitor.- Specified by:
acceptin interfaceITemplateEvent- Parameters:
visitor- the visitor.
-
write
Description copied from interface:ITemplateEventWrites this event to the specified
Writer.Template output performed at
OutputTemplateHandleris done by calling these methods at each of the events resulting from template processing.- Specified by:
writein interfaceITemplateEvent- Parameters:
writer- the writer this event should be written to.- Throws:
IOException- if an input/output exception occurs.
-
asEngineProcessingInstruction
static ProcessingInstruction asEngineProcessingInstruction(IProcessingInstruction processingInstruction) -
beHandled
- Specified by:
beHandledin interfaceIEngineTemplateEvent
-
toString
-