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

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

/**
 * Represents a type cast expression. This is syntactically a unary prefix
 * operation and has the same precedence.
 *
 * 
 *
 * CastExpression ::= "(" {@link ASTType Type} ")" {@linkplain ASTExpression Expression}
 *
 * 
*/ public final class ASTCastExpression extends AbstractJavaExpr { ASTCastExpression(int id) { super(id); } public ASTType getCastType() { return firstChild(ASTType.class); } public ASTExpression getOperand() { return (ASTExpression) getChild(getNumChildren() - 1); } @Override public R acceptVisitor(JavaVisitor visitor, P data) { return visitor.visit(this, data); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy