Package org.springframework.expression.spel.support

Examples of org.springframework.expression.spel.support.ReflectiveMethodExecutor


      if (!child.isCompilable()) {
        return false;
      }
    }

    ReflectiveMethodExecutor executor = (ReflectiveMethodExecutor) executorToCheck.get();
    if (executor.didArgumentConversionOccur()) {
      return false;
    }
    Method method = executor.getMethod();
    Class<?> clazz = method.getDeclaringClass();
    if (!Modifier.isPublic(clazz.getModifiers()) && executor.getPublicDeclaringClass() == null) {
      return false;
    }

    return true;
  }
View Full Code Here


    CachedMethodExecutor executorToCheck = this.cachedExecutor;
    if (executorToCheck == null || !(executorToCheck.get() instanceof ReflectiveMethodExecutor)) {
      throw new IllegalStateException("No applicable cached executor found: " + executorToCheck);
    }

    ReflectiveMethodExecutor methodExecutor = (ReflectiveMethodExecutor)executorToCheck.get();
    Method method = methodExecutor.getMethod();
    boolean isStaticMethod = Modifier.isStatic(method.getModifiers());
    String descriptor = cf.lastDescriptor();

    if (descriptor == null && !isStaticMethod) {
      cf.loadTarget(mv);
    }
   
    if (CodeFlow.isPrimitive(descriptor)) {
      CodeFlow.insertBoxIfNecessary(mv, descriptor.charAt(0));
    }

    boolean itf = method.getDeclaringClass().isInterface();
    String methodDeclaringClassSlashedDescriptor = null;
    if (Modifier.isPublic(method.getDeclaringClass().getModifiers())) {
      methodDeclaringClassSlashedDescriptor = method.getDeclaringClass().getName().replace('.', '/');
    }
    else {
      methodDeclaringClassSlashedDescriptor = methodExecutor.getPublicDeclaringClass().getName().replace('.', '/');     
    }
    if (!isStaticMethod) {
      if (descriptor == null || !descriptor.substring(1).equals(methodDeclaringClassSlashedDescriptor)) {
        CodeFlow.insertCheckCast(mv, "L"+ methodDeclaringClassSlashedDescriptor);
      }
View Full Code Here

TOP

Related Classes of org.springframework.expression.spel.support.ReflectiveMethodExecutor

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.