|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsheets.ext.assertion.Assertion
csheets.ext.assertion.USAssertion
public class USAssertion
This class represents an Assertion.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class csheets.ext.assertion.Assertion |
|---|
Assertion.ComparisonResult, Assertion.Result |
| Field Summary | |
|---|---|
protected String |
assertion
The original assertion string as entered by the user. |
| Fields inherited from class csheets.ext.assertion.Assertion |
|---|
intervals, isInteger |
| Constructor Summary | |
|---|---|
USAssertion(String assertion)
Constructs an Assertion object |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class csheets.ext.assertion.Assertion |
|---|
allowsIntegersOnly, equals, getIntervalIterator, getMultiInterval, validate, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String assertion
| Constructor Detail |
|---|
public USAssertion(String assertion)
throws AssertionException
assertion - is a string representation of an assertion
AssertionException - is thrown if a syntactic or semantic error occurs| Method Detail |
|---|
public 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 toString()
toString in class Assertionpublic String prettyString()
public void printWarnings()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||