Tabnine Logo
AbstractMethodDeclaration.isStatic
Code IndexAdd Tabnine to your IDE (free)

How to use
isStatic
method
in
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration

Best Java code snippets using org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.isStatic (Showing top 20 results out of 315)

origin: org.eclipse.jdt.core.compiler/ecj

private int computePriority(CategorizedProblem problem){
  final int P_STATIC = 10000;
  final int P_OUTSIDE_METHOD = 40000;
  final int P_FIRST_ERROR = 20000;
  final int P_ERROR = 100000;

  int priority = 10000 - problem.getSourceLineNumber(); // early problems first
  if (priority < 0) priority = 0;
  if (problem.isError()){
    priority += P_ERROR;
  }
  ReferenceContext context = this.problemsMap == null ? null : this.problemsMap.get(problem);
  if (context != null){
    if (context instanceof AbstractMethodDeclaration){
      AbstractMethodDeclaration method = (AbstractMethodDeclaration) context;
      if (method.isStatic()) {
        priority += P_STATIC;
      }
    } else {
      priority += P_OUTSIDE_METHOD;
    }
    if (this.firstErrors.contains(problem)){ // if context is null, firstErrors is null too
     priority += P_FIRST_ERROR;
    }
  } else {
    priority += P_OUTSIDE_METHOD;
  }
  return priority;
}

origin: org.eclipse.jdt/org.eclipse.jdt.core

private int computePriority(CategorizedProblem problem){
  final int P_STATIC = 10000;
  final int P_OUTSIDE_METHOD = 40000;
  final int P_FIRST_ERROR = 20000;
  final int P_ERROR = 100000;

  int priority = 10000 - problem.getSourceLineNumber(); // early problems first
  if (priority < 0) priority = 0;
  if (problem.isError()){
    priority += P_ERROR;
  }
  ReferenceContext context = this.problemsMap == null ? null : this.problemsMap.get(problem);
  if (context != null){
    if (context instanceof AbstractMethodDeclaration){
      AbstractMethodDeclaration method = (AbstractMethodDeclaration) context;
      if (method.isStatic()) {
        priority += P_STATIC;
      }
    } else {
      priority += P_OUTSIDE_METHOD;
    }
    if (this.firstErrors.contains(problem)){ // if context is null, firstErrors is null too
     priority += P_FIRST_ERROR;
    }
  } else {
    priority += P_OUTSIDE_METHOD;
  }
  return priority;
}

origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

private int computePriority(CategorizedProblem problem){
  final int P_STATIC = 10000;
  final int P_OUTSIDE_METHOD = 40000;
  final int P_FIRST_ERROR = 20000;
  final int P_ERROR = 100000;

  int priority = 10000 - problem.getSourceLineNumber(); // early problems first
  if (priority < 0) priority = 0;
  if (problem.isError()){
    priority += P_ERROR;
  }
  ReferenceContext context = this.problemsMap == null ? null : (ReferenceContext) this.problemsMap.get(problem);
  if (context != null){
    if (context instanceof AbstractMethodDeclaration){
      AbstractMethodDeclaration method = (AbstractMethodDeclaration) context;
      if (method.isStatic()) {
        priority += P_STATIC;
      }
    } else {
      priority += P_OUTSIDE_METHOD;
    }
    if (this.firstErrors.contains(problem)){ // if context is null, firstErrors is null too
     priority += P_FIRST_ERROR;
    }
  } else {
    priority += P_OUTSIDE_METHOD;
  }
  return priority;
}
 
origin: org.eclipse.tycho/org.eclipse.jdt.core

private int computePriority(CategorizedProblem problem){
  final int P_STATIC = 10000;
  final int P_OUTSIDE_METHOD = 40000;
  final int P_FIRST_ERROR = 20000;
  final int P_ERROR = 100000;

  int priority = 10000 - problem.getSourceLineNumber(); // early problems first
  if (priority < 0) priority = 0;
  if (problem.isError()){
    priority += P_ERROR;
  }
  ReferenceContext context = this.problemsMap == null ? null : this.problemsMap.get(problem);
  if (context != null){
    if (context instanceof AbstractMethodDeclaration){
      AbstractMethodDeclaration method = (AbstractMethodDeclaration) context;
      if (method.isStatic()) {
        priority += P_STATIC;
      }
    } else {
      priority += P_OUTSIDE_METHOD;
    }
    if (this.firstErrors.contains(problem)){ // if context is null, firstErrors is null too
     priority += P_FIRST_ERROR;
    }
  } else {
    priority += P_OUTSIDE_METHOD;
  }
  return priority;
}

origin: org.eclipse.scout.sdk.deps/ecj

private int computePriority(CategorizedProblem problem){
  final int P_STATIC = 10000;
  final int P_OUTSIDE_METHOD = 40000;
  final int P_FIRST_ERROR = 20000;
  final int P_ERROR = 100000;

  int priority = 10000 - problem.getSourceLineNumber(); // early problems first
  if (priority < 0) priority = 0;
  if (problem.isError()){
    priority += P_ERROR;
  }
  ReferenceContext context = this.problemsMap == null ? null : this.problemsMap.get(problem);
  if (context != null){
    if (context instanceof AbstractMethodDeclaration){
      AbstractMethodDeclaration method = (AbstractMethodDeclaration) context;
      if (method.isStatic()) {
        priority += P_STATIC;
      }
    } else {
      priority += P_OUTSIDE_METHOD;
    }
    if (this.firstErrors.contains(problem)){ // if context is null, firstErrors is null too
     priority += P_FIRST_ERROR;
    }
  } else {
    priority += P_OUTSIDE_METHOD;
  }
  return priority;
}

origin: com.vaadin/vaadin-client-compiler-deps

private int computePriority(CategorizedProblem problem){
  final int P_STATIC = 10000;
  final int P_OUTSIDE_METHOD = 40000;
  final int P_FIRST_ERROR = 20000;
  final int P_ERROR = 100000;

  int priority = 10000 - problem.getSourceLineNumber(); // early problems first
  if (priority < 0) priority = 0;
  if (problem.isError()){
    priority += P_ERROR;
  }
  ReferenceContext context = this.problemsMap == null ? null : (ReferenceContext) this.problemsMap.get(problem);
  if (context != null){
    if (context instanceof AbstractMethodDeclaration){
      AbstractMethodDeclaration method = (AbstractMethodDeclaration) context;
      if (method.isStatic()) {
        priority += P_STATIC;
      }
    } else {
      priority += P_OUTSIDE_METHOD;
    }
    if (this.firstErrors.contains(problem)){ // if context is null, firstErrors is null too
     priority += P_FIRST_ERROR;
    }
  } else {
    priority += P_OUTSIDE_METHOD;
  }
  return priority;
}

origin: com.ovea.tajin.server/tajin-server-tomcat7

private int computePriority(CategorizedProblem problem){
  final int P_STATIC = 10000;
  final int P_OUTSIDE_METHOD = 40000;
  final int P_FIRST_ERROR = 20000;
  final int P_ERROR = 100000;

  int priority = 10000 - problem.getSourceLineNumber(); // early problems first
  if (priority < 0) priority = 0;
  if (problem.isError()){
    priority += P_ERROR;
  }
  ReferenceContext context = this.problemsMap == null ? null : (ReferenceContext) this.problemsMap.get(problem);
  if (context != null){
    if (context instanceof AbstractMethodDeclaration){
      AbstractMethodDeclaration method = (AbstractMethodDeclaration) context;
      if (method.isStatic()) {
        priority += P_STATIC;
      }
    } else {
      priority += P_OUTSIDE_METHOD;
    }
    if (this.firstErrors.contains(problem)){ // if context is null, firstErrors is null too
     priority += P_FIRST_ERROR;
    }
  } else {
    priority += P_OUTSIDE_METHOD;
  }
  return priority;
}

origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core

private int computePriority(CategorizedProblem problem){
  final int P_STATIC = 10000;
  final int P_OUTSIDE_METHOD = 40000;
  final int P_FIRST_ERROR = 20000;
  final int P_ERROR = 100000;

  int priority = 10000 - problem.getSourceLineNumber(); // early problems first
  if (priority < 0) priority = 0;
  if (problem.isError()){
    priority += P_ERROR;
  }
  ReferenceContext context = this.problemsMap == null ? null : (ReferenceContext) this.problemsMap.get(problem);
  if (context != null){
    if (context instanceof AbstractMethodDeclaration){
      AbstractMethodDeclaration method = (AbstractMethodDeclaration) context;
      if (method.isStatic()) {
        priority += P_STATIC;
      }
    } else {
      priority += P_OUTSIDE_METHOD;
    }
    if (this.firstErrors.contains(problem)){ // if context is null, firstErrors is null too
     priority += P_FIRST_ERROR;
    }
  } else {
    priority += P_OUTSIDE_METHOD;
  }
  return priority;
}

origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

private int computePriority(CategorizedProblem problem){
  final int P_STATIC = 10000;
  final int P_OUTSIDE_METHOD = 40000;
  final int P_FIRST_ERROR = 20000;
  final int P_ERROR = 100000;

  int priority = 10000 - problem.getSourceLineNumber(); // early problems first
  if (priority < 0) priority = 0;
  if (problem.isError()){
    priority += P_ERROR;
  }
  ReferenceContext context = this.problemsMap == null ? null : this.problemsMap.get(problem);
  if (context != null){
    if (context instanceof AbstractMethodDeclaration){
      AbstractMethodDeclaration method = (AbstractMethodDeclaration) context;
      if (method.isStatic()) {
        priority += P_STATIC;
      }
    } else {
      priority += P_OUTSIDE_METHOD;
    }
    if (this.firstErrors.contains(problem)){ // if context is null, firstErrors is null too
     priority += P_FIRST_ERROR;
    }
  } else {
    priority += P_OUTSIDE_METHOD;
  }
  return priority;
}

origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

private int computePriority(CategorizedProblem problem){
  final int P_STATIC = 10000;
  final int P_OUTSIDE_METHOD = 40000;
  final int P_FIRST_ERROR = 20000;
  final int P_ERROR = 100000;

  int priority = 10000 - problem.getSourceLineNumber(); // early problems first
  if (priority < 0) priority = 0;
  if (problem.isError()){
    priority += P_ERROR;
  }
  ReferenceContext context = this.problemsMap == null ? null : (ReferenceContext) this.problemsMap.get(problem);
  if (context != null){
    if (context instanceof AbstractMethodDeclaration){
      AbstractMethodDeclaration method = (AbstractMethodDeclaration) context;
      if (method.isStatic()) {
        priority += P_STATIC;
      }
    } else {
      priority += P_OUTSIDE_METHOD;
    }
    if (this.firstErrors.contains(problem)){ // if context is null, firstErrors is null too
     priority += P_FIRST_ERROR;
    }
  } else {
    priority += P_OUTSIDE_METHOD;
  }
  return priority;
}

origin: trylimits/Eclipse-Postfix-Code-Completion

private int computePriority(CategorizedProblem problem){
  final int P_STATIC = 10000;
  final int P_OUTSIDE_METHOD = 40000;
  final int P_FIRST_ERROR = 20000;
  final int P_ERROR = 100000;

  int priority = 10000 - problem.getSourceLineNumber(); // early problems first
  if (priority < 0) priority = 0;
  if (problem.isError()){
    priority += P_ERROR;
  }
  ReferenceContext context = this.problemsMap == null ? null : (ReferenceContext) this.problemsMap.get(problem);
  if (context != null){
    if (context instanceof AbstractMethodDeclaration){
      AbstractMethodDeclaration method = (AbstractMethodDeclaration) context;
      if (method.isStatic()) {
        priority += P_STATIC;
      }
    } else {
      priority += P_OUTSIDE_METHOD;
    }
    if (this.firstErrors.contains(problem)){ // if context is null, firstErrors is null too
     priority += P_FIRST_ERROR;
    }
  } else {
    priority += P_OUTSIDE_METHOD;
  }
  return priority;
}

origin: org.eclipse.jdt.core.compiler/ecj

if (this.isStatic() || declaringClass.isAnonymousType()) {
  this.scope.problemReporter().disallowedThisParameter(this.receiver);
  return; // No need to do further validation
origin: org.eclipse.tycho/org.eclipse.jdt.core

if (this.isStatic() || declaringClass.isAnonymousType()) {
  this.scope.problemReporter().disallowedThisParameter(this.receiver);
  return; // No need to do further validation
origin: trylimits/Eclipse-Postfix-Code-Completion

if (this.isStatic() || declaringClass.isAnonymousType()) {
  this.scope.problemReporter().disallowedThisParameter(this.receiver);
  return; // No need to do further validation
origin: com.vaadin/vaadin-client-compiler-deps

if (this.isStatic() || declaringClass.isAnonymousType()) {
  this.scope.problemReporter().disallowedThisParameter(this.receiver);
  return; // No need to do further validation
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

if (this.isStatic() || declaringClass.isAnonymousType()) {
  this.scope.problemReporter().disallowedThisParameter(this.receiver);
  return; // No need to do further validation
origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

if (this.isStatic() || declaringClass.isAnonymousType()) {
  this.scope.problemReporter().disallowedThisParameter(this.receiver);
  return; // No need to do further validation
origin: org.eclipse.jdt/org.eclipse.jdt.core

if (this.isStatic() || declaringClass.isAnonymousType()) {
  this.scope.problemReporter().disallowedThisParameter(this.receiver);
  return; // No need to do further validation
origin: org.eclipse.scout.sdk.deps/ecj

if (this.isStatic() || declaringClass.isAnonymousType()) {
  this.scope.problemReporter().disallowedThisParameter(this.receiver);
  return; // No need to do further validation
origin: org.eclipse.jdt.core.compiler/ecj

} else {
  if (declaringClass.isInterface()) {// interface or annotation type
    if (method.isDefaultMethod() || method.isStatic()) {
org.eclipse.jdt.internal.compiler.astAbstractMethodDeclarationisStatic

Popular methods of AbstractMethodDeclaration

  • isConstructor
  • typeParameters
  • traverse
  • isAbstract
  • isClinit
  • abort
  • bindArguments
    Bind and add argument's binding into the scope of the method
  • bindThrownExceptions
    Record the thrown exception type bindings in the corresponding type references.
  • checkArgumentsSize
  • compilationResult
  • generateCode
    Bytecode generation for a method
  • isAnnotationMethod
  • generateCode,
  • isAnnotationMethod,
  • isDefaultConstructor,
  • isInitializationMethod,
  • isMethod,
  • parseStatements,
  • print,
  • printAnnotations,
  • printBody

Popular in Java

  • Running tasks concurrently on multiple threads
  • getContentResolver (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now