StatementTree
, Tree
public interface AssertTree extends StatementTree
assert
statement.
For example:
assert condition ; assert condition : detail ;
Modifier and Type | Method | Description |
---|---|---|
ExpressionTree |
getCondition() |
Returns the condition being asserted.
|
ExpressionTree |
getDetail() |
Returns the detail expression.
|
ExpressionTree getCondition()
ExpressionTree getDetail()
Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2005, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Ubuntu+0-9b161-1