public class PropertiesUtil extends Object
Constructor and Description |
---|
PropertiesUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
addKnownPropertiesJs(TreeLogger logger,
CompilationResult result) |
static StringBuffer |
addPropertiesJs(StringBuffer selectionScript,
TreeLogger logger,
LinkerContext context) |
static String |
generatePropertiesSnippet(ModuleDef module,
TreeLogger compileLogger)
Returns JavaScript that declares and initializes the "providers" and "values" variables.
|
public static String addKnownPropertiesJs(TreeLogger logger, CompilationResult result)
public static StringBuffer addPropertiesJs(StringBuffer selectionScript, TreeLogger logger, LinkerContext context) throws UnableToCompleteException
UnableToCompleteException
public static String generatePropertiesSnippet(ModuleDef module, TreeLogger compileLogger) throws UnableToCompleteException
Requires $doc and $wnd variables to be defined. (And possibly others; this is unclear.)
Provides "providers" and "values" variables.
.UnableToCompleteException
Copyright © 2018. All rights reserved.