isAnonymousConstructor added

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@868 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 9f7aed0192
commit 5dda632277
  1. 21
      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;

Loading…
Cancel
Save