public class RewritableClass
extends java.lang.Object
Constructor and Description |
---|
RewritableClass(org.eclipse.jdt.core.dom.ASTNode root,
java.lang.String originalCode) |
Modifier and Type | Method and Description |
---|---|
CompilableClass |
getRewrittenClass(RewritingPermutator.ArgumentPermutation arguments)
Rewrite the class with the given permutation of arguments to rewrite with.
|
static java.util.List<CompilableClass> |
getRewrittenClasses(java.util.List<RewritableClass> classes,
RewritingPermutator.ArgumentPermutation arguments)
Utility method to rewrite multiple classes.
|
void |
removeRewrittenClass(RewritingPermutator.ArgumentPermutation arguments)
Remove the rewritten class for the given permutation of arguments from the cache.
|
public RewritableClass(org.eclipse.jdt.core.dom.ASTNode root, java.lang.String originalCode)
public static java.util.List<CompilableClass> getRewrittenClasses(java.util.List<RewritableClass> classes, RewritingPermutator.ArgumentPermutation arguments)
RewritableClass#getRewrittenClass(ArgumentPermutation)
.public CompilableClass getRewrittenClass(RewritingPermutator.ArgumentPermutation arguments)
public void removeRewrittenClass(RewritingPermutator.ArgumentPermutation arguments)