From 5dda6322776e420b8a6cb27ce19310109a5ad7e0 Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 18 Jun 1999 12:08:04 +0000 Subject: [PATCH] isAnonymousConstructor added git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@868 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/decompiler/MethodAnalyzer.java | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/jode/jode/decompiler/MethodAnalyzer.java b/jode/jode/decompiler/MethodAnalyzer.java index fea1196..ec32f16 100644 --- a/jode/jode/decompiler/MethodAnalyzer.java +++ b/jode/jode/decompiler/MethodAnalyzer.java @@ -109,6 +109,10 @@ public class MethodAnalyzer implements Analyzer { isImplicitAnonymousConstructor = value; } + public final boolean isAnonymousConstructor() { + return isImplicitAnonymousConstructor; + } + public final SyntheticAnalyzer getSynthetic() { return synth; } @@ -131,14 +135,14 @@ public class MethodAnalyzer implements Analyzer { offset++; } - if (isConstructor() && !isStatic() - && classAnalyzer.outerValues != null) { - Expression[] outerValues = classAnalyzer.outerValues; - for (int i=0; i< outerValues.length; i++) { - LocalInfo local = code.getParamInfo(offset+i); - local.setExpression(outerValues[i]); - } - } +// if (isConstructor() && !isStatic() +// && classAnalyzer.outerValues != null) { +// Expression[] outerValues = classAnalyzer.outerValues; +// for (int i=0; i< outerValues.length; i++) { +// LocalInfo local = code.getParamInfo(offset+i); +// local.setExpression(outerValues[i]); +// } +// } Type[] paramTypes = methodType.getParameterTypes(); for (int i=0; i< paramTypes.length; i++) { @@ -231,6 +235,7 @@ public class MethodAnalyzer implements Analyzer { boolean declareAsConstructor = isConstructor; int skipParams = 0; if (isConstructor() && !isStatic() + && (Decompiler.options & Decompiler.OPTION_CONTRAFO) != 0 && classAnalyzer.outerValues != null) skipParams = classAnalyzer.outerValues.length;