public class JsIEBlockTextTransformer extends JsAbstractTextTransformer
js, originalStatementRanges, sourceInfoMap, statementRanges
Constructor and Description |
---|
JsIEBlockTextTransformer(JsAbstractTextTransformer xformer) |
JsIEBlockTextTransformer(String js,
StatementRanges statementRanges,
Map<Range,SourceInfo> sourceInfoMap) |
Modifier and Type | Method and Description |
---|---|
protected void |
beginStatement(int index,
StringBuilder newJs,
ArrayList<Integer> starts)
Record start of statement, and optionally inject new open block.
|
protected void |
beginStatements(StringBuilder newJs,
ArrayList<Integer> starts,
ArrayList<Integer> ends)
Called if any operations need to be performed before all statements have
been processed.
|
protected void |
endStatement(int index,
StringBuilder newJs,
ArrayList<Integer> ends)
Record end of statement, and optionally inject close block, if block is
full.
|
protected void |
endStatements(StringBuilder newJs,
ArrayList<Integer> starts,
ArrayList<Integer> ends)
Used to close a trailing block which never filled.
|
void |
exec()
Do not perform clustering, only fix up IE7 block issue.
|
Set<Integer> |
getStatementsAddedBlockClose() |
Set<Integer> |
getStatementsAddedBlockOpen() |
protected void |
updateSourceInfoMap()
Fixes the index ranges of individual expressions in the generated
JS after chunking statements into blocks that satisfy the IE block
size problem.
|
addStatement, getJs, getJsForRange, getSourceInfoMap, getStatementRanges, recomputeJsAndStatementRanges
public JsIEBlockTextTransformer(JsAbstractTextTransformer xformer)
public JsIEBlockTextTransformer(String js, StatementRanges statementRanges, Map<Range,SourceInfo> sourceInfoMap)
public void exec()
exec
in class JsAbstractTextTransformer
protected void beginStatement(int index, StringBuilder newJs, ArrayList<Integer> starts)
beginStatement
in class JsAbstractTextTransformer
protected void beginStatements(StringBuilder newJs, ArrayList<Integer> starts, ArrayList<Integer> ends)
JsAbstractTextTransformer
beginStatements
in class JsAbstractTextTransformer
protected void endStatement(int index, StringBuilder newJs, ArrayList<Integer> ends)
endStatement
in class JsAbstractTextTransformer
protected void endStatements(StringBuilder newJs, ArrayList<Integer> starts, ArrayList<Integer> ends)
endStatements
in class JsAbstractTextTransformer
protected void updateSourceInfoMap()
updateSourceInfoMap
in class JsAbstractTextTransformer
Copyright © 2018. All rights reserved.