public class CloverTokenStreamFilter
extends clover.antlr.TokenStreamHiddenTokenFilter
TokenStreamHiddenTokenFilter| Modifier and Type | Field and Description |
|---|---|
static String |
MARKER |
static String |
MARKER_PREFIX
a marker to indicate add at the front when dumping
token list to mark it as instrumented
|
| Constructor and Description |
|---|
CloverTokenStreamFilter(String filePath,
clover.antlr.CharScanner input)
A filtering token stream that hides java comments
and whitespace from the parser, and builds a list
of tokens that it has seen.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
guardAgainstDoubleInstrumentation(File orig,
BufferedReader bin) |
void |
instrument(FileStructureInfo structure,
FullFileInfo fileInfo,
InstrumentationSession session,
JavaInstrumentationConfig cfg)
process directives, set final emitter state.
|
boolean |
isEOLTerminated() |
clover.antlr.Token |
nextToken() |
void |
write(Writer outWriter)
dump the token list, including hidden whitespace and comment tokens
|
consume, getDiscardMask, getHiddenAfter, getHiddenBefore, getHideMask, getInitialHiddenToken, hide, hide, LApublic static final String MARKER_PREFIX
public static final String MARKER
public CloverTokenStreamFilter(String filePath, clover.antlr.CharScanner input)
filePath - path to original source, for reporting errorsinput - the CharScanner to pull tokens fromTokenStreamHiddenTokenFilterpublic static void guardAgainstDoubleInstrumentation(File orig, BufferedReader bin) throws IOException, CloverException
IOExceptionCloverExceptionpublic clover.antlr.Token nextToken()
throws clover.antlr.TokenStreamException
nextToken in interface clover.antlr.TokenStreamnextToken in class clover.antlr.TokenStreamHiddenTokenFilterclover.antlr.TokenStreamExceptionTokenStream.nextToken()public void instrument(FileStructureInfo structure, FullFileInfo fileInfo, InstrumentationSession session, JavaInstrumentationConfig cfg)
public void write(Writer outWriter) throws IOException
outWriter - a Writer to output the token list toIOExceptionpublic boolean isEOLTerminated()
Copyright © 2024 OpenClover.org. All rights reserved.