Top Description Methods
com.sun.source.tree

public Interface AssertTree

extends StatementTree
Known Direct Implementers
com.sun.tools.javac.tree.JCTree.JCAssert

A tree node for an assert statement. For example:
  assert condition ;

  assert condition : detail ;
Authors
Peter von der Ahé, Jonathan Gibbons
Since
1.6
Java Language Specification
14.10 The assert Statement

Method Summary

Modifier and TypeMethod and Description
public ExpressionTree

Returns:

the condition
getCondition
()

Returns the condition being asserted.

public ExpressionTree

Returns:

the detail expression
getDetail
()

Returns the detail expression.

Method Detail

getConditionback to summary
public ExpressionTree getCondition()

Returns the condition being asserted.

Returns:ExpressionTree

the condition

getDetailback to summary
public ExpressionTree getDetail()

Returns the detail expression.

Returns:ExpressionTree

the detail expression