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

Loading…
Cancel
Save