| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private PreprocessorListener | |
| private Source | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. |
| protected void | |
| public int | |
| public int | |
| public String | |
| public final Source | |
| public String | |
| pack-priv void | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| public Iterator | |
| pack-priv void | |
| public void | |
| pack-priv void | |
| public Token | Returns: the NL token.true if only whitespace is permitted on the
remainder of the line. white)Skips tokens until the end of line. |
| public abstract Token | |
| protected void |
| active | back to summary |
|---|---|
| private boolean active | |
| autopop | back to summary |
|---|---|
| private boolean autopop | |
| listener | back to summary |
|---|---|
| private PreprocessorListener listener | |
| parent | back to summary |
|---|---|
| private Source parent | |
| werror | back to summary |
|---|---|
| private boolean werror | |
| Source | back to summary |
|---|---|
| public Source() | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| error | back to summary |
|---|---|
| protected void error(final int line, final int column, final String msg) throws LexerException | |
| getColumn | back to summary |
|---|---|
| public int getColumn() Returns the current column number within this Source. | |
| getLine | back to summary |
|---|---|
| public int getLine() Returns the current line number within this Source.
| |
| getName | back to summary |
|---|---|
| public String getName() Returns the human-readable name of the current Source.
| |
| getParent | back to summary |
|---|---|
| public final Source getParent() Returns the parent source of this source. Sources form a singly linked list. | |
| getPath | back to summary |
|---|---|
| public String getPath() Returns the File currently being lexed.
If this Source is not a
| |
| init | back to summary |
|---|---|
| pack-priv void init(final Preprocessor pp) | |
| isActive | back to summary |
|---|---|
| pack-priv boolean isActive() | |
| isAutopop | back to summary |
|---|---|
| pack-priv boolean isAutopop() Returns true if this Source should be transparently popped from the input stack. Examples of such sources are macro expansions. | |
| isExpanding | back to summary |
|---|---|
| pack-priv boolean isExpanding(final Macro m) Returns true if this Source is expanding the given macro. This is used to prevent macro recursion. | |
| isNumbered | back to summary |
|---|---|
| pack-priv boolean isNumbered() Returns true if this source has line numbers. | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Returns a token iterator for this Source.
| |
| setActive | back to summary |
|---|---|
| pack-priv void setActive(final boolean b) | |
| setListener | back to summary |
|---|---|
| public void setListener(final PreprocessorListener pl) Sets the listener for this Source. Normally this is set by the Preprocessor when a Source is used, but if you are using a Source as a standalone object, you may wish to call this. | |
| setParent | back to summary |
|---|---|
| pack-priv void setParent(final Source parent, final boolean autopop) Sets the parent source of this source. Sources form a singly linked list. | |
| skipline | back to summary |
|---|---|
| public Token skipline(final boolean white) throws IOException, LexerException Skips tokens until the end of line. | |
| token | back to summary |
|---|---|
| public abstract Token token() throws IOException, LexerException Returns the next Token parsed from this input stream. | |
| warning | back to summary |
|---|---|
| protected void warning(final int line, final int column, final String msg) throws LexerException | |