MCPcopy Index your code
hub / github.com/beanshell/beanshell / invoke

Method invoke

src/bsh/XThis.java:125–143  ·  view source on GitHub ↗
( Object proxy, Method method, Object[] args )

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

invokeImplMethod · 0.95
debugMethod · 0.95
getTargetMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected