public class ThrowsClause
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
comment
The descriptive text for this exception.
|
private ClassOrInterfaceType |
exceptionType
The type of the exception.
|
| Constructor and Description |
|---|
ThrowsClause(ClassOrInterfaceType exceptionType,
java.lang.String comment)
Creates a
ThrowsClause object with the given type, and comment. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(@Nullable java.lang.Object object) |
java.lang.String |
getComment()
Returns the descriptive comment for this
ThrowsClause. |
ClassOrInterfaceType |
getExceptionType()
Returns the type of the exception.
|
int |
hashCode() |
java.lang.String |
toString() |
private final java.lang.String comment
private final ClassOrInterfaceType exceptionType
ThrowsClause(ClassOrInterfaceType exceptionType, java.lang.String comment)
ThrowsClause object with the given type, and comment.exceptionType - the type of the expected exceptioncomment - the text description of the throws clausepublic ClassOrInterfaceType getExceptionType()
public java.lang.String getComment()
ThrowsClause.ThrowsClausepublic boolean equals(@Nullable java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object