public final class BinaryIntegerLiteral extends java.lang.Object implements IntegerLiteral
BinaryIntegerLiteral
denotes the nonterminal symbol BinaryIntegerLiteral, 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 BinaryIntegerLiteral , and that BinaryIntegerLiteral instance is equal to this BinaryIntegerLiteral instance, false otherwise. |
java.lang.String |
getBinaryNumeral()
Returns a
String with the binary numeral of this BinaryIntegerLiteral instance. |
java.util.Optional<java.lang.String> |
getIntegerTypeSuffix()
Returns an
Optional of String with the optional integer type suffix of this BinaryIntegerLiteral instance. |
int |
hashCode()
Returns a hash code for this
BinaryIntegerLiteral instance. |
java.lang.String |
toString()
Returns a
String representation of this BinaryIntegerLiteral instance. |
public boolean equals(java.lang.Object object)
true
if, and only if, object
is an instance of BinaryIntegerLiteral
, and that BinaryIntegerLiteral
instance is equal to this BinaryIntegerLiteral
instance, false
otherwise.equals
in class java.lang.Object
object
- an Object
to compare to this BinaryIntegerLiteral
instance for equalitytrue
if, and only if, object
is an instance of BinaryIntegerLiteral
, and that BinaryIntegerLiteral
instance is equal to this BinaryIntegerLiteral
instance, false
otherwisepublic int hashCode()
BinaryIntegerLiteral
instance.hashCode
in class java.lang.Object
BinaryIntegerLiteral
instancepublic java.util.Optional<java.lang.String> getIntegerTypeSuffix()
Optional
of String
with the optional integer type suffix of this BinaryIntegerLiteral
instance.Optional
of String
with the optional integer type suffix of this BinaryIntegerLiteral
instancepublic java.lang.String getBinaryNumeral()
String
with the binary numeral of this BinaryIntegerLiteral
instance.String
with the binary numeral of this BinaryIntegerLiteral
instancepublic java.lang.String toString()
String
representation of this BinaryIntegerLiteral
instance.toString
in class java.lang.Object
String
representation of this BinaryIntegerLiteral
instance