( Object proxy, Method method, Object[] args )
| 123 | } |
| 124 | |
| 125 | public Object invoke( Object proxy, Method method, Object[] args ) |
| 126 | throws Throwable |
| 127 | { |
| 128 | try { |
| 129 | return invokeImpl( proxy, method, args ); |
| 130 | } catch ( TargetError te ) { |
| 131 | // Unwrap target exception. If the interface declares that |
| 132 | // it throws the ex it will be delivered. If not it will be |
| 133 | // wrapped in an UndeclaredThrowable |
| 134 | throw te.getTarget(); |
| 135 | } catch ( EvalError ee ) { |
| 136 | // Ease debugging... |
| 137 | // XThis.this refers to the enclosing class instance |
| 138 | if ( Interpreter.DEBUG ) |
| 139 | Interpreter.debug( "EvalError in scripted interface: " |
| 140 | + XThis.this.toString() + ": "+ ee ); |
| 141 | throw ee; |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | public Object invokeImpl( Object proxy, Method method, Object[] args ) |
| 146 | throws EvalError |
nothing calls this directly
no test coverage detected