diff options
Diffstat (limited to 'src/org/jetbrains/java/decompiler/modules/decompiler/exps/ConstExprent.java')
-rw-r--r-- | src/org/jetbrains/java/decompiler/modules/decompiler/exps/ConstExprent.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/exps/ConstExprent.java b/src/org/jetbrains/java/decompiler/modules/decompiler/exps/ConstExprent.java index a45429a..1ec0f33 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/exps/ConstExprent.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/exps/ConstExprent.java @@ -17,6 +17,7 @@ package org.jetbrains.java.decompiler.modules.decompiler.exps; import org.jetbrains.java.decompiler.code.CodeConstants; import org.jetbrains.java.decompiler.main.DecompilerContext; +import org.jetbrains.java.decompiler.main.collectors.BytecodeMappingTracer; import org.jetbrains.java.decompiler.main.extern.IFernflowerPreferences; import org.jetbrains.java.decompiler.modules.decompiler.ExprProcessor; import org.jetbrains.java.decompiler.struct.gen.FieldDescriptor; @@ -106,7 +107,8 @@ public class ConstExprent extends Exprent { return new ArrayList<Exprent>(); } - public String toJava(int indent) { + @Override + public String toJava(int indent, BytecodeMappingTracer tracer) { boolean literal = DecompilerContext.getOption(IFernflowerPreferences.LITERALS_AS_IS); boolean ascii = DecompilerContext.getOption(IFernflowerPreferences.ASCII_STRING_CHARACTERS); @@ -150,7 +152,7 @@ public class ConstExprent extends Exprent { else { return value.toString(); } - return new FieldExprent(intfield, "java/lang/Integer", true, null, FieldDescriptor.INTEGER_DESCRIPTOR).toJava(0); + return new FieldExprent(intfield, "java/lang/Integer", true, null, FieldDescriptor.INTEGER_DESCRIPTOR).toJava(0, tracer); case CodeConstants.TYPE_LONG: long lval = ((Long)value).longValue(); @@ -167,7 +169,7 @@ public class ConstExprent extends Exprent { else { return value.toString() + "L"; } - return new FieldExprent(longfield, "java/lang/Long", true, null, FieldDescriptor.LONG_DESCRIPTOR).toJava(0); + return new FieldExprent(longfield, "java/lang/Long", true, null, FieldDescriptor.LONG_DESCRIPTOR).toJava(0, tracer); case CodeConstants.TYPE_DOUBLE: double dval = ((Double)value).doubleValue(); @@ -204,7 +206,7 @@ public class ConstExprent extends Exprent { else { return value.toString() + "D"; } - return new FieldExprent(doublefield, "java/lang/Double", true, null, FieldDescriptor.DOUBLE_DESCRIPTOR).toJava(0); + return new FieldExprent(doublefield, "java/lang/Double", true, null, FieldDescriptor.DOUBLE_DESCRIPTOR).toJava(0, tracer); case CodeConstants.TYPE_FLOAT: float fval = ((Float)value).floatValue(); @@ -241,7 +243,7 @@ public class ConstExprent extends Exprent { else { return value.toString() + "F"; } - return new FieldExprent(floatfield, "java/lang/Float", true, null, FieldDescriptor.FLOAT_DESCRIPTOR).toJava(0); + return new FieldExprent(floatfield, "java/lang/Float", true, null, FieldDescriptor.FLOAT_DESCRIPTOR).toJava(0, tracer); case CodeConstants.TYPE_NULL: return "null"; case CodeConstants.TYPE_OBJECT: |