public static class RecoderModelTransformer.TransformerCache extends Object
Modifier and Type | Field and Description |
---|---|
private Set<ClassDeclaration> |
classDeclarations |
private List<CompilationUnit> |
cUnits |
private HashMap<ClassType,List<Variable>> |
localClass2FinalVar |
private HashMap<TypeDeclaration,List<ClassType>> |
typeDeclaration2allSupertypes |
Constructor and Description |
---|
TransformerCache(List<CompilationUnit> cUnits) |
Modifier and Type | Method and Description |
---|---|
List<ClassType> |
getAllSupertypes(TypeDeclaration td) |
Set<ClassDeclaration> |
getClassDeclarations() |
HashMap<ClassType,List<Variable>> |
getLocalClass2FinalVarMapping() |
List<CompilationUnit> |
getUnits() |
protected void |
init() |
void |
invalidateClasses()
if the class declaration set changes, the cache must be invalidated
|
private List<CompilationUnit> cUnits
private Set<ClassDeclaration> classDeclarations
private HashMap<TypeDeclaration,List<ClassType>> typeDeclaration2allSupertypes
public TransformerCache(List<CompilationUnit> cUnits)
public List<ClassType> getAllSupertypes(TypeDeclaration td)
public List<CompilationUnit> getUnits()
public Set<ClassDeclaration> getClassDeclarations()
protected void init()
public HashMap<ClassType,List<Variable>> getLocalClass2FinalVarMapping()
public void invalidateClasses()