Module jdk.compiler

Interface TypeCastTree

所有超级接口:
ExpressionTree, Tree

public interface TypeCastTree extends ExpressionTree
类型转换表达式的树节点。例如:
   ( 类型 ) 表达式
 
参见 Java语言规范:
15.16 类型转换表达式
自Java版本:
1.6
  • Nested Class Summary

    Nested classes/interfaces declared in interface com.sun.source.tree.Tree

    Tree.Kind
  • Method Summary

    Modifier and Type
    Method
    Description
    返回被转换的表达式。
    返回转换的目标类型。

    Methods declared in interface com.sun.source.tree.Tree

    accept, getKind
  • Method Details

    • getType

      Tree getType()
      返回转换的目标类型。
      返回:
      转换的内容
    • getExpression

      ExpressionTree getExpression()
      返回被转换的表达式。
      返回:
      表达式