Package com.caucho.config.types

Examples of com.caucho.config.types.Signature


  }
 
  public String getDeferredMethodSignature()
  {
    if (_deferredMethod != null) {
      Signature sig = _deferredMethod.getMethodSignature();

      if (sig != null)
  return sig.getSignature();
    }
   
    return null;
  }
View Full Code Here


    Class retType = void.class;
    Class []args = new Class[0];

    try {
      if (sigString != null && ! sigString.equals("")) {
        Signature sig = new Signature(sigString);

        String []types = sig.getParameterTypes();

        args = new Class[types.length];

        for (int i = 0; i < types.length; i++) {
          args[i] = getBeanClass(types[i]);
        }

        if (sig.getReturnType() == null)
          throw error(L.l("deferredMethod signature '{0}' needs a return type.",
                          sigString));

        retType = getBeanClass(sig.getReturnType());
      }
    } catch (ClassNotFoundException e) {
      throw new ELException(e);
    }
View Full Code Here

   * @param signature signature
   */
  public StaticMethodExpr(String signature)
  {
    try {
      Signature sig = new Signature();
      sig.addText(signature);
      sig.init();

      _method = sig.getMethod();

      if (_method == null)
        throw new RuntimeException(L.l("'{0}' is an unknown method",
                                       sig));
    } catch (RuntimeException e) {
View Full Code Here

   * @param signature signature
   */
  public StaticMethodExpr(String signature)
  {
    try {
      Signature sig = new Signature();
      sig.addText(signature);
      sig.init();

      _method = sig.getMethod();

      if (_method == null)
        throw new RuntimeException(L.l("'{0}' is an unknown method",
                                       sig));
    } catch (RuntimeException e) {
View Full Code Here

TOP

Related Classes of com.caucho.config.types.Signature

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.