public class JsObfuscateNamer extends JsNamer implements FreshNameGenerator
JsNamer.IllegalNameException
program, referenced, reserved
Constructor and Description |
---|
JsObfuscateNamer(JsProgram program,
ConfigurationProperties config) |
Modifier and Type | Method and Description |
---|---|
static FreshNameGenerator |
exec(JsProgram program) |
static FreshNameGenerator |
exec(JsProgram program,
ConfigurationProperties config) |
String |
getFreshName()
Returns a valid unused obfuscated top scope name by keeping track of the last (highest)
name produced.
|
static String |
makeObfuscatedIdent(int id) |
protected void |
reset() |
protected void |
visit(JsScope scope) |
public JsObfuscateNamer(JsProgram program, ConfigurationProperties config)
public static FreshNameGenerator exec(JsProgram program) throws JsNamer.IllegalNameException
JsNamer.IllegalNameException
public static FreshNameGenerator exec(JsProgram program, ConfigurationProperties config) throws JsNamer.IllegalNameException
JsNamer.IllegalNameException
public String getFreshName()
getFreshName
in interface FreshNameGenerator
public static String makeObfuscatedIdent(int id)
Copyright © 2018. All rights reserved.