public class ModuleIdentifier extends Object
Modifier and Type | Method and Description |
---|---|
static ModuleIdentifier |
forClosure(String name) |
static ModuleIdentifier |
forFile(String filepath) |
String |
getClosureNamespace() |
String |
getModuleName() |
String |
getName() |
String |
toString() |
public String getName()
public String getClosureNamespace()
public String getModuleName()
public static ModuleIdentifier forClosure(String name)
name
- Closure namespace used as an entry point. May start
"goog:" when provided as a flag from the command line.
Closure entry points may also be formatted as:
'goog:moduleName:name.space'
which specifies that the module name and provided namespace
are differentpublic static ModuleIdentifier forFile(String filepath)
filepath
- ES6 or CommonJS module used as an entry point.Copyright © 2009-2017 Google. All Rights Reserved.