congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
AbstractMethodDeclaration.traverse
Code IndexAdd Tabnine to your IDE (free)

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

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

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: trylimits/Eclipse-Postfix-Code-Completion

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.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: SAP/vulnerability-assessment-tool

public Node convertConstructBody(String methodName) {
  AbstractMethodDeclaration method = CompilationUtils.findMethod(fCompilation.getCompilationUnit(), methodName);
  fRoot = new Node(JavaEntityType.METHOD, methodName);
  fRoot.setEntity(new SourceCodeEntity(methodName, JavaEntityType.METHOD, new SourceRange(
      method.declarationSourceStart,
      method.declarationSourceEnd)));
  //List<Comment> comments = CompilationUtils.extractComments(fCompilation);
  //Here initialize the visitor with parameters
  //sMethodBodyConverter.initialize(fRoot, method, comments, fCompilation.getScanner());
  //Removed the <<comments>> argument from the previous statement
  sMethodBodyConverter.initialize(fRoot, method, null, fCompilation.getScanner());
  //AbstractMethodDeclaration.traverse(ASTVisitor,ClassScope)
  method.traverse(sMethodBodyConverter, (ClassScope) null);
  return fRoot;
}
origin: net.openhft/spoon-core

int length = typeDeclaration.methods.length;
for (int i = 0; i < length; i++) {
  typeDeclaration.methods[i].traverse(this, typeDeclaration.scope);
origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

int length = this.methods.length;
for (int i = 0; i < length; i++)
  this.methods[i].traverse(visitor, this.scope);
origin: org.eclipse.tycho/org.eclipse.jdt.core

int length = this.methods.length;
for (int i = 0; i < length; i++)
  this.methods[i].traverse(visitor, this.scope);
origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core

int length = this.methods.length;
for (int i = 0; i < length; i++)
  this.methods[i].traverse(visitor, this.scope);
origin: org.eclipse.jdt/org.eclipse.jdt.core

int length = this.methods.length;
for (int i = 0; i < length; i++)
  this.methods[i].traverse(visitor, this.scope);
origin: org.eclipse.scout.sdk.deps/ecj

int length = this.methods.length;
for (int i = 0; i < length; i++)
  this.methods[i].traverse(visitor, this.scope);
origin: org.eclipse.tycho/org.eclipse.jdt.core

int length = this.methods.length;
for (int i = 0; i < length; i++)
  this.methods[i].traverse(visitor, this.scope);
origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

int length = this.methods.length;
for (int i = 0; i < length; i++)
  this.methods[i].traverse(visitor, this.scope);
origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core

int length = this.methods.length;
for (int i = 0; i < length; i++)
  this.methods[i].traverse(visitor, this.scope);
origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

int length = this.methods.length;
for (int i = 0; i < length; i++)
  this.methods[i].traverse(visitor, this.scope);
origin: com.ovea.tajin.server/tajin-server-tomcat7

int length = this.methods.length;
for (int i = 0; i < length; i++)
  this.methods[i].traverse(visitor, this.scope);
origin: org.eclipse.jdt.core.compiler/ecj

int length = this.methods.length;
for (int i = 0; i < length; i++)
  this.methods[i].traverse(visitor, this.scope);
origin: trylimits/Eclipse-Postfix-Code-Completion

int length = this.methods.length;
for (int i = 0; i < length; i++)
  this.methods[i].traverse(visitor, this.scope);
origin: org.eclipse.jdt.core.compiler/ecj

int length = this.methods.length;
for (int i = 0; i < length; i++)
  this.methods[i].traverse(visitor, this.scope);
origin: trylimits/Eclipse-Postfix-Code-Completion

int length = this.methods.length;
for (int i = 0; i < length; i++)
  this.methods[i].traverse(visitor, this.scope);
origin: org.eclipse.jdt.core.compiler/ecj

int length = this.methods.length;
for (int i = 0; i < length; i++)
  this.methods[i].traverse(visitor, this.scope);
org.eclipse.jdt.internal.compiler.astAbstractMethodDeclarationtraverse

Popular methods of AbstractMethodDeclaration

  • isConstructor
  • typeParameters
  • 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
  • isDefaultConstructor
  • isAnnotationMethod,
  • isDefaultConstructor,
  • isInitializationMethod,
  • isMethod,
  • isStatic,
  • parseStatements,
  • print,
  • printAnnotations,
  • printBody

Popular in Java

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • runOnUiThread (Activity)
  • getContentResolver (Context)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • ImageIO (javax.imageio)
  • JList (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Option (scala)
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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