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

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

import org.checkerframework.checker.nullness.qual.Nullable;


/**
 * The "super" keyword. Technically not an expression but it's easier to analyse that way.
 *
 * 
 *
 * SuperExpression ::= "super"
 *                   | {@link ASTClassOrInterfaceType TypeName} "." "super"
 *
 * 
*/ public final class ASTSuperExpression extends AbstractJavaExpr implements ASTPrimaryExpression { ASTSuperExpression(int id) { super(id); } @Nullable public ASTClassOrInterfaceType getQualifier() { return getNumChildren() > 0 ? (ASTClassOrInterfaceType) getChild(0) : null; } @Override protected R acceptVisitor(JavaVisitor visitor, P data) { return visitor.visit(this, data); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy