|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object freemarker.template.instruction.NoParseInstruction
public final class NoParseInstruction
An instruction for containing an arbitrary block of text that is not parsed any further by FM-Classic.
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 |
Constructor Summary | |
---|---|
NoParseInstruction()
Default constructor. |
Method Summary | |
---|---|
TemplateProcessor |
callBuilder(TemplateBuilder builder)
A TemplateBuilder can call
this method to have an Instruction call it back to be built. |
Instruction.EndType |
getEndType()
Determine what type of end instruction this is, if any. |
boolean |
isEndInstruction()
Is this an end instruction? |
TemplateProcessor.ExitStatus |
process(TemplateProcessorParameters p)
Process this <noparse> instruction. |
void |
setText(java.lang.String text)
Sets the text to be output when evaluating this instruction. |
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 |
Constructor Detail |
---|
public NoParseInstruction()
Method Detail |
---|
public void setText(java.lang.String text)
setText
in interface UnparsedInstruction
text
- the text to be outputpublic boolean isEndInstruction()
isEndInstruction
in interface Instruction
false
, indicating that this is not an end instructionpublic Instruction.EndType getEndType()
getEndType
in interface Instruction
NONE
, indicating that this is not an end instructionpublic TemplateProcessor callBuilder(TemplateBuilder builder) throws ParseException
TemplateBuilder
can call
this method to have an Instruction
call it back to be built.
This implementation calls the
TemplateBuilder.buildStatement(UnparsedInstruction)
method, passing back a reference to itself. This approach is intended
to make type-checking of Instruction
objects unnecessary.
callBuilder
in interface Instruction
builder
- the builder to be called back by this method
ParseException
public boolean testEndInstruction(Instruction endInstruction)
EndInstruction
?
testEndInstruction
in interface ContainerInstruction
endInstruction
- the end instruction we're testing
true
if the EndInstruction
is a
noparse end instruction, otherwise false
public TemplateProcessor.ExitStatus process(TemplateProcessorParameters p) throws java.io.IOException
<noparse>
instruction.
process
in interface TemplateProcessor
p
- template processing parameters
java.io.IOException
- an IO error occurred during processingpublic java.lang.String toString()
toString
in class java.lang.Object
String
representing this instruction subtree
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |