From b9473ff9feb81c3d7a9455719b06e167252fdac6 Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 11 Mar 1999 22:51:52 +0000 Subject: [PATCH] getField instead of isSynthetic git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@369 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/expr/PutFieldOperator.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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; }