public class USAssertion extends Assertion
Assertion.ComparisonResult, Assertion.Result
Modifier and Type | Field and Description |
---|---|
protected String |
assertion
The original assertion string as entered by the user.
|
Constructor and Description |
---|
USAssertion(String assertion)
Constructs an Assertion object
|
Modifier and Type | Method and Description |
---|---|
List<AssertionWarning> |
getWarnings()
Retrieves the warnings associated with this assertion describing possible
inconsitencies in the assertion.
|
boolean |
isConsistent()
Indicates wether the assertion is consistent or wether it may contain
some inconsistencies.
|
String |
prettyString()
Used for "pretty printing" an assertion.
|
void |
printWarnings()
Deprecated.
printWarnings
|
String |
toString() |
allowsIntegersOnly, equals, getIntervalIterator, getMultiInterval, validate, validate
public USAssertion(String assertion) throws AssertionException
assertion
- is a string representation of an assertionAssertionException
- is thrown if a syntactic or semantic error occurspublic boolean isConsistent()
getWarnings()
.true
if there are no inconsitencies, false
otherwise.public List<AssertionWarning> getWarnings()
List
of AssertionWarning
objects describing any
warnings/inconsistencies in the assertion represented by this object. This List
will be non-empty if isConsistent()
returns false
, and empty otherwise.public String prettyString()
public void printWarnings()