public class MissingExceptionCheck extends java.lang.Object implements Check
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<java.util.List<ThrowsClause>> |
expected
The list of lists of throws clauses for which the guard expression was satisfied.
|
private int |
index
The index of the statement where the exception should be thrown.
|
| Constructor and Description |
|---|
MissingExceptionCheck(java.util.List<java.util.List<ThrowsClause>> expected,
int index)
Creates a
MissingExceptionCheck object for the expected exception type at the given
statement. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(@Nullable java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toCodeStringPostStatement()
Returns a string of Java source code to be emitted after a statement containing this check.
|
java.lang.String |
toCodeStringPreStatement()
Returns a string of Java source code to be emitted before a statement containing this check.
|
java.lang.String |
toString() |
private final java.util.List<java.util.List<ThrowsClause>> expected
private final int index
MissingExceptionCheck(java.util.List<java.util.List<ThrowsClause>> expected, int index)
MissingExceptionCheck object for the expected exception type at the given
statement.expected - the expected exceptionsindex - the statement indexpublic boolean equals(@Nullable java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toCodeStringPreStatement()
ChecktoCodeStringPreStatement in interface Checkpublic java.lang.String toCodeStringPostStatement()
ChecktoCodeStringPostStatement in interface Check