|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TemplateParser
An interface for classes that parse templates. This defines the minimum
contract that LinkedListTemplateBuilder
expects.
The typical scenario is text blocks with one or more instructions between
each one. Text blocks are simply Instructions of type
TextBlockInstruction
.
Method Summary | |
---|---|
java.lang.String |
atChar()
Adds text to an error message indicating the line number where the error was found. |
Instruction |
getNextInstruction()
Searches the text for an instruction, starting at the current parse position. |
boolean |
isMoreInstructions()
Are there any more instructions left to be parsed? |
java.lang.String |
skipToEndInstruction(ContainerInstruction beginInstruction)
Searches the text for a matching end instruction, starting at the current parse position. |
Method Detail |
---|
Instruction getNextInstruction() throws ParseException
Instruction
.
Instruction
, or null
if no more
instructions exist in the template
representing the next instruction following the current parse position.
ParseException
boolean isMoreInstructions()
true
if there is more text to parse, otherwise
false
java.lang.String skipToEndInstruction(ContainerInstruction beginInstruction)
String
of the intermediate text if we find the
end instruction we're after, otherwise null
.java.lang.String atChar()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |