Package org.aspectj.org.eclipse.jdt.core

Examples of org.aspectj.org.eclipse.jdt.core.IMethod


      if (isInnerBinaryTypeConstructor)
        parameterSignatures[0] = new String(enclosingType.genericTypeSignature()).replace('/', '.');
      for (int i = 0;  i < length; i++) {
        parameterSignatures[declaringIndex + i] = new String(parameters[i].genericTypeSignature()).replace('/', '.');
      }
      IMethod result = declaringType.getMethod(selector, parameterSignatures);
      if (isBinary)
        return (JavaElement) result;
      IMethod[] methods = null;
      try {
        methods = declaringType.getMethods();
View Full Code Here


      } else {
        this.methodParameterTypes[typeDepth] = parameterTypes;
      }
      this.methodParameterNames[typeDepth] = methodInfo.parameterNames;
     
      IMethod method = currentType.getMethod(
          this.memberName[typeDepth],
          convertTypeNamesToSigs(this.methodParameterTypes[typeDepth]));
     
      // type parameters
      if (methodInfo.typeParameters != null) {
        for (int i = 0, length = methodInfo.typeParameters.length; i < length; i++) {
          TypeParameterInfo typeParameterInfo = methodInfo.typeParameters[i];
          ITypeParameter typeParameter = method.getTypeParameter(new String(typeParameterInfo.name));
          setSourceRange(
            typeParameter,
            new SourceRange(
              typeParameterInfo.declarationStart,
              typeParameterInfo.declarationEnd - typeParameterInfo.declarationStart + 1),
View Full Code Here

      IType currentType = this.types[typeDepth];
      SourceRange sourceRange =
        new SourceRange(
          this.memberDeclarationStart[typeDepth],
          declarationEnd - this.memberDeclarationStart[typeDepth] + 1);
      IMethod method = currentType.getMethod(
          this.memberName[typeDepth],
          convertTypeNamesToSigs(this.methodParameterTypes[typeDepth]));
      setSourceRange(
        method,
        sourceRange,
View Full Code Here

        }
        break;
      case IJavaElement.TYPE_PARAMETER :
        IJavaElement parent = element.getParent();
        if (parent.getElementType() == IJavaElement.METHOD) {
          IMethod method = (IMethod) parent;
          if (method.isBinary()) {
            IJavaElement[] el = getUnqualifiedMethodHandle(method, false);
            if(el[1] != null && this.sourceRanges.get(el[0]) == null) {
              method = (IMethod) getUnqualifiedMethodHandle(method, true)[0];
            } else {
              method = (IMethod) el[0];
            }
            element = method.getTypeParameter(element.getElementName());
          }
        }
    }
    SourceRange[] ranges = (SourceRange[]) this.sourceRanges.get(element);
    if (ranges == null) {
View Full Code Here

        }
        break;
      case IJavaElement.TYPE_PARAMETER :
        IJavaElement parent = element.getParent();
        if (parent.getElementType() == IJavaElement.METHOD) {
          IMethod method = (IMethod) parent;
          if (method.isBinary()) {
            IJavaElement[] el = getUnqualifiedMethodHandle(method, false);
            if(el[1] != null && this.sourceRanges.get(el[0]) == null) {
              method = (IMethod) getUnqualifiedMethodHandle(method, true)[0];
            } else {
              method = (IMethod) el[0];
            }
            element = method.getTypeParameter(element.getElementName());
          }
        }
    }
    SourceRange[] ranges = (SourceRange[]) this.sourceRanges.get(element);
    if (ranges == null) {
View Full Code Here

TOP

Related Classes of org.aspectj.org.eclipse.jdt.core.IMethod

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.