Examples of referenceMethod()


Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodScope.referenceMethod()

      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

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodScope.referenceMethod()

              occurenceCount++;
            }
          }
        } else {
          // method element
          AbstractMethodDeclaration method = methodScope.referenceMethod();
          newElement = parentType.getMethod(new String(method.selector), Util.typeParameterSignatures(method));
          if (newElement != null) {
            knownScopes.put(scope, newElement);
          }
        }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.MethodScope.referenceMethod()

          // init
          assert (enclosingType instanceof JClassType);
          method = enclosingType.getMethods().get(1);
        }
      } else {
        AbstractMethodDeclaration referenceMethod = methodScope.referenceMethod();
        method = (JMethod) typeMap.get(referenceMethod.binding);
      }
      assert !method.isNative() && !method.isAbstract();
      return (JMethodBody) method.getBody();
    }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.MethodScope.referenceMethod()

          // init
          assert (enclosingType instanceof JClassType);
          method = enclosingType.getMethods().get(1);
        }
      } else {
        AbstractMethodDeclaration referenceMethod = methodScope.referenceMethod();
        method = (JMethod) typeMap.get(referenceMethod.binding);
      }
      assert !method.isNative() && !method.isAbstract();
      return (JMethodBody) method.getBody();
    }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.MethodScope.referenceMethod()

    // mark the fact that we are in a constructor call.....
    // unmark at all returns
    MethodScope methodScope = scope.methodScope();
    try {
      AbstractMethodDeclaration methodDeclaration = methodScope.referenceMethod();
      if (methodDeclaration == null
          || !methodDeclaration.isConstructor()
          || ((ConstructorDeclaration) methodDeclaration).constructorCall != this) {
        scope.problemReporter().invalidExplicitConstructorCall(this);
        // fault-tolerance
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.MethodScope.referenceMethod()

        }
      }
      if (receiverType != null) {
        // prevent (explicit) super constructor invocation from within enum
        if (this.accessMode == ExplicitConstructorCall.Super && receiverType.erasure().id == TypeIds.T_JavaLangEnum) {
          scope.problemReporter().cannotInvokeSuperConstructorInEnum(this, methodScope.referenceMethod().binding);
        }
        // qualification should be from the type of the enclosingType
        if (this.qualification != null) {
          if (this.accessMode != ExplicitConstructorCall.Super) {
            scope.problemReporter().unnecessaryEnclosingInstanceSpecification(
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.MethodScope.referenceMethod()

          assert (enclosingType instanceof JClassType);
          return (JMethod) enclosingType.methods.get(1);
        }
      }

      AbstractMethodDeclaration referenceMethod = methodScope.referenceMethod();
      return (JMethod) typeMap.get(referenceMethod.binding);
    }

    private SourceInfo makeSourceInfo(Statement stmt) {
      int startLine = ProblemHandler.searchLineNumber(
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.MethodScope.referenceMethod()

          // init
          assert (enclosingType instanceof JClassType);
          method = enclosingType.methods.get(1);
        }
      } else {
        AbstractMethodDeclaration referenceMethod = methodScope.referenceMethod();
        method = (JMethod) typeMap.get(referenceMethod.binding);
      }
      assert !method.isNative() && !method.isAbstract();
      return (JMethodBody) method.getBody();
    }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.MethodScope.referenceMethod()

          // init
          assert (enclosingType instanceof JClassType);
          method = enclosingType.getMethods().get(1);
        }
      } else {
        AbstractMethodDeclaration referenceMethod = methodScope.referenceMethod();
        method = (JMethod) typeMap.get(referenceMethod.binding);
      }
      assert !method.isNative() && !method.isAbstract();
      return (JMethodBody) (method.getEnclosingType().isExternal() ? null :
          method.getBody());
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.MethodScope.referenceMethod()

      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.