|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfreemarker.template.instruction.CommentInstruction
public final class CommentInstruction
An instruction for commenting out a block of text or adding a remark.
Note:
CommentInstruction is a singleton instance. Use the
getInstance() method to retrieve instances of this instruction.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface freemarker.template.instruction.Instruction |
|---|
Instruction.EndType |
| Nested classes/interfaces inherited from interface freemarker.template.TemplateProcessor |
|---|
TemplateProcessor.ExitStatus |
| Method Summary | |
|---|---|
TemplateProcessor |
callBuilder(TemplateBuilder builder)
Call the TemplateBuilder with
this comment instruction. |
Instruction.EndType |
getEndType()
Determine what type of end instruction this is, if any. |
static CommentInstruction |
getInstance()
Return a singleton instance of a comment instruction. |
boolean |
isEndInstruction()
Is this an end instruction? |
TemplateProcessor.ExitStatus |
process(TemplateProcessorParameters p)
Process this <comment> instruction. |
void |
setText(java.lang.String text)
Sets the text of the comment. |
boolean |
testEndInstruction(Instruction endInstruction)
Is this the right kind of instruction for the given EndInstruction? |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static CommentInstruction getInstance()
CommentInstruction objectpublic boolean isEndInstruction()
isEndInstruction in interface Instructionfalse, indicating that this is not an end instructionpublic Instruction.EndType getEndType()
getEndType in interface InstructionNONE, indicating that this is not an end instruction
public TemplateProcessor callBuilder(TemplateBuilder builder)
throws ParseException
TemplateBuilder with
this comment instruction.
callBuilder in interface Instructionbuilder - the TemplateBuilder to be called back
ParseExceptionpublic void setText(java.lang.String text)
setText in interface UnparsedInstructiontext - the text of the commentpublic boolean testEndInstruction(Instruction endInstruction)
EndInstruction?
testEndInstruction in interface ContainerInstructionendInstruction - the end instruction we're testing
true if the EndInstruction is a
comment end instruction, otherwise falsepublic TemplateProcessor.ExitStatus process(TemplateProcessorParameters p)
<comment> instruction.
process in interface TemplateProcessorp - template processing parameters
public java.lang.String toString()
toString in class java.lang.ObjectString "comment"
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||