APIdia Launch Partner
Top Description Methods
com.sun.source.tree

public Interface TypeCastTree

extends ExpressionTree
Known Direct Implementers
com.sun.tools.javac.tree.JCTree.JCTypeCast

A tree node for a type cast expression. For example:
  ( type ) expression
Authors
Peter von der Ahé, Jonathan Gibbons
Since
1.6
Java Language Specification
15.16 Cast Expressions

Method Summary

Modifier and TypeMethod and Description
public ExpressionTree

Returns:

the expression
getExpression
()

Returns the expression being cast.

public Tree

Returns:

the cast
getType
()

Returns the target type of the cast.

Method Detail

getExpressionback to summary
public ExpressionTree getExpression()

Returns the expression being cast.

Returns:ExpressionTree

the expression

getTypeback to summary
public Tree getType()

Returns the target type of the cast.

Returns:Tree

the cast