Examples of MethodScope


Examples of org.apache.isis.core.metamodel.methodutils.MethodScope

        final Class<?> cls = processMethodContext.getCls();
        final Method actionMethod = processMethodContext.getMethod();

        final String capitalizedName = StringExtensions.asCapitalizedName(actionMethod.getName());
        final Class<?>[] paramTypes = actionMethod.getParameterTypes();
        final MethodScope onClass = MethodScope.scopeFor(actionMethod);

        final Method validateMethod = MethodFinderUtils.findMethod(cls, onClass, MethodPrefixConstants.VALIDATE_PREFIX + capitalizedName, String.class, paramTypes);
        if (validateMethod == null) {
            return;
        }
View Full Code Here

Examples of org.apache.isis.core.metamodel.methodutils.MethodScope

    protected Method findChoicesMethodReturning(final ProcessMethodContext processMethodContext, final Class<?> returnType2) {
        Method choicesMethod;
        final Class<?> cls = processMethodContext.getCls();

        final Method actionMethod = processMethodContext.getMethod();
        final MethodScope methodScope = MethodScope.scopeFor(actionMethod);
        final String capitalizedName = StringExtensions.asCapitalizedName(actionMethod.getName());

        final String name = MethodPrefixConstants.CHOICES_PREFIX + capitalizedName;
        choicesMethod = MethodFinderUtils.findMethod(cls, methodScope, name, returnType2, new Class[0]);
        return choicesMethod;
View Full Code Here

Examples of org.apache.isis.core.metamodel.methodutils.MethodScope

        final Class<?> cls = processMethodContext.getCls();
        final Method actionMethod = processMethodContext.getMethod();

        final String capitalizedName = StringExtensions.asCapitalizedName(actionMethod.getName());
        final Class<?>[] paramTypes = actionMethod.getParameterTypes();
        final MethodScope onClass = MethodScope.scopeFor(actionMethod);

        final Method validateMethod = MethodFinderUtils.findMethod(cls, onClass, MethodPrefixConstants.VALIDATE_PREFIX + capitalizedName, String.class, paramTypes);
        if (validateMethod == null) {
            return;
        }
View Full Code Here

Examples of org.apache.isis.core.metamodel.methodutils.MethodScope

    protected Method findChoicesMethodReturning(final ProcessMethodContext processMethodContext, final Class<?> returnType2) {
        Method choicesMethod;
        final Class<?> cls = processMethodContext.getCls();

        final Method actionMethod = processMethodContext.getMethod();
        final MethodScope methodScope = MethodScope.scopeFor(actionMethod);
        final String capitalizedName = StringExtensions.asCapitalizedName(actionMethod.getName());

        final String name = MethodPrefixConstants.CHOICES_PREFIX + capitalizedName;
        choicesMethod = MethodFinderUtils.findMethod(cls, methodScope, name, returnType2, new Class[0]);
        return choicesMethod;
View Full Code Here

Examples of org.apache.isis.core.metamodel.methodutils.MethodScope

    protected Method findChoicesMethodReturning(final ProcessMethodContext processMethodContext, final Class<?> returnType2) {
        Method choicesMethod;
        final Class<?> cls = processMethodContext.getCls();

        final Method actionMethod = processMethodContext.getMethod();
        final MethodScope methodScope = MethodScope.scopeFor(actionMethod);
        final String capitalizedName = NameUtils.capitalizeName(actionMethod.getName());

        final String name = MethodPrefixConstants.CHOICES_PREFIX + capitalizedName;
        choicesMethod = MethodFinderUtils.findMethod(cls, methodScope, name, returnType2, new Class[0]);
        return choicesMethod;
View Full Code Here

Examples of org.apache.isis.core.metamodel.methodutils.MethodScope

        final Class<?> cls = processMethodContext.getCls();
        final Method actionMethod = processMethodContext.getMethod();

        final String capitalizedName = NameUtils.capitalizeName(actionMethod.getName());
        final Class<?>[] paramTypes = actionMethod.getParameterTypes();
        final MethodScope onClass = MethodScope.scopeFor(actionMethod);

        final Method validateMethod = MethodFinderUtils.findMethod(cls, onClass, MethodPrefixConstants.VALIDATE_PREFIX + capitalizedName, String.class, paramTypes);
        if (validateMethod == null) {
            return;
        }
View Full Code Here

Examples of org.apache.isis.core.metamodel.methodutils.MethodScope

        final Class<?> cls = processMethodContext.getCls();
        final Method actionMethod = processMethodContext.getMethod();

        final String capitalizedName = NameUtils.capitalizeName(actionMethod.getName());
        final Class<?>[] paramTypes = actionMethod.getParameterTypes();
        final MethodScope onClass = MethodScope.scopeFor(actionMethod);

        final Method validateMethod =
            MethodFinderUtils.findMethod(cls, onClass, MethodPrefixConstants.VALIDATE_PREFIX + capitalizedName,
                String.class, paramTypes);
        if (validateMethod == null) {
View Full Code Here

Examples of org.apache.isis.core.metamodel.methodutils.MethodScope

        final Class<?> returnType2) {
        Method choicesMethod;
        final Class<?> cls = processMethodContext.getCls();

        final Method actionMethod = processMethodContext.getMethod();
        final MethodScope methodScope = MethodScope.scopeFor(actionMethod);
        final String capitalizedName = NameUtils.capitalizeName(actionMethod.getName());

        final String name = MethodPrefixConstants.CHOICES_PREFIX + capitalizedName;
        choicesMethod = MethodFinderUtils.findMethod(cls, methodScope, name, returnType2, new Class[0]);
        return choicesMethod;
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodScope

  System.arraycopy(this.isReached, 0, this.isNeeded, 0, cacheSize);
  this.initsOnReturn = FlowInfo.DEAD_END; 
}

public void complainIfUnusedExceptionHandlers(AbstractMethodDeclaration method) {
  MethodScope scope = method.scope;
  // can optionally skip overriding methods
  if ((method.binding.modifiers & (ExtraCompilerModifiers.AccOverriding | ExtraCompilerModifiers.AccImplementing)) != 0
          && !scope.compilerOptions().reportUnusedDeclaredThrownExceptionWhenOverriding) {
      return;
  }
     
  // report errors for unreachable exception handlers
  for (int i = 0, count = this.handledExceptions.length; i < count; i++) {
    int index = this.indexes.get(this.handledExceptions[i]);
    int cacheIndex = index / ExceptionHandlingFlowContext.BitCacheSize;
    int bitMask = 1 << (index % ExceptionHandlingFlowContext.BitCacheSize);
    if ((this.isReached[cacheIndex] & bitMask) == 0) {
      scope.problemReporter().unusedDeclaredThrownException(
        this.handledExceptions[index],
        method,
        method.thrownExceptions[index]);
    }
  }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodScope

      case Scope.COMPILATION_UNIT_SCOPE:
      case Scope.CLASS_SCOPE:
        specifiedTags = CLASS_TAGS;
        break;
      case Scope.METHOD_SCOPE:
        MethodScope methodScope = (MethodScope) scope;
        if (methodScope.referenceMethod() == null) {
          if (methodScope.initializedField == null) {
            specifiedTags = PACKAGE_TAGS;
          } else {
            specifiedTags = FIELD_TAGS;
          }
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.