diff --git a/jode/jode/expr/PutFieldOperator.java b/jode/jode/expr/PutFieldOperator.java index c37bb59..5527d71 100644 --- a/jode/jode/expr/PutFieldOperator.java +++ b/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; }