Interface AssertTree

All Superinterfaces:
StatementTree, Tree

public interface AssertTree extends StatementTree
A tree node for an assert statement. For example:
  assert condition ;

  assert condition : detail ;
See Java Language Specification:
14.10 The assert Statement
Since:
1.6
  • Method Details Link icon

    • getCondition Link icon

      ExpressionTree getCondition()
      Returns the condition being asserted.
      Returns:
      the condition
    • getDetail Link icon

      ExpressionTree getDetail()
      Returns the detail expression.
      Returns:
      the detail expression