getField instead of isSynthetic

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@369 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 514aa2598a
commit b9473ff9fe
  1. 15
      jode/jode/expr/PutFieldOperator.java

@ -20,6 +20,7 @@
package jode.expr;
import jode.Type;
import jode.decompiler.CodeAnalyzer;
import jode.decompiler.FieldAnalyzer;
public class PutFieldOperator extends StoreInstruction {
CodeAnalyzer codeAnalyzer;
@ -44,13 +45,6 @@ public class PutFieldOperator extends StoreInstruction {
return staticFlag;
}
public boolean isSynthetic() {
if (!isThis())
return false;
return codeAnalyzer.getClassAnalyzer()
.getField(fieldName, fieldType).isSynthetic();
}
/**
* Checks, whether this is a call of a method from this class.
* @XXX check, if this class implements the method and if not
@ -61,6 +55,13 @@ public class PutFieldOperator extends StoreInstruction {
getName())));
}
public FieldAnalyzer getField() {
if (!isThis())
return null;
return codeAnalyzer.getClassAnalyzer()
.getField(fieldName, fieldType);
}
public String getFieldName() {
return fieldName;
}

Loading…
Cancel
Save