|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmmp.engine.Input
public class Input
Input is responsible for the management of the input sources of mmp.
During the processing of input, the input can be altered by
the inclusion of files to be processed by the macro 'include' and
by macro expansions which are inserted in front of the remaining
input.
Input is organized as a stack of readers for input, the 'inputStack'.
Input furthermore has a queue of readers, called the 'wrapupQueue',
for parts of the input that are postponed for processing at the end
of input.
Constructor Summary | |
---|---|
Input(java.io.Reader source)
Constructor, that initializes the Input with a Reader source. |
Method Summary | |
---|---|
void |
addWrapupSource(java.io.Reader source)
Adds the reader 'source' to the wrapupQueue, to be processed at the end of input. |
boolean |
matches(java.lang.String string)
The method checks whether the input matches string. |
int |
peekChar()
Lookahead of one character in the Input. |
void |
pushInputSource(java.io.Reader source)
Pushes the reader 'source' on the inputStack. |
int |
readChar()
Reads a single character from Input. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Input(java.io.Reader source)
source
- where to read input.Method Detail |
---|
public final void addWrapupSource(java.io.Reader source)
source
- reader to be queued.public final boolean matches(java.lang.String string) throws java.io.IOException
string
- to be compared with the input
java.io.IOException
- if io errorpublic final int peekChar() throws java.io.IOException
java.io.IOException
- if io errorpublic final void pushInputSource(java.io.Reader source)
source
- reader to be pushed on the inputStack.public final int readChar() throws java.io.IOException
java.io.IOException
- if io error
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |