Package org.eclipse.jdt.internal.compiler.lookup

Examples of org.eclipse.jdt.internal.compiler.lookup.MethodBinding


    },
    method.sourceStart(),
    method.sourceEnd());
}
public void enumConstantMustImplementAbstractMethod(AbstractMethodDeclaration method, FieldDeclaration field) {
  MethodBinding abstractMethod = method.binding;
  this.handle(
    IProblem.EnumConstantMustImplementAbstractMethod,
    new String[] {
            new String(abstractMethod.selector),
            typesAsString(abstractMethod, false),
View Full Code Here


      sourceEnd = allocation.enumConstant.sourceEnd;
    }
  }

  int id = IProblem.UndefinedConstructor; //default...
    MethodBinding shownConstructor = targetConstructor;
  switch (targetConstructor.problemId()) {
    case ProblemReasons.NotFound :
      ProblemMethodBinding problemConstructor = (ProblemMethodBinding) targetConstructor;
      if (problemConstructor.closestMatch != null) {
          if ((problemConstructor.closestMatch.tagBits & TagBits.HasMissingType) != 0) {
View Full Code Here

public void invalidMethod(MessageSend messageSend, MethodBinding method) {
  if (isRecoveredName(messageSend.selector)) return;

  int id = IProblem.UndefinedMethod; //default...
    MethodBinding shownMethod = method;
  switch (method.problemId()) {
    case ProblemReasons.NotFound :
      if ((method.declaringClass.tagBits & TagBits.HasMissingType) != 0) {
        this.handle(
            IProblem.UndefinedType,
View Full Code Here

      // we cannot create problem methods for an interface. So we have to generate a clinit
      // which should contain all the problem
      classFile.addProblemClinit(problemsCopy);
      for (int i = 0, length = methodDecls.length; i < length; i++) {
        AbstractMethodDeclaration methodDecl = methodDecls[i];
        MethodBinding method = methodDecl.binding;
        if (method == null || method.isConstructor()) continue;
        method.modifiers = ClassFileConstants.AccPublic | ClassFileConstants.AccAbstract;
        classFile.addAbstractMethod(methodDecl, method);
      }
    } else {
      for (int i = 0, length = methodDecls.length; i < length; i++) {
        AbstractMethodDeclaration methodDecl = methodDecls[i];
        MethodBinding method = methodDecl.binding;
        if (method == null) continue;
        if (method.isConstructor()) {
          classFile.addProblemConstructor(methodDecl, method, problemsCopy);
        } else if (method.isAbstract()) {
          classFile.addAbstractMethod(methodDecl, method);
        } else {
          classFile.addProblemMethod(methodDecl, method, problemsCopy);
        }
      }
View Full Code Here

      sourceEnd = allocation.enumConstant.sourceEnd;
    }
  }
  int id = IProblem.JavadocUndefinedConstructor; //default...
  ProblemMethodBinding problemConstructor = null;
  MethodBinding shownConstructor = null;
  switch (targetConstructor.problemId()) {
    case ProblemReasons.NotFound :
      id = IProblem.JavadocUndefinedConstructor;
      break;
    case ProblemReasons.NotVisible :
View Full Code Here

*/
public void javadocInvalidMethod(MessageSend messageSend, MethodBinding method, int modifiers) {
  if (!javadocVisibility(this.options.reportInvalidJavadocTagsVisibility, modifiers)) return;
  // set problem id
  ProblemMethodBinding problemMethod = null;
  MethodBinding shownMethod = null;
  int id = IProblem.JavadocUndefinedMethod; //default...
  switch (method.problemId()) {
    case ProblemReasons.NotFound :
      id = IProblem.JavadocUndefinedMethod;
      problemMethod = (ProblemMethodBinding) method;
View Full Code Here

    nodeSourceStart(local, location),
    nodeSourceEnd(local, location));
}

public void methodMustOverride(AbstractMethodDeclaration method, long complianceLevel) {
  MethodBinding binding = method.binding;
  this.handle(
    complianceLevel == ClassFileConstants.JDK1_5 ? IProblem.MethodMustOverride : IProblem.MethodMustOverrideOrImplement,
    new String[] {new String(binding.selector), typesAsString(binding, false), new String(binding.declaringClass.readableName()), },
    new String[] {new String(binding.selector), typesAsString(binding, true), new String(binding.declaringClass.shortReadableName()),},
    method.sourceStart,
View Full Code Here

}

public void methodCanBeDeclaredStatic(MethodDeclaration methodDecl) {
  int severity = computeSeverity(IProblem.MethodCanBeStatic);
  if (severity == ProblemSeverities.Ignore) return;
  MethodBinding method = methodDecl.binding;
  this.handle(
      IProblem.MethodCanBeStatic,
    new String[] {
      new String(method.declaringClass.readableName()),
      new String(method.selector),
View Full Code Here

}

public void methodCanBePotentiallyDeclaredStatic(MethodDeclaration methodDecl) {
  int severity = computeSeverity(IProblem.MethodCanBePotentiallyStatic);
  if (severity == ProblemSeverities.Ignore) return;
  MethodBinding method = methodDecl.binding;
  this.handle(
      IProblem.MethodCanBePotentiallyStatic,
    new String[] {
      new String(method.declaringClass.readableName()),
      new String(method.selector),
View Full Code Here

}

public void missingDeprecatedAnnotationForMethod(AbstractMethodDeclaration method) {
  int severity = computeSeverity(IProblem.MethodMissingDeprecatedAnnotation);
  if (severity == ProblemSeverities.Ignore) return;
  MethodBinding binding = method.binding;
  this.handle(
    IProblem.MethodMissingDeprecatedAnnotation,
    new String[] {new String(binding.selector), typesAsString(binding, false), new String(binding.declaringClass.readableName()), },
    new String[] {new String(binding.selector), typesAsString(binding, true), new String(binding.declaringClass.shortReadableName()),},
    severity,
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.compiler.lookup.MethodBinding

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.