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

net.sourceforge.pmd.lang.java.ast.ASTDefaultValue 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 the {@code default} clause of an {@linkplain ASTMethodDeclaration annotation method}.
 *
 * 
 *
 * DefaultValue ::= "default" {@link ASTMemberValue MemberValue}
 *
 * 
*/ public final class ASTDefaultValue extends AbstractJavaNode { ASTDefaultValue(int id) { super(id); } /** * Returns the constant value nested in this node. */ public ASTMemberValue getConstant() { return (ASTMemberValue) getChild(0); } @Override protected R acceptVisitor(JavaVisitor visitor, P data) { return visitor.visit(this, data); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy