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