private final class PerformanceTracker.CodeSizeEstimatePrinter extends CodeConsumer
| Modifier and Type | Field and Description |
|---|---|
private char |
lastChar |
private java.io.ByteArrayOutputStream |
output |
private int |
size |
private java.util.zip.GZIPOutputStream |
stream |
sawFunction, statementNeedsEnded, statementStarted| Modifier | Constructor and Description |
|---|---|
private |
CodeSizeEstimatePrinter() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
append(java.lang.String str)
Appends a string to the code, keeping track of the current line length.
|
private int |
calcSize() |
private int |
calcZippedSize() |
(package private) char |
getLastChar()
Retrieve the last character of the last string sent to append.
|
add, addConstant, addIdentifier, addNumber, addOp, appendBlockEnd, appendBlockStart, appendOp, beginBlock, beginCaseBody, breakAfterBlockFor, continueProcessing, endBlock, endBlock, endCaseBody, endClass, endFile, endFunction, endLine, endSourceMapping, endStatement, endStatement, isNegativeZero, isWordChar, listSeparator, maybeCutLine, maybeEndStatement, maybeInsertSpace, maybeLineBreak, notePreferredLineBreak, shouldPreserveExtraBlocks, startNewLine, startSourceMappingprivate int size
private char lastChar
private final java.io.ByteArrayOutputStream output
private final java.util.zip.GZIPOutputStream stream
void append(java.lang.String str)
CodeConsumerCodeConsumer.startNewLine().append in class CodeConsumerchar getLastChar()
CodeConsumergetLastChar in class CodeConsumerprivate int calcSize()
private int calcZippedSize()