模块 jdk.compiler

接口 AssertTree

所有父级接口:
StatementTree , Tree

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

  assert condition : detail ;
 
Java 语言规范:
14.10 断言语句
自从:
1.6
  • 方法详情

    • getCondition

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

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