Class ScopeHidingVariableRewriter
java.lang.Object
org.benf.cfr.reader.bytecode.analysis.opgraph.op4rewriters.ScopeHidingVariableRewriter
- All Implemented Interfaces:
Op04Rewriter
We may have deep inner classes, with references to each other.
So
this.Inner2.this.Inner1.this
But this is illegal. So remove the outer one, leaving
this.Inner1.this (the LHS this is still illegal, but will be removed later).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClassCacheprivate List<LocalVariable> private final Method -
Constructor Summary
ConstructorsConstructorDescriptionScopeHidingVariableRewriter(List<ClassFileField> fieldVariables, Method method, ClassCache classCache) -
Method Summary
-
Field Details
-
method
-
classCache
-
outerNames
-
usedNames
-
collisions
-
-
Constructor Details
-
ScopeHidingVariableRewriter
public ScopeHidingVariableRewriter(List<ClassFileField> fieldVariables, Method method, ClassCache classCache)
-
-
Method Details
-
checkCollision
-
rewrite
- Specified by:
rewritein interfaceOp04Rewriter
-