isThis added

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@281 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 44fe5feb29
commit ba81e2e464
  1. 12
      jode/jode/expr/PutFieldOperator.java

@ -45,12 +45,22 @@ public class PutFieldOperator extends StoreInstruction {
} }
public boolean isSynthetic() { public boolean isSynthetic() {
if (!classType.equals(Type.tClass(codeAnalyzer.getClazz().getName()))) if (!isThis())
return false; return false;
return codeAnalyzer.getClassAnalyzer() return codeAnalyzer.getClassAnalyzer()
.getField(fieldName, fieldType).isSynthetic(); .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
* allow super class
*/
public boolean isThis() {
return (classType.equals(Type.tClass(codeAnalyzer.getClazz().
getName())));
}
public String getFieldName() { public String getFieldName() {
return fieldName; return fieldName;
} }

Loading…
Cancel
Save