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

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

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

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

public void resolve(ClassScope upperScope) {
  if (this.binding == null) {
    this.ignoreFurtherInvestigation = true;
  }
  try {
    bindArguments();
    resolveReceiver();
    bindThrownExceptions();
    resolveJavadoc();
    resolveAnnotations(this.scope, this.annotations, this.binding, this.isConstructor());
    
    long sourceLevel = this.scope.compilerOptions().sourceLevel;
    if (sourceLevel < ClassFileConstants.JDK1_8) // otherwise already checked via Argument.createBinding
      validateNullAnnotations(this.scope.environment().usesNullTypeAnnotations());
    resolveStatements();
    // check @Deprecated annotation presence
    if (this.binding != null
        && (this.binding.getAnnotationTagBits() & TagBits.AnnotationDeprecated) == 0
        && (this.binding.modifiers & ClassFileConstants.AccDeprecated) != 0
        && sourceLevel >= ClassFileConstants.JDK1_5) {
      this.scope.problemReporter().missingDeprecatedAnnotationForMethod(this);
    }
  } catch (AbortMethod e) {
    // ========= abort on fatal error =============
    this.ignoreFurtherInvestigation = true;
  }
}
origin: org.eclipse.scout.sdk/org.eclipse.scout.sdk.core

@Override
public boolean hasTypeParameters() {
 TypeParameter[] typeParams = m_astNode.typeParameters();
 return typeParams != null && typeParams.length > 0;
}
origin: org.eclipse.jdt.core.compiler/ecj

public StringBuffer printBody(int indent, StringBuffer output) {
  if (isAbstract() || (this.modifiers & ExtraCompilerModifiers.AccSemicolonBody) != 0)
    return output.append(';');
  output.append(" {"); //$NON-NLS-1$
  if (this.statements != null) {
    for (int i = 0; i < this.statements.length; i++) {
      output.append('\n');
      this.statements[i].printStatement(indent, output);
    }
  }
  output.append('\n');
  printIndent(indent == 0 ? 0 : indent - 1, output).append('}');
  return output;
}
origin: org.eclipse.jdt/org.eclipse.jdt.core

  public static boolean containsIgnoredBody(AbstractMethodDeclaration method){
    return !method.isDefaultConstructor()
      && !method.isClinit()
      && (method.modifiers & ExtraCompilerModifiers.AccSemicolonBody) == 0;
  }
}
origin: com.vaadin/vaadin-client-compiler-deps

public void resolve(ClassScope upperScope) {
  if (this.binding == null) {
    this.ignoreFurtherInvestigation = true;
  }
  try {
    bindArguments();
    resolveReceiver();
    bindThrownExceptions();
    resolveJavadoc();
    resolveAnnotations(this.scope, this.annotations, this.binding);
    
    long sourceLevel = this.scope.compilerOptions().sourceLevel;
    validateNullAnnotations(sourceLevel);
    resolveStatements();
    // check @Deprecated annotation presence
    if (this.binding != null
        && (this.binding.getAnnotationTagBits() & TagBits.AnnotationDeprecated) == 0
        && (this.binding.modifiers & ClassFileConstants.AccDeprecated) != 0
        && sourceLevel >= ClassFileConstants.JDK1_5) {
      this.scope.problemReporter().missingDeprecatedAnnotationForMethod(this);
    }
  } catch (AbortMethod e) {
    // ========= abort on fatal error =============
    this.ignoreFurtherInvestigation = true;
  }
}
origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core

  this.javadoc.print(tab, output);
printIndent(tab, output);
printModifiers(this.modifiers, output);
if (this.annotations != null) printAnnotations(this.annotations, output);
TypeParameter[] typeParams = typeParameters();
if (typeParams != null) {
  output.append('<');
printReturnType(0, output).append(this.selector).append('(');
if (this.arguments != null) {
  for (int i = 0; i < this.arguments.length; i++) {
printBody(tab + 1, output);
return output;
origin: org.eclipse.scout.sdk/org.eclipse.scout.sdk.core

@Override
public boolean isConstructor() {
 return m_astNode.isConstructor();
}
origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

private void format(
  AbstractMethodDeclaration methodDeclaration,
  ClassScope scope,
  boolean isChunkStart,
  boolean isFirstClassBodyDeclaration) {
  if (isFirstClassBodyDeclaration) {
    int newLinesBeforeFirstClassBodyDeclaration = this.preferences.blank_lines_before_first_class_body_declaration;
    if (newLinesBeforeFirstClassBodyDeclaration > 0) {
      this.scribe.printEmptyLines(newLinesBeforeFirstClassBodyDeclaration);
    }
  } else {
    final int newLineBeforeChunk = isChunkStart ? this.preferences.blank_lines_before_new_chunk : 0;
    if (newLineBeforeChunk > 0) {
      this.scribe.printEmptyLines(newLineBeforeChunk);
    }
  }
  final int newLinesBeforeMethod = this.preferences.blank_lines_before_method;
  if (newLinesBeforeMethod > 0 && !isFirstClassBodyDeclaration) {
    this.scribe.printEmptyLines(newLinesBeforeMethod);
  } else if (this.scribe.line != 0 || this.scribe.column != 1) {
    this.scribe.printNewLine();
  }
  methodDeclaration.traverse(this, scope);
}
origin: org.eclipse.tycho/org.eclipse.jdt.core

public void abstractMethodNeedingNoBody(AbstractMethodDeclaration method) {
  this.handle(
    IProblem.BodyForAbstractMethod,
    NoArgument,
    NoArgument,
    method.sourceStart,
    method.sourceEnd,
    method,
    method.compilationResult());
}
public void alreadyDefinedLabel(char[] labelName, ASTNode location) {
origin: com.ovea.tajin.server/tajin-server-tomcat7

  attributeNumber++;
} else {
  checkArgumentsSize();
origin: org.eclipse.jdt/org.eclipse.jdt.core

method.abort(ProblemSeverities.AbortType, null);
origin: com.ovea.tajin.server/tajin-server-tomcat7

  this.javadoc.print(tab, output);
printIndent(tab, output);
printModifiers(this.modifiers, output);
if (this.annotations != null) printAnnotations(this.annotations, output);
TypeParameter[] typeParams = typeParameters();
if (typeParams != null) {
  output.append('<');
printReturnType(0, output).append(this.selector).append('(');
if (this.arguments != null) {
  for (int i = 0; i < this.arguments.length; i++) {
printBody(tab + 1, output);
return output;
origin: org.eclipse.jdt.core.compiler/ecj

  public static boolean containsIgnoredBody(AbstractMethodDeclaration method){
    return !method.isDefaultConstructor()
      && !method.isClinit()
      && (method.modifiers & ExtraCompilerModifiers.AccSemicolonBody) == 0;
  }
}
origin: com.android.tools.lint/lint

@Override
public boolean isConstructor() {
  return mDeclaration.isConstructor();
}
origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

private void format(
  AbstractMethodDeclaration methodDeclaration,
  ClassScope scope,
  boolean isChunkStart,
  boolean isFirstClassBodyDeclaration) {
  if (isFirstClassBodyDeclaration) {
    int newLinesBeforeFirstClassBodyDeclaration = this.preferences.blank_lines_before_first_class_body_declaration;
    if (newLinesBeforeFirstClassBodyDeclaration > 0) {
      this.scribe.printEmptyLines(newLinesBeforeFirstClassBodyDeclaration);
    }
  } else {
    final int newLineBeforeChunk = isChunkStart ? this.preferences.blank_lines_before_new_chunk : 0;
    if (newLineBeforeChunk > 0) {
      this.scribe.printEmptyLines(newLineBeforeChunk);
    }
  }
  final int newLinesBeforeMethod = this.preferences.blank_lines_before_method;
  if (newLinesBeforeMethod > 0 && !isFirstClassBodyDeclaration) {
    this.scribe.printEmptyLines(newLinesBeforeMethod);
  } else if (this.scribe.line != 0 || this.scribe.column != 1) {
    this.scribe.printNewLine();
  }
  methodDeclaration.traverse(this, scope);
}
origin: com.ovea.tajin.server/tajin-server-tomcat7

public void abstractMethodNeedingNoBody(AbstractMethodDeclaration method) {
  this.handle(
    IProblem.BodyForAbstractMethod,
    NoArgument,
    NoArgument,
    method.sourceStart,
    method.sourceEnd,
    method,
    method.compilationResult());
}
public void alreadyDefinedLabel(char[] labelName, ASTNode location) {
origin: org.eclipse.jdt/org.eclipse.jdt.core

checkArgumentsSize();
origin: org.eclipse.jdt.core.compiler/ecj

method.abort(ProblemSeverities.AbortType, null);
origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

public void resolve(ClassScope upperScope) {
  if (this.binding == null) {
    this.ignoreFurtherInvestigation = true;
  }
  try {
    bindArguments();
    resolveReceiver();
    bindThrownExceptions();
    resolveJavadoc();
    resolveAnnotations(this.scope, this.annotations, this.binding);
    
    long sourceLevel = this.scope.compilerOptions().sourceLevel;
    validateNullAnnotations(sourceLevel);
    resolveStatements();
    // check @Deprecated annotation presence
    if (this.binding != null
        && (this.binding.getAnnotationTagBits() & TagBits.AnnotationDeprecated) == 0
        && (this.binding.modifiers & ClassFileConstants.AccDeprecated) != 0
        && sourceLevel >= ClassFileConstants.JDK1_5) {
      this.scope.problemReporter().missingDeprecatedAnnotationForMethod(this);
    }
  } catch (AbortMethod e) {
    // ========= abort on fatal error =============
    this.ignoreFurtherInvestigation = true;
  }
}
origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

  this.javadoc.print(tab, output);
printIndent(tab, output);
printModifiers(this.modifiers, output);
if (this.annotations != null) printAnnotations(this.annotations, output);
TypeParameter[] typeParams = typeParameters();
if (typeParams != null) {
  output.append('<');
printReturnType(0, output).append(this.selector).append('(');
if (this.arguments != null) {
  for (int i = 0; i < this.arguments.length; i++) {
printBody(tab + 1, output);
return output;
org.eclipse.jdt.internal.compiler.astAbstractMethodDeclaration

Most used methods

  • 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,
  • isStatic,
  • parseStatements,
  • print,
  • printAnnotations,
  • printBody

Popular in Java

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • runOnUiThread (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JFileChooser (javax.swing)
  • Top plugins for WebStorm
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