Examples of invoke()


Examples of java.lang.annotation.Annotation.invoke()

            if (this.annotationType().equals(that.annotationType()))
            {
                for (Method member : members)
                {
                    Object thisValue = this.invoke(member);
                    Object thatValue = that.invoke(member);
                    if (!thisValue.equals(thatValue))
                    {
                        return false;
                    }
                }
View Full Code Here

Examples of java.lang.invoke.MethodHandle.invoke()

  }

  public static Object perform(Object receiver, Symbol selector)
      throws Throwable {
    MethodHandle handle = getHandle(receiver, selector);
    return handle.invoke(receiver);
  }

  public static Object perform(Object receiver, Symbol selector, Object arg1)
      throws Throwable {
    MethodHandle handle = getHandle(receiver, selector);
View Full Code Here

Examples of java.lang.reflect.InvocationHandler.invoke()

            synchronized (this) {
                updateRequestContext(bp.getRequestContext());
               
                InvocationHandler proxyHandler = Proxy.getInvocationHandler(clientProxy);
                try {
                    ret = proxyHandler.invoke(clientProxy, method, args);
                } catch (UndeclaredThrowableException ute) {
                    LOG.log(Level.SEVERE, "PROXY_INVOKE_UNDECLEXCEPTION", method.toString());
                    ex = new ProtocolException(new Message("PROXY_INVOKE_UNDECLEXCEPTION",
                                                           LOG,
                                                           method.toString()).toString(),
View Full Code Here

Examples of java.lang.reflect.Method.invoke()

public class _ObjectStreamClass {
  public static ObjectStreamClass lookupAny(Class<?> cl) {
    try {
      Method m = ObjectStreamClass.class.getDeclaredMethod("lookup",new Class[] { Class.class, Boolean.TYPE }); //$NON-NLS-1$
      m.setAccessible(true);
      return (ObjectStreamClass) m.invoke(null, new Object[] { cl,Boolean.valueOf(true) });
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
  }
}
View Full Code Here

Examples of java.rmi.server.RemoteRef.invoke()

         * If the group's VM was killed(or something bad happened to it) we may have stale activatable reference to the object.
         * In this case rref.invoke() will throw 3 types of Exceptions: ConnectException, ConnectIOException and UnknownObjectException
         * which should be catched and activation group should be activated again.
         */
        try {
            return rref.invoke(obj, method, params, opnum);
        }
        catch(ConnectException ce) {
        }
        catch(ConnectIOException cioe) {
        }
View Full Code Here

Examples of java.util.HashMap.invoke()

      try
  {
    Method m = returnType.getMethod("from",
            new Class[]
      { CompositeData.class });
    return m.invoke(null, (CompositeData) otype);
  }
      catch (NoSuchMethodException e)
  {
    /* Ignored; we expect this if this
       isn't a from(CompositeData) class */
 
View Full Code Here

Examples of java.util.Map.invoke()

                      //log.error("paramType: "+paramType.getName());
                      if (paramType.isPrimitive() && t==null){
                        //cannot cast null to primitve
                      } else {
                        Object[] arguments = new Object[]{ t };
                        m.invoke(returnObject,arguments);
                      }
                   
                    } else {
                      log.error("could not find a setter-method from Structured table. Is there a setter-method for " + fieldName + " in Class " + targetClass.getName());
                    }
View Full Code Here

Examples of java.util.concurrent.ForkJoinPool.invoke()

   */
  public static void main(String[] args) throws InterruptedException, ExecutionException {
   
    ForkJoinPool pool = new ForkJoinPool();
    Task executionTask = new Task(1000000000.0);
    pool.invoke(executionTask);
    System.out.println(pool.toString());
    System.out.println(String.format("Full execution time is %d", executionTask.get()));
    pool.shutdown();
  }

View Full Code Here

Examples of javax.el.ELResolver.invoke()

                if (this.children[i] instanceof AstDotSuffix) {
                    params = ((AstDotSuffix) this.children[i]).getParameters(ctx);
                }
                if (params != null && params.length > 0) {
                    ctx.setPropertyResolved(false);
                    base = resolver.invoke(ctx, base, property, null, params);
                } else {
                    ctx.setPropertyResolved(false);
                    base = resolver.getValue(ctx, base, property);
                }
            }
View Full Code Here

Examples of javax.el.LambdaExpression.invoke()

            // Can only invoke the expression if none of the lambda expressions
            // in the nesting declare parameters
            if (state.getHasFormalParameters()) {
                return le;
            } else {
                return le.invoke(ctx, (Object[]) null);
            }
        }

        /*
         * This is a (possibly nested) lambda expression with one or more sets
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.