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

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

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

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

import net.sourceforge.pmd.annotation.InternalApi;

/**
 * Represents the body of a {@linkplain ASTClassOrInterfaceDeclaration class or interface declaration}.
 * This includes anonymous classes, including those defined within an {@linkplain ASTEnumConstant enum constant}.
 *
 * 
 *
 * ClassOrInterfaceBody ::=  "{"  {@linkplain ASTClassOrInterfaceBodyDeclaration ClassOrInterfaceBodyDeclaration}* "}"
 *
 * 
*/ public class ASTClassOrInterfaceBody extends AbstractJavaNode { @InternalApi @Deprecated public ASTClassOrInterfaceBody(int id) { super(id); } @InternalApi @Deprecated public ASTClassOrInterfaceBody(JavaParser p, int id) { super(p, id); } @Override public Object jjtAccept(JavaParserVisitor visitor, Object data) { return visitor.visit(this, data); } /** * @deprecated Test the parent for {@link ASTAllocationExpression}. * This will be removed in pmd 7 as unnecessary (refs #905) */ @Deprecated public boolean isAnonymousInnerClass() { return getParent() instanceof ASTAllocationExpression; } /** * @deprecated Test the parent for {@link ASTEnumConstant}. * This will be removed in pmd 7 as unnecessary (refs #905) */ @Deprecated public boolean isEnumChild() { return getParent() instanceof ASTEnumConstant; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy