Class RewriteLegacyClassConstantsTransform
- java.lang.Object
-
- com.strobel.decompiler.languages.java.ast.transforms.RewriteLegacyClassConstantsTransform
-
- All Implemented Interfaces:
IAstTransform
public class RewriteLegacyClassConstantsTransform extends java.lang.Object implements IAstTransform
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
RewriteLegacyClassConstantsTransform.ClassMethodLocator
private static class
RewriteLegacyClassConstantsTransform.Rewriter
-
Field Summary
Fields Modifier and Type Field Description private DecompilerContext
_context
private static int
CANDIDATE_MAX_CODE_SIZE
-
Constructor Summary
Constructors Constructor Description RewriteLegacyClassConstantsTransform(DecompilerContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run(AstNode compilationUnit)
private MethodDefinition
tryLocateClassMethod(TypeDefinition currentType, AstNode compilationUnit)
private MethodDefinition
tryLocateClassMethodOutOfScope(TypeDefinition currentType)
-
-
-
Field Detail
-
CANDIDATE_MAX_CODE_SIZE
private static final int CANDIDATE_MAX_CODE_SIZE
- See Also:
- Constant Field Values
-
_context
private final DecompilerContext _context
-
-
Constructor Detail
-
RewriteLegacyClassConstantsTransform
public RewriteLegacyClassConstantsTransform(DecompilerContext context)
-
-
Method Detail
-
run
public void run(AstNode compilationUnit)
- Specified by:
run
in interfaceIAstTransform
-
tryLocateClassMethod
private MethodDefinition tryLocateClassMethod(TypeDefinition currentType, AstNode compilationUnit)
-
tryLocateClassMethodOutOfScope
@Nullable private MethodDefinition tryLocateClassMethodOutOfScope(TypeDefinition currentType)
-
-