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
Fields Modifier and Type Field Description private java.lang.Stringcontentprivate java.lang.StringprocessingInstructionprivate java.lang.Stringtarget-
Fields inherited from class org.thymeleaf.engine.AbstractTemplateEvent
col, line, templateName
-
-
Constructor Summary
Constructors Constructor Description ProcessingInstruction(java.lang.String target, java.lang.String content)ProcessingInstruction(java.lang.String processingInstruction, java.lang.String target, java.lang.String content, java.lang.String templateName, int line, int col)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(IModelVisitor visitor)Accept a visitor, implementation ofIModelVisitor.(package private) static ProcessingInstructionasEngineProcessingInstruction(IProcessingInstruction processingInstruction)voidbeHandled(ITemplateHandler handler)private java.lang.StringcomputeProcessingInstruction()java.lang.StringgetContent()Returns the content of the Processing Instruction.java.lang.StringgetProcessingInstruction()Returns the complete Processing Instruction as a String.java.lang.StringgetTarget()Returns the target of the Processing Instruction.java.lang.StringtoString()voidwrite(java.io.Writer writer)Writes this event to the specifiedWriter.-
Methods inherited from class org.thymeleaf.engine.AbstractTemplateEvent
getCol, getLine, getTemplateName, hasLocation
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.thymeleaf.model.ITemplateEvent
getCol, getLine, getTemplateName, hasLocation
-
-
-
-
Constructor Detail
-
ProcessingInstruction
ProcessingInstruction(java.lang.String target, java.lang.String content)
-
ProcessingInstruction
ProcessingInstruction(java.lang.String processingInstruction, java.lang.String target, java.lang.String content, java.lang.String templateName, int line, int col)
-
-
Method Detail
-
getTarget
public java.lang.String getTarget()
Description copied from interface:IProcessingInstructionReturns the target of the Processing Instruction.
- Specified by:
getTargetin interfaceIProcessingInstruction- Returns:
- the Processing Instruction target.
-
getContent
public java.lang.String getContent()
Description copied from interface:IProcessingInstructionReturns the content of the Processing Instruction.
- Specified by:
getContentin interfaceIProcessingInstruction- Returns:
- the Processing Instruction content.
-
getProcessingInstruction
public java.lang.String getProcessingInstruction()
Description copied from interface:IProcessingInstructionReturns the complete Processing Instruction as a String.
- Specified by:
getProcessingInstructionin interfaceIProcessingInstruction- Returns:
- the complete Processing Instruction.
-
computeProcessingInstruction
private java.lang.String computeProcessingInstruction()
-
accept
public void accept(IModelVisitor visitor)
Description copied from interface:ITemplateEventAccept a visitor, implementation of
IModelVisitor.- Specified by:
acceptin interfaceITemplateEvent- Parameters:
visitor- the visitor.
-
write
public void write(java.io.Writer writer) throws java.io.IOExceptionDescription 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:
java.io.IOException- if an input/output exception occurs.
-
asEngineProcessingInstruction
static ProcessingInstruction asEngineProcessingInstruction(IProcessingInstruction processingInstruction)
-
beHandled
public void beHandled(ITemplateHandler handler)
- Specified by:
beHandledin interfaceIEngineTemplateEvent
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-