protected CCCallFunc(Object t,String s,Class<?>[] p){
  targetCallback=t;
  selector=s;
  partypes=p;
  if (partypes == null) {
    try {
      Class<?> cls=targetCallback.getClass();
      invocation=cls.getMethod(selector);
    }
 catch (    NoSuchMethodException e) {
      e.printStackTrace();
    }
  }
 else {
    try {
      Class<?> cls=targetCallback.getClass();
      invocation=cls.getMethod(selector,partypes);
    }
 catch (    NoSuchMethodException e) {
      e.printStackTrace();
    }
  }
}

protected CCCallFunc ( Object t , String s , Class < ? > [ ] p ) { targetCallback = t ; selector = s ; partypes = p ; if ( partypes == null ) { try { Class < ? > cls = targetCallback . getClass ( ) ; invocation = cls . getMethod ( selector ) ; } catch ( NoSuchMethodException e ) { e . printStackTrace ( ) ; } } else { try { Class < ? > cls = targetCallback . getClass ( ) ; invocation = cls . getMethod ( selector , partypes ) ; } catch ( NoSuchMethodException e ) { e . printStackTrace ( ) ; } } }
creates an action with a callback
