useType aufrufen, falls statisch

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@81 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 38739cbbec
commit a050ca96df
  1. 16
      jode/jode/expr/InvokeOperator.java

@ -40,6 +40,8 @@ public final class InvokeOperator extends Operator {
this.staticFlag = staticFlag; this.staticFlag = staticFlag;
this.specialFlag = specialFlag; this.specialFlag = specialFlag;
this.field = field; this.field = field;
if (staticFlag)
classType.useType();
} }
public boolean isStatic() { public boolean isStatic() {
@ -91,17 +93,13 @@ public final class InvokeOperator extends Operator {
public String toString(String[] operands) { public String toString(String[] operands) {
String object = String object =
staticFlag staticFlag
? ((field.getCpoolClass().getName().getString() ? (classType.equals(Type.tType(codeAnalyzer.getClazz()))
.replace(java.io.File.separatorChar, '.')
.equals(codeAnalyzer.getClazz().getName()))
? "" ? ""
: codeAnalyzer.getTypeString(getClassType())) : classType.toString())
: (operands[0].equals("this") : (operands[0].equals("this")
? ((specialFlag && ? (specialFlag &&
(field.getCpoolClass().getName().getString() classType.equals(Type.tType(codeAnalyzer.getClazz()
.replace(java.io.File.separatorChar, '.') .getSuperclass()))
.equals(codeAnalyzer.getClazz()
.getSuperclass().getName())))
? "super" ? "super"
: "") : "")
: operands[0]); : operands[0]);

Loading…
Cancel
Save