static class AnalyzePrototypeProperties.AssignmentProperty extends java.lang.Object implements AnalyzePrototypeProperties.Property
function Foo() { ... };
Foo.prototype.bar = function() { ... };| Modifier and Type | Field and Description |
|---|---|
private Node |
exprNode |
private JSModule |
module |
private Var |
rootVar |
| Constructor and Description |
|---|
AssignmentProperty(Node node,
Var rootVar,
JSModule module) |
| Modifier and Type | Method and Description |
|---|---|
private Node |
getAssignNode() |
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 exprNode
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.Propertyprivate Node getAssignNode()
public JSModule getModule()
AnalyzePrototypeProperties.SymbolgetModule in interface AnalyzePrototypeProperties.Symbol