congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
DoWhileStatementTree.doKeyword
Code IndexAdd Tabnine to your IDE (free)

How to use
doKeyword
method
in
org.sonar.plugins.java.api.tree.DoWhileStatementTree

Best Java code snippets using org.sonar.plugins.java.api.tree.DoWhileStatementTree.doKeyword (Showing top 13 results out of 315)

origin: SonarSource/sonar-java

@Override
public void visitDoWhileStatement(DoWhileStatementTree tree) {
 SyntaxToken doKeyword = tree.doKeyword();
 checkNesting(doKeyword);
 nestingLevel.push(doKeyword);
 super.visitDoWhileStatement(tree);
 nestingLevel.pop();
}
origin: org.sonarsource.java/java-checks

@Override
public void visitDoWhileStatement(DoWhileStatementTree tree) {
 SyntaxToken doKeyword = tree.doKeyword();
 checkNesting(doKeyword);
 nestingLevel.push(doKeyword);
 super.visitDoWhileStatement(tree);
 nestingLevel.pop();
}
origin: SonarSource/sonar-java

@Override
public void visitDoWhileStatement(DoWhileStatementTree tree) {
 increaseComplexityByNesting(tree.doKeyword());
 nesting++;
 super.visitDoWhileStatement(tree);
 nesting--;
}
origin: org.sonarsource.java/java-frontend

@Override
public void visitDoWhileStatement(DoWhileStatementTree tree) {
 increaseComplexityByNesting(tree.doKeyword());
 nesting++;
 super.visitDoWhileStatement(tree);
 nesting--;
}
origin: SonarSource/sonar-java

@Override
public void visitDoWhileStatement(DoWhileStatementTree tree) {
 checkBlock(tree.doKeyword(), tree.statement());
 super.visitDoWhileStatement(tree);
}
origin: SonarSource/sonar-java

@Override
public void visitDoWhileStatement(DoWhileStatementTree tree) {
 enterLoop();
 super.visitDoWhileStatement(tree);
 leaveLoop(tree.doKeyword());
}
origin: org.sonarsource.java/java-checks

@Override
public void visitDoWhileStatement(DoWhileStatementTree tree) {
 enterLoop();
 super.visitDoWhileStatement(tree);
 leaveLoop(tree.doKeyword());
}
origin: org.sonarsource.java/java-checks

@Override
public void visitDoWhileStatement(DoWhileStatementTree tree) {
 checkBlock(tree.doKeyword(), tree.statement());
 super.visitDoWhileStatement(tree);
}
origin: SonarSource/sonar-java

@Override
public void visitDoWhileStatement(DoWhileStatementTree tree) {
 // do not scan the condition
 addLine(tree.doKeyword());
 if (tree.doKeyword().line() != tree.whileKeyword().line()) {
  addLines(tree.whileKeyword(), tree.semicolonToken());
 }
 scan(tree.statement());
}
origin: org.sonarsource.java/java-checks

@Override
public void visitDoWhileStatement(DoWhileStatementTree tree) {
 // do not scan the condition
 addLine(tree.doKeyword());
 if (tree.doKeyword().line() != tree.whileKeyword().line()) {
  addLines(tree.whileKeyword(), tree.semicolonToken());
 }
 scan(tree.statement());
}
origin: SonarSource/sonar-java

@Override
public void visitNode(Tree tree) {
 switch (tree.kind()) {
  case WHILE_STATEMENT:
   WhileStatementTree whileStatementTree = (WhileStatementTree) tree;
   checkStatement(whileStatementTree.whileKeyword(), whileStatementTree.statement());
   break;
  case DO_STATEMENT:
   DoWhileStatementTree doWhileStatementTree = (DoWhileStatementTree) tree;
   checkStatement(doWhileStatementTree.doKeyword(), doWhileStatementTree.statement());
   break;
  case FOR_STATEMENT:
   ForStatementTree forStatementTree = (ForStatementTree) tree;
   checkStatement(forStatementTree.forKeyword(), forStatementTree.statement());
   break;
  case FOR_EACH_STATEMENT:
   ForEachStatement forEachStatement = (ForEachStatement) tree;
   checkStatement(forEachStatement.forKeyword(), forEachStatement.statement());
   break;
  case IF_STATEMENT:
   checkIfStatement((IfStatementTree) tree);
   break;
  default:
   break;
 }
}
origin: org.sonarsource.java/java-checks

@Override
public void visitNode(Tree tree) {
 switch (tree.kind()) {
  case WHILE_STATEMENT:
   WhileStatementTree whileStatementTree = (WhileStatementTree) tree;
   checkStatement(whileStatementTree.whileKeyword(), whileStatementTree.statement());
   break;
  case DO_STATEMENT:
   DoWhileStatementTree doWhileStatementTree = (DoWhileStatementTree) tree;
   checkStatement(doWhileStatementTree.doKeyword(), doWhileStatementTree.statement());
   break;
  case FOR_STATEMENT:
   ForStatementTree forStatementTree = (ForStatementTree) tree;
   checkStatement(forStatementTree.forKeyword(), forStatementTree.statement());
   break;
  case FOR_EACH_STATEMENT:
   ForEachStatement forEachStatement = (ForEachStatement) tree;
   checkStatement(forEachStatement.forKeyword(), forEachStatement.statement());
   break;
  case IF_STATEMENT:
   checkIfStatement((IfStatementTree) tree);
   break;
  default:
   break;
 }
}
origin: DarLiner/vjtools

@Override
public void visitNode(Tree tree) {
  switch (tree.kind()) {
  case WHILE_STATEMENT:
    WhileStatementTree whileStatementTree = (WhileStatementTree) tree;
    checkStatement(whileStatementTree.whileKeyword(), whileStatementTree.statement());
    break;
  case DO_STATEMENT:
    DoWhileStatementTree doWhileStatementTree = (DoWhileStatementTree) tree;
    checkStatement(doWhileStatementTree.doKeyword(), doWhileStatementTree.statement());
    break;
  case FOR_STATEMENT:
    ForStatementTree forStatementTree = (ForStatementTree) tree;
    checkStatement(forStatementTree.forKeyword(), forStatementTree.statement());
    break;
  case FOR_EACH_STATEMENT:
    ForEachStatement forEachStatement = (ForEachStatement) tree;
    checkStatement(forEachStatement.forKeyword(), forEachStatement.statement());
    break;
  case IF_STATEMENT:
    checkIfStatement((IfStatementTree) tree);
    break;
  default:
    break;
  }
}
org.sonar.plugins.java.api.treeDoWhileStatementTreedoKeyword

Popular methods of DoWhileStatementTree

  • statement
  • condition
  • firstToken
  • kind
  • semicolonToken
  • whileKeyword

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getExternalFilesDir (Context)
  • getContentResolver (Context)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top plugins for Android Studio
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