JavaScript is disabled on your browser.
This specification is not final and is subject to change. Use is subject to
license terms
.
Skip navigation links
Overview
Class
Use
Tree
Preview
New
Deprecated
Index
Search
Help
Java SE 23 & JDK 23
DRAFT 23-internal-2024-04-16-1247301.vklang...
jdk.compiler
com.sun.source.tree
TypeCastTree
Contents
Hide sidebar
❮
❯
Show sidebar
Description
Nested Class Summary
Method Summary
Method Details
getType()
getExpression()
Interface TypeCastTree
All Superinterfaces:
ExpressionTree
,
Tree
public interface
TypeCastTree
extends
ExpressionTree
A tree node for a type cast expression. For example:
(
type
)
expression
See
Java Language Specification
:
15.16 Cast Expressions
Since:
1.6
Nested Class Summary
Nested classes/interfaces declared in interface com.sun.source.tree.
Tree
Tree.Kind
Method Summary
All Methods
Instance Methods
Abstract Methods
Modifier and Type
Method
Description
ExpressionTree
getExpression
()
Returns the expression being cast.
Tree
getType
()
Returns the target type of the cast.
Methods declared in interface com.sun.source.tree.
Tree
accept
,
getKind
Method Details
getType
Tree
getType
()
Returns the target type of the cast.
Returns:
the cast
getExpression
ExpressionTree
getExpression
()
Returns the expression being cast.
Returns:
the expression