|
|
@ -34,7 +34,7 @@ public class GetFieldOperator extends Operator { |
|
|
|
super(Type.tType(ref.getType()), 0); |
|
|
|
super(Type.tType(ref.getType()), 0); |
|
|
|
this.codeAnalyzer = codeAnalyzer; |
|
|
|
this.codeAnalyzer = codeAnalyzer; |
|
|
|
this.staticFlag = staticFlag; |
|
|
|
this.staticFlag = staticFlag; |
|
|
|
this.classType = Type.tClass(ref.getClazz()); |
|
|
|
this.classType = Type.tType(ref.getClazz()); |
|
|
|
this.ref = ref; |
|
|
|
this.ref = ref; |
|
|
|
if (staticFlag) |
|
|
|
if (staticFlag) |
|
|
|
classType.useType(); |
|
|
|
classType.useType(); |
|
|
@ -64,7 +64,7 @@ public class GetFieldOperator extends Operator { |
|
|
|
public String toString(String[] operands) { |
|
|
|
public String toString(String[] operands) { |
|
|
|
String fieldName = ref.getName(); |
|
|
|
String fieldName = ref.getName(); |
|
|
|
return staticFlag |
|
|
|
return staticFlag |
|
|
|
? (classType.equals(Type.tClass(codeAnalyzer.getClazz().getName())) |
|
|
|
? (classType.equals(Type.tClass(codeAnalyzer.getClazz())) |
|
|
|
&& codeAnalyzer.findLocal(fieldName) == null |
|
|
|
&& codeAnalyzer.findLocal(fieldName) == null |
|
|
|
? fieldName |
|
|
|
? fieldName |
|
|
|
: classType.toString() + "." + fieldName) |
|
|
|
: classType.toString() + "." + fieldName) |
|
|
|