Codota Logo
DoWhileStatementTree.condition
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: org.codehaus.sonar-plugins.java/java-squid

@Override
public void visitDoWhileStatement(DoWhileStatementTree tree) {
 scan(tree.statement());
 scan(tree.condition());
}
origin: SonarSource/sonar-java

@Override
public void visitDoWhileStatement(DoWhileStatementTree tree) {
 scan(tree.statement());
 scan(tree.condition());
}
origin: org.sonarsource.java/java-frontend

@Override
public void visitDoWhileStatement(DoWhileStatementTree tree) {
 scan(tree.statement());
 scan(tree.condition());
}
origin: org.codehaus.sonar-plugins.java/java-checks

@Override
public void visitDoWhileStatement(DoWhileStatementTree tree) {
 visitStatement(tree.statement());
 scan(tree.condition());
}
origin: org.sonarsource.java/java-squid

@Override
public void visitDoWhileStatement(DoWhileStatementTree tree) {
 scan(tree.statement());
 scan(tree.condition());
}
origin: Cognifide/AEM-Rules-for-SonarQube

@Override
public void visitDoWhileStatement(DoWhileStatementTree tree) {
  if (tree.condition() instanceof BinaryExpressionTree) {
    DoWhileBinaryExpressionVisitor visitor = new DoWhileBinaryExpressionVisitor();
    tree.condition().accept(visitor);
    if (visitor.containsResourceComparison()) {
      checkModelProviderCall(tree, tree.statement());
    }
  }
  super.visitDoWhileStatement(tree);
}
origin: SonarSource/sonar-java

private void buildDoWhileStatement(DoWhileStatementTree doWhileStatementTree) {
 Block falseBranch = currentBlock;
 Block loopback = createBlock();
 // process condition
 currentBlock = createBranch(doWhileStatementTree, loopback, falseBranch);
 buildCondition(doWhileStatementTree.condition(), loopback, falseBranch);
 // process body
 addContinueTarget(currentBlock);
 currentBlock = createBlock(currentBlock);
 breakTargets.addLast(falseBranch);
 build(doWhileStatementTree.statement());
 breakTargets.removeLast();
 continueTargets.removeLast();
 loopback.addSuccessor(currentBlock);
 currentBlock = createBlock(currentBlock);
}
origin: org.sonarsource.java/java-frontend

private void buildDoWhileStatement(DoWhileStatementTree doWhileStatementTree) {
 Block falseBranch = currentBlock;
 Block loopback = createBlock();
 // process condition
 currentBlock = createBranch(doWhileStatementTree, loopback, falseBranch);
 buildCondition(doWhileStatementTree.condition(), loopback, falseBranch);
 // process body
 addContinueTarget(currentBlock);
 currentBlock = createBlock(currentBlock);
 breakTargets.addLast(falseBranch);
 build(doWhileStatementTree.statement());
 breakTargets.removeLast();
 continueTargets.removeLast();
 loopback.addSuccessor(currentBlock);
 currentBlock = createBlock(currentBlock);
}
origin: org.sonarsource.java/java-squid

private void buildDoWhileStatement(DoWhileStatementTree doWhileStatementTree) {
 Block falseBranch = currentBlock;
 Block loopback = createBlock();
 // process condition
 currentBlock = createBranch(doWhileStatementTree, loopback, falseBranch);
 buildCondition(doWhileStatementTree.condition(), loopback, falseBranch);
 // process body
 currentBlock = createBlock(currentBlock);
 addContinueTarget(loopback);
 breakTargets.addLast(falseBranch);
 build(doWhileStatementTree.statement());
 breakTargets.removeLast();
 continueTargets.removeLast();
 loopback.addSuccessor(currentBlock);
 currentBlock = createBlock(currentBlock);
}
origin: org.codehaus.sonar-plugins.java/java-checks

@Override
public void visitDoWhileStatement(DoWhileStatementTree tree) {
 Set<Symbol.VariableSymbol> assignedSymbols = extractor.findAssignedVariables(tree);
 invalidateAssignedVariables(assignedSymbols);
 currentStates = evaluateStatement(currentStates, tree.statement());
 PackedStatementStates nextStates = PackedStatementStates.instantiate();
 for (ExecutionState state : currentStates) {
  if (evaluateExpression(state, tree.condition()) != SymbolicBooleanConstraint.TRUE) {
   nextStates.addState(state);
  }
 }
 currentStates = nextStates;
 invalidateAssignedVariables(assignedSymbols);
}
origin: org.codehaus.sonar-plugins.java/java-checks

@Override
public void visitDoWhileStatement(DoWhileStatementTree tree) {
 currentState.invalidateVariables(new AssignmentVisitor().findAssignedVariables(tree.statement()));
 currentState = new State(currentState);
 scan(tree.statement());
 scan(tree.condition());
 restorePreviousState();
}
origin: SonarSource/sonar-java

 return isTrue(((DoWhileStatementTree) loopTree).condition());
default:
origin: org.sonarsource.java/java-checks

 return isTrue(((DoWhileStatementTree) loopTree).condition());
default:
origin: org.sonarsource.java/java-frontend

 return;
case DO_STATEMENT:
 ExpressionTree doCondition = ((DoWhileStatementTree) terminator).condition();
 handleBranch(block, cleanupCondition(doCondition), verifyCondition(doCondition));
 return;
origin: SonarSource/sonar-java

 return;
case DO_STATEMENT:
 ExpressionTree doCondition = ((DoWhileStatementTree) terminator).condition();
 handleBranch(block, cleanupCondition(doCondition), verifyCondition(doCondition));
 return;
origin: org.sonarsource.java/java-squid

 return;
case DO_STATEMENT:
 ExpressionTree doCondition = ((DoWhileStatementTree) terminator).condition();
 handleBranch(block, cleanupCondition(doCondition), !doCondition.is(Tree.Kind.BOOLEAN_LITERAL));
 return;
org.sonar.plugins.java.api.treeDoWhileStatementTreecondition

Popular methods of DoWhileStatementTree

  • statement
  • doKeyword
  • firstToken
  • kind
  • semicolonToken
  • whileKeyword

Popular in Java

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • findViewById (Activity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now