org.mozilla.javascript.optimizer
Class InvokerImpl

java.lang.Object
  |
  +--org.mozilla.javascript.Invoker
        |
        +--org.mozilla.javascript.optimizer.InvokerImpl

public class InvokerImpl
extends Invoker

Avoid cost of java.lang.reflect.Method.invoke() by compiling a class to perform the method call directly.


Constructor Summary
InvokerImpl()
           
 
Method Summary
 Invoker createInvoker(java.lang.reflect.Method method, java.lang.Class[] types)
          Factory method to get invoker for given method
 java.lang.Object invoke(java.lang.Object that, java.lang.Object[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvokerImpl

public InvokerImpl()
Method Detail

createInvoker

public Invoker createInvoker(java.lang.reflect.Method method,
                             java.lang.Class[] types)
Description copied from class: Invoker
Factory method to get invoker for given method
Overrides:
createInvoker in class Invoker

invoke

public java.lang.Object invoke(java.lang.Object that,
                               java.lang.Object[] args)
Overrides:
invoke in class Invoker