public class JsSourceGenerationVisitorWithSizeBreakdown extends JsSourceGenerationVisitor
JsSourceGenerationVisitor
that records a
SizeBreakdown
as it goes.needSemi
LVALUE_CONTEXT, UNMODIFIABLE_CONTEXT
Constructor and Description |
---|
JsSourceGenerationVisitorWithSizeBreakdown(TextOutput out,
JavaToJavaScriptMap javaToJavaScriptMap) |
Modifier and Type | Method and Description |
---|---|
protected <T extends JsVisitable> |
doAccept(T node) |
protected <T extends JsVisitable> |
doAcceptList(List<T> collection) |
protected <T extends JsVisitable> |
doAcceptWithInsertRemove(List<T> collection) |
protected <T extends JsVisitable> |
generateAndBill(T node,
JsName nameToBillTo)
Generate some JavaScript and bill the number of characters generated to the given name.
|
protected JDeclaredType |
getDirectlyEnclosingType(JsName nameToBillTo) |
SizeBreakdown |
getSizeBreakdown() |
Map<Range,SourceInfo> |
getSourceInfoMap() |
boolean |
visit(JsBlock x,
JsContext ctx) |
boolean |
visit(JsProgramFragment x,
JsContext ctx) |
boolean |
visit(JsProgram x,
JsContext ctx) |
_newline, _newlineOpt, getStatementRanges, printJsBlock, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
accept, acceptList, acceptLvalue, acceptWithInsertRemove, didChange, doAcceptLvalue, doTraverse, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit
public JsSourceGenerationVisitorWithSizeBreakdown(TextOutput out, JavaToJavaScriptMap javaToJavaScriptMap)
public SizeBreakdown getSizeBreakdown()
public Map<Range,SourceInfo> getSourceInfoMap()
public boolean visit(JsBlock x, JsContext ctx)
visit
in class JsSourceGenerationVisitor
public boolean visit(JsProgram x, JsContext ctx)
visit
in class JsSourceGenerationVisitor
public boolean visit(JsProgramFragment x, JsContext ctx)
visit
in class JsSourceGenerationVisitor
protected final <T extends JsVisitable> T doAccept(T node)
protected <T extends JsVisitable> void doAcceptList(List<T> collection)
doAcceptList
in class JsVisitor
protected <T extends JsVisitable> void doAcceptWithInsertRemove(List<T> collection)
doAcceptWithInsertRemove
in class JsVisitor
protected <T extends JsVisitable> T generateAndBill(T node, JsName nameToBillTo)
protected JDeclaredType getDirectlyEnclosingType(JsName nameToBillTo)
Copyright © 2018. All rights reserved.