/**
 * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
 */
/* Generated By:JJTree: Do not edit this line. ASTAllocationExpression.java */

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

import net.sourceforge.pmd.lang.ast.Node;

public class ASTAllocationExpression extends AbstractJavaTypeNode {
    public ASTAllocationExpression(int id) {
        super(id);
    }

    public ASTAllocationExpression(JavaParser p, int id) {
        super(p, id);
    }

    /**
     * Accept the visitor. *
     */
    public Object jjtAccept(JavaParserVisitor visitor, Object data) {
        return visitor.visit(this, data);
    }

    public boolean isAnonymousClass() {
        if (jjtGetNumChildren() > 1) {
            Node lastChild = jjtGetChild(jjtGetNumChildren() - 1);
            return lastChild instanceof ASTClassOrInterfaceBody;
        }
        return false;
    }
}
