Record Class ScmLiteral.ScmFloat
java.lang.Object
java.lang.Record
org.impulsegraph.compiler.ast.ScmLiteral.ScmFloat
- All Implemented Interfaces:
ImpScmNode, ScmLiteral
- Enclosing interface:
ScmLiteral
-
Nested Class Summary
Nested classes/interfaces inherited from interface ScmLiteral
ScmLiteral.ScmBool, ScmLiteral.ScmFloat, ScmLiteral.ScmInt, ScmLiteral.ScmString -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(ImpScmVisitor<R> visitor) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.doublevalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
ScmFloat
public ScmFloat(double value) Creates an instance of aScmFloatrecord class.- Parameters:
value- the value for thevaluerecord component
-
-
Method Details
-
toScmString
- Specified by:
toScmStringin interfaceImpScmNode
-
accept
- Specified by:
acceptin interfaceImpScmNode
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
value
public double value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-