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.Symbol
getRootVar
in interface AnalyzePrototypeProperties.Symbol
public void remove(AbstractCompiler compiler)
AnalyzePrototypeProperties.Symbol
remove
in interface AnalyzePrototypeProperties.Symbol
public Node getPrototype()
AnalyzePrototypeProperties.Property
getPrototype
in interface AnalyzePrototypeProperties.Property
public Node getValue()
AnalyzePrototypeProperties.Property
getValue
in interface AnalyzePrototypeProperties.Property
private Node getAssignNode()
public JSModule getModule()
AnalyzePrototypeProperties.Symbol
getModule
in interface AnalyzePrototypeProperties.Symbol