class InlineCostEstimator
extends java.lang.Object
CodeGenerator
,
CodePrinter
Modifier and Type | Class and Description |
---|---|
private static class |
InlineCostEstimator.CompiledSizeEstimator
Code consumer that estimates compiled size by assuming names are
shortened and all whitespace is stripped.
|
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
ESTIMATED_IDENTIFIER |
(package private) static int |
ESTIMATED_IDENTIFIER_COST |
Modifier | Constructor and Description |
---|---|
private |
InlineCostEstimator() |
Modifier and Type | Method and Description |
---|---|
(package private) static int |
getCost(Node root)
Determines the size of the JS code.
|
(package private) static int |
getCost(Node root,
int costThreshold)
Determines the estimated size of the JS snippet represented by the node.
|
private static final java.lang.String ESTIMATED_IDENTIFIER
static final int ESTIMATED_IDENTIFIER_COST