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

net.sourceforge.pmd.lang.java.ast.ASTSynchronizedStatement 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;

/**
 * A synchronized statement.
 *
 * 
 *
 * SynchronizedStatement ::= "synchronized" "(" {@link ASTExpression Expression} ")" {@link ASTBlock Block}
 *
 * 
*/ public final class ASTSynchronizedStatement extends AbstractStatement { ASTSynchronizedStatement(int id) { super(id); } @Override protected R acceptVisitor(JavaVisitor visitor, P data) { return visitor.visit(this, data); } /** * Returns the expression evaluating to the lock object. */ public ASTExpression getLockExpression() { return (ASTExpression) getChild(0); } /** * Returns the body of this statement. */ public ASTBlock getBody() { return (ASTBlock) getChild(1); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy