|
ESC/Java2 © 2003,2004,2005,2006 David Cok and Joseph Kiniry © 2005,2006 UCD Dublin © 2003,2004 Radboud University Nijmegen © 1999,2000 Compaq Computer Corporation © 1997,1998,1999 Digital Equipment Corporation All Rights Reserved |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavafe.util.CorrelatedReader
javafe.util.FilterCorrelatedReader
escjava.parser.JmlCorrelatedReader
This FilterCorrelatedReader creates the illusion that the
additional \@-signs, etc. allowed in the JML annotation syntax are
really just whitespace.
FilterCorrelatedReader| Field Summary | |
private boolean |
allowSpecialSuffix
Indicates whether or not a sequence of consecutive special characters at the end of the comment are to be treated as white space. |
static int |
C_COMMENT
|
static int |
COMMENTS_KINDS
|
static int |
EOL_COMMENT
|
static int |
JAVADOC_COMMENT
|
private int |
lastUnreturnedChar
If there are unreturned characters, lastUnreturnedChar indicates the last of these characters. |
private int |
lastUnreturnedCharAtMark
|
private int |
prefixMode
The lines of the input consist of (0) a number of whitespace characters, (1) a number of special characters ('@' in ordinary comments and '*' inside Javadoc comments), and followed by (2) the "real meat". |
private int |
prefixModeAtMark
|
private int |
specialCharacter
Indicates the special character. |
private int |
unreturnedChars
This variable is included so that @-signs at the end of a pragma-containing comment can be ignored. |
private int |
unreturnedCharsAtMark
|
| Fields inherited from class javafe.util.FilterCorrelatedReader |
child |
| Fields inherited from class javafe.util.CorrelatedReader |
marked |
| Constructor Summary | |
protected |
JmlCorrelatedReader(CorrelatedReader child,
int commentKind)
Constructs a JmlCorrelatedReader with
child as the underlying CorrelatedReader.
|
| Method Summary | |
int |
getLocation()
Returns the location of the last character read. |
void |
mark()
See documentation in superclass. |
int |
read()
Reads the next character from this input stream. |
void |
reset()
See documentation in superclass. |
| Methods inherited from class javafe.util.FilterCorrelatedReader |
clearMark, close, createReaderFromMark, getFile |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int EOL_COMMENT
public static final int C_COMMENT
public static final int JAVADOC_COMMENT
public static final int COMMENTS_KINDS
private int prefixMode
prefixMode indicates
which of these three segments are currently being scanned.
private final int specialCharacter
private int unreturnedChars
unreturnedChars is non-zero only when lastUnreturnedChar is not an @-sign.
unreturnedChars is not used (actually, is 0) when scanning Javadoc comments.
private int lastUnreturnedChar
private final boolean allowSpecialSuffix
private int prefixModeAtMark
private int unreturnedCharsAtMark
private int lastUnreturnedCharAtMark
| Constructor Detail |
protected JmlCorrelatedReader(CorrelatedReader child,
int commentKind)
JmlCorrelatedReader with
child as the underlying CorrelatedReader.
After calling this constructor, the caller should no longer use
child directly.
commentKind is EOL_COMMENT to indicate
a slash-slash comment, C_COMMENT to indicate an ordinary
slash-star comment, and JAVADOC_COMMENT to indicate that
the portion to be read resides inside a (pair of tags in a)
Javadoc comment.
| Method Detail |
public int read()
throws java.io.IOException
read in class FilterCorrelatedReaderjava.io.IOExceptionpublic int getLocation()
FilterCorrelatedReader
getLocation in class FilterCorrelatedReaderpublic void mark()
FilterCorrelatedReader
mark in class FilterCorrelatedReader
public void reset()
throws java.io.IOException
FilterCorrelatedReader
reset in class FilterCorrelatedReaderjava.io.IOException
|
ESC/Java2 © 2003,2004,2005,2006 David Cok and Joseph Kiniry © 2005,2006 UCD Dublin © 2003,2004 Radboud University Nijmegen © 1999,2000 Compaq Computer Corporation © 1997,1998,1999 Digital Equipment Corporation All Rights Reserved |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||