public class VariableNameTidier extends Object implements StructuredStatementTransformer
Modifier and Type | Class and Description |
---|---|
static class |
VariableNameTidier.NameDiscoverer |
Constructor and Description |
---|
VariableNameTidier(Method method,
ClassCache classCache) |
VariableNameTidier(Method method,
Set<String> bannedNames,
ClassCache classCache) |
Modifier and Type | Method and Description |
---|---|
boolean |
isClassRenamed() |
void |
renameToAvoidHiding(Set<String> avoid,
List<LocalVariable> collisions) |
void |
transform(Op04StructuredStatement root) |
StructuredStatement |
transform(StructuredStatement in,
StructuredScope scope) |
public VariableNameTidier(Method method, Set<String> bannedNames, ClassCache classCache)
public VariableNameTidier(Method method, ClassCache classCache)
public void transform(Op04StructuredStatement root)
public void renameToAvoidHiding(Set<String> avoid, List<LocalVariable> collisions)
public boolean isClassRenamed()
public StructuredStatement transform(StructuredStatement in, StructuredScope scope)
transform
in interface StructuredStatementTransformer
Copyright © 2011-2021. All Rights Reserved.