toString implementations for easier debug

This commit is contained in:
Egor.Ushakov
2015-02-20 16:12:47 +03:00
parent 30c92a6fd2
commit a2f1d6951c
4 changed files with 22 additions and 2 deletions
@@ -46,4 +46,9 @@ public class DisableGC implements Evaluator{
public Modifier getModifier() {
return myDelegate.getModifier();
}
@Override
public String toString() {
return "NoGC -> " + myDelegate;
}
}
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
* Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -66,4 +66,9 @@ class LiteralEvaluator implements Evaluator {
throw EvaluateExceptionUtil
.createEvaluateException(DebuggerBundle.message("evaluation.error.unknown.expression.type", myExpectedType));
}
@Override
public String toString() {
return myValue.toString();
}
}
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
* Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -156,4 +156,9 @@ class LocalVariableEvaluator implements Evaluator {
}
return modifier;
}
@Override
public String toString() {
return myLocalVariableName;
}
}
@@ -211,4 +211,9 @@ public class MethodEvaluator implements Evaluator {
}
return null;
}
@Override
public String toString() {
return "call " + myMethodName;
}
}