Module jdk.compiler

Interface AssertTree

所有超级接口:
StatementTree, Tree

public interface AssertTree extends StatementTree
用于assert语句的树节点。例如:
   assert condition ;

   assert condition : detail ;
 
参见 Java语言规范:
14.10 assert语句
自Java版本:
1.6
  • Method Details

    • getCondition

      ExpressionTree getCondition()
      返回被断言的条件。
      返回:
      条件
    • getDetail

      ExpressionTree getDetail()
      返回详细表达式。
      返回:
      详细表达式