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

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

There is a newer version: 7.7.0
Show newest version
/**
 * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
 */

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

/**
 * A "catch" clause of a {@linkplain ASTTryStatement try statement}.
 *
 * 
 *
 * CatchClause ::= "catch" "(" {@link ASTCatchParameter CatchParameter} ")" {@link ASTBlock Block}
 *
 * 
*/ public final class ASTCatchClause extends AbstractJavaNode { ASTCatchClause(int id) { super(id); } @Override protected R acceptVisitor(JavaVisitor visitor, P data) { return visitor.visit(this, data); } /** Returns the catch parameter. */ public ASTCatchParameter getParameter() { return (ASTCatchParameter) getFirstChild(); } /** Returns the body of this catch branch. */ public ASTBlock getBody() { return getFirstChildOfType(ASTBlock.class); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy