public final class EndOfLineComment extends java.lang.Object implements Comment
EndOfLineComment
denotes the nonterminal symbol EndOfLineComment, 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 EndOfLineComment , and that EndOfLineComment instance is equal to this EndOfLineComment instance, false otherwise. |
int |
hashCode()
Returns a hash code for this
EndOfLineComment instance. |
java.lang.String |
toString()
Returns a
String representation of this EndOfLineComment instance. |
public boolean equals(java.lang.Object object)
true
if, and only if, object
is an instance of EndOfLineComment
, and that EndOfLineComment
instance is equal to this EndOfLineComment
instance, false
otherwise.equals
in class java.lang.Object
object
- an Object
to compare to this EndOfLineComment
instance for equalitytrue
if, and only if, object
is an instance of EndOfLineComment
, and that EndOfLineComment
instance is equal to this EndOfLineComment
instance, false
otherwisepublic int hashCode()
EndOfLineComment
instance.hashCode
in class java.lang.Object
EndOfLineComment
instancepublic java.lang.String toString()
String
representation of this EndOfLineComment
instance.toString
in class java.lang.Object
String
representation of this EndOfLineComment
instance