static class AnalyzePrototypeProperties.LiteralProperty extends java.lang.Object implements AnalyzePrototypeProperties.Property
function Foo() { ... };
Foo.prototype = {bar: function() { ... };| Modifier and Type | Field and Description |
|---|---|
private Node |
assign |
private Node |
key |
private Node |
map |
private JSModule |
module |
private Var |
rootVar |
private Node |
value |
| Constructor and Description |
|---|
LiteralProperty(Node key,
Node value,
Node map,
Node assign,
Var rootVar,
JSModule module) |
| Modifier and Type | Method and Description |
|---|---|
JSModule |
getModule()
Returns the module where this appears.
|
Node |
getPrototype()
Returns the GETPROP node that refers to the prototype.
|
Var |
getRootVar()
The variable for the root of this symbol.
|
Node |
getValue()
Returns the value of this property.
|
void |
remove(AbstractCompiler compiler)
Remove the declaration from the AST.
|
private final Node key
private final Node value
private final Node map
private final Node assign
private final Var rootVar
private final JSModule module
public Var getRootVar()
AnalyzePrototypeProperties.SymbolgetRootVar in interface AnalyzePrototypeProperties.Symbolpublic void remove(AbstractCompiler compiler)
AnalyzePrototypeProperties.Symbolremove in interface AnalyzePrototypeProperties.Symbolpublic Node getPrototype()
AnalyzePrototypeProperties.PropertygetPrototype in interface AnalyzePrototypeProperties.Propertypublic Node getValue()
AnalyzePrototypeProperties.PropertygetValue in interface AnalyzePrototypeProperties.Propertypublic JSModule getModule()
AnalyzePrototypeProperties.SymbolgetModule in interface AnalyzePrototypeProperties.Symbol