abstract static class DefinitionsRemover.Definition
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
isExtern |
Constructor and Description |
---|
Definition(boolean isExtern) |
Modifier and Type | Method and Description |
---|---|
abstract Node |
getLValue()
Variable or property name represented by this definition.
|
abstract Node |
getRValue()
Value expression that acts as the right hand side of the
definition statement.
|
boolean |
isExtern()
Returns true if the definition is an extern.
|
protected abstract void |
performRemove()
Subclasses should override to remove the definition from the AST.
|
void |
remove()
Removes this definition from the AST if it is not an extern.
|
public void remove()
protected abstract void performRemove()
public abstract Node getLValue()
public abstract Node getRValue()
public boolean isExtern()