author | Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
Sun, 23 Dec 2012 17:02:34 +0100 | |
branch | launcher |
changeset 370 | ed48023d1d85 |
child 371 | bafc670aa10d |
permissions | -rw-r--r-- |
jaroslav@370 | 1 |
/** |
jaroslav@370 | 2 |
* Back 2 Browser Bytecode Translator |
jaroslav@370 | 3 |
* Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
jaroslav@370 | 4 |
* |
jaroslav@370 | 5 |
* This program is free software: you can redistribute it and/or modify |
jaroslav@370 | 6 |
* it under the terms of the GNU General Public License as published by |
jaroslav@370 | 7 |
* the Free Software Foundation, version 2 of the License. |
jaroslav@370 | 8 |
* |
jaroslav@370 | 9 |
* This program is distributed in the hope that it will be useful, |
jaroslav@370 | 10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
jaroslav@370 | 11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
jaroslav@370 | 12 |
* GNU General Public License for more details. |
jaroslav@370 | 13 |
* |
jaroslav@370 | 14 |
* You should have received a copy of the GNU General Public License |
jaroslav@370 | 15 |
* along with this program. Look for COPYING file in the top folder. |
jaroslav@370 | 16 |
* If not, see http://opensource.org/licenses/GPL-2.0. |
jaroslav@370 | 17 |
*/ |
jaroslav@370 | 18 |
package org.apidesign.bck2brwsr.launcher; |
jaroslav@370 | 19 |
|
jaroslav@370 | 20 |
/** |
jaroslav@370 | 21 |
* |
jaroslav@370 | 22 |
* @author Jaroslav Tulach <jtulach@netbeans.org> |
jaroslav@370 | 23 |
*/ |
jaroslav@370 | 24 |
public final class MethodInvocation { |
jaroslav@370 | 25 |
final String className; |
jaroslav@370 | 26 |
final String methodName; |
jaroslav@370 | 27 |
String result; |
jaroslav@370 | 28 |
Exception exception; |
jaroslav@370 | 29 |
|
jaroslav@370 | 30 |
MethodInvocation(String className, String methodName) { |
jaroslav@370 | 31 |
this.className = className; |
jaroslav@370 | 32 |
this.methodName = methodName; |
jaroslav@370 | 33 |
} |
jaroslav@370 | 34 |
|
jaroslav@370 | 35 |
@Override |
jaroslav@370 | 36 |
public String toString() { |
jaroslav@370 | 37 |
if (exception != null) { |
jaroslav@370 | 38 |
return exception.toString(); |
jaroslav@370 | 39 |
} |
jaroslav@370 | 40 |
return result; |
jaroslav@370 | 41 |
} |
jaroslav@370 | 42 |
|
jaroslav@370 | 43 |
} |