All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sourceforge.pmd.lang.java.ast.ASTWhileStatement Maven / Gradle / Ivy

The newest version!
/**
 * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
 */

package net.sourceforge.pmd.lang.java.ast;

/**
 * Represents a {@code while} loop.
 *
 * 
 *
 * WhileStatement ::= "while" "(" {@linkplain ASTExpression Expression} ")" {@linkplain ASTStatement Statement}
 *
 * 
*/ public final class ASTWhileStatement extends AbstractStatement implements ASTLoopStatement { ASTWhileStatement(int id) { super(id); } /** * Returns the node that represents the guard of this loop. * This may be any expression of type boolean. */ @Override public ASTExpression getCondition() { return (ASTExpression) getChild(0); } @Override protected R acceptVisitor(JavaVisitor visitor, P data) { return visitor.visit(this, data); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy