public class TokenMapper
extends java.lang.Object
Constructor and Description |
---|
TokenMapper(org.mozilla.javascript.ast.ScriptNode parseTree) |
Modifier and Type | Method and Description |
---|---|
void |
enterNestingLevel(int braceNesting) |
java.util.Map |
getCurrentTokens() |
DebugData |
getDebugData(java.lang.Integer functionPosition) |
void |
incrementFunctionNumber() |
boolean |
leaveNestingLevel(int braceNesting) |
void |
reset() |
int |
sourceCompress(java.lang.String encodedSource,
int offset,
boolean asQuotedString,
java.lang.StringBuffer sb,
int prevToken,
boolean inArgsList,
int currentLevel,
ReplacedTokens replacedTokens)
Compress the script
|
public void incrementFunctionNumber()
public int sourceCompress(java.lang.String encodedSource, int offset, boolean asQuotedString, java.lang.StringBuffer sb, int prevToken, boolean inArgsList, int currentLevel, ReplacedTokens replacedTokens)
encodedSource
- encoded source stringoffset
- position within the encoded sourceasQuotedString
- boolean value indicating a quoted stringsb
- String buffer referenceprevToken
- Previous token in encoded sourceinArgsList
- boolean value indicating position inside arguments listcurrentLevel
- embeded function levelparseTree
- Mapping of each function node and corresponding parameters &
variables namespublic void enterNestingLevel(int braceNesting)
public boolean leaveNestingLevel(int braceNesting)
public java.util.Map getCurrentTokens()
public DebugData getDebugData(java.lang.Integer functionPosition)
public void reset()