TypeCastTree.java revision 2571:10fc81ac75b4
136285Sbrian/*
236285Sbrian * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
336285Sbrian * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
436285Sbrian *
536285Sbrian * This code is free software; you can redistribute it and/or modify it
636285Sbrian * under the terms of the GNU General Public License version 2 only, as
736285Sbrian * published by the Free Software Foundation.  Oracle designates this
836285Sbrian * particular file as subject to the "Classpath" exception as provided
936285Sbrian * by Oracle in the LICENSE file that accompanied this code.
1036285Sbrian *
1136285Sbrian * This code is distributed in the hope that it will be useful, but WITHOUT
1236285Sbrian * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1336285Sbrian * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1436285Sbrian * version 2 for more details (a copy is included in the LICENSE file that
1536285Sbrian * accompanied this code).
1636285Sbrian *
1736285Sbrian * You should have received a copy of the GNU General Public License version
1836285Sbrian * 2 along with this work; if not, write to the Free Software Foundation,
1936285Sbrian * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2036285Sbrian *
2136285Sbrian * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2236285Sbrian * or visit www.oracle.com if you need additional information or have any
2336285Sbrian * questions.
2436285Sbrian */
2536285Sbrian
2643313Sbrianpackage com.sun.source.tree;
2736285Sbrian
2836285Sbrian/**
2936285Sbrian * A tree node for a type cast expression.
3036285Sbrian *
3136285Sbrian * For example:
3236285Sbrian * <pre>
3336285Sbrian *   ( <em>type</em> ) <em>expression</em>
3436285Sbrian * </pre>
3536285Sbrian *
3636285Sbrian * @jls section 15.16
3736285Sbrian *
3836285Sbrian * @author Peter von der Ah&eacute;
3936285Sbrian * @author Jonathan Gibbons
4036285Sbrian * @since 1.6
4136285Sbrian */
4236285Sbrian@jdk.Exported
4336285Sbrianpublic interface TypeCastTree extends ExpressionTree {
4436285Sbrian    /**
4536285Sbrian     * Returns the target type of the cast.
4636285Sbrian     * @return the cast
4736285Sbrian     */
4836285Sbrian    Tree getType();
4936285Sbrian
5036285Sbrian    /**
5136285Sbrian     * Returns the expression being cast.
5236285Sbrian     * @return the expression
5336285Sbrian     */
5436285Sbrian    ExpressionTree getExpression();
5536285Sbrian}
5638557Sbrian