public final class TraditionalComment extends java.lang.Object implements Comment
TraditionalComment
denotes the nonterminal symbol TraditionalComment, as defined by the Java Language Specification.Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object)
Returns
true if, and only if, object is an instance of TraditionalComment , and that TraditionalComment instance is equal to this TraditionalComment instance, false otherwise. |
int |
hashCode()
Returns a hash code for this
TraditionalComment instance. |
java.lang.String |
toString()
Returns a
String representation of this TraditionalComment instance. |
public boolean equals(java.lang.Object object)
true
if, and only if, object
is an instance of TraditionalComment
, and that TraditionalComment
instance is equal to this TraditionalComment
instance, false
otherwise.equals
in class java.lang.Object
object
- an Object
to compare to this TraditionalComment
instance for equalitytrue
if, and only if, object
is an instance of EndOfLineComment
, and that TraditionalComment
instance is equal to this TraditionalComment
instance, false
otherwisepublic int hashCode()
TraditionalComment
instance.hashCode
in class java.lang.Object
TraditionalComment
instancepublic java.lang.String toString()
String
representation of this TraditionalComment
instance.toString
in class java.lang.Object
String
representation of this TraditionalComment
instance