public class ScopeStack extends Object
| Constructor and Description |
|---|
ScopeStack() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeScope() |
String |
declareVariable(Object key,
String proposedName,
boolean synthetic) |
String |
declareVariable(Object key,
String proposedName,
boolean synthetic,
boolean withUniqueName)
provides and registers a fresh variable in the current scope.
|
protected String |
findNewName(Set<String> names,
String proposedName) |
Object |
get(String name) |
String |
getName(Object referenced) |
void |
openScope(boolean pseudoScope) |
String |
removeName(Object referenced) |
public void openScope(boolean pseudoScope)
public void closeScope()
public String removeName(Object referenced) throws IllegalStateException
IllegalStateException - if the referenced object does not have a name in the current scope.public String declareVariable(Object key, String proposedName, boolean synthetic, boolean withUniqueName)
withUniqueName - This is a workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=445949Copyright © 2015. All Rights Reserved.