decompiler: cleanup

This commit is contained in:
Egor.Ushakov
2015-03-27 12:56:07 +03:00
parent d5e22fe0c9
commit 262d580ccc
28 changed files with 107 additions and 98 deletions

View File

@@ -38,9 +38,9 @@ import java.util.Map.Entry;
public class ClassReference14Processor {
public ExitExprent bodyexprent;
public final ExitExprent bodyexprent;
public ExitExprent handlerexprent;
public final ExitExprent handlerexprent;
public ClassReference14Processor() {

View File

@@ -353,14 +353,14 @@ public class ClassesProcessor {
public int type;
public int access;
public String simpleName;
public StructClass classStruct;
public final StructClass classStruct;
private ClassWrapper wrapper;
public String enclosingMethod;
public InvocationExprent superInvocation;
public Map<String, VarVersionPair> mapFieldsToVars = new HashMap<String, VarVersionPair>();
public final Map<String, VarVersionPair> mapFieldsToVars = new HashMap<String, VarVersionPair>();
public VarType anonymousClassType;
public List<ClassNode> nested = new ArrayList<ClassNode>();
public Set<String> enclosingClasses = new HashSet<String>();
public final List<ClassNode> nested = new ArrayList<ClassNode>();
public final Set<String> enclosingClasses = new HashSet<String>();
public ClassNode parent;
public LambdaInformation lambdaInformation;
public boolean namelessConstructorStub = false;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2014 JetBrains s.r.o.
* Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,7 +17,7 @@ package org.jetbrains.java.decompiler.main.extern;
public interface IIdentifierRenamer {
enum Type {ELEMENT_CLASS, ELEMENT_FIELD, ELEMENT_METHOD};
enum Type {ELEMENT_CLASS, ELEMENT_FIELD, ELEMENT_METHOD}
boolean toBeRenamed(Type elementType, String className, String element, String descriptor);

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2014 JetBrains s.r.o.
* Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -29,13 +29,13 @@ import java.util.List;
public class MethodWrapper {
public RootStatement root;
public final RootStatement root;
public VarProcessor varproc;
public final VarProcessor varproc;
public StructMethod methodStruct;
public final StructMethod methodStruct;
public CounterContainer counter;
public final CounterContainer counter;
public DirectGraph graph;
@@ -43,7 +43,7 @@ public class MethodWrapper {
public boolean decompiledWithErrors;
public HashSet<String> setOuterVarNames = new HashSet<String>();
public final HashSet<String> setOuterVarNames = new HashSet<String>();
public MethodWrapper(RootStatement root, VarProcessor varproc, StructMethod methodStruct, CounterContainer counter) {
this.root = root;