Package dev.quantumfusion.hyphen.codegen
Record Class Variable
java.lang.Object
java.lang.Record
dev.quantumfusion.hyphen.codegen.Variable
-
Constructor Summary
ConstructorsConstructorDescriptionVariable(int pos, org.objectweb.asm.Type type)Creates an instance of aVariablerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.intpos()Returns the value of theposrecord component.toString()Returns a string representation of this record class.org.objectweb.asm.Typetype()Returns the value of thetyperecord component.
-
Constructor Details
-
Variable
public Variable(int pos, org.objectweb.asm.Type type)Creates an instance of aVariablerecord class.- Parameters:
pos- the value for theposrecord componenttype- the value for thetyperecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
pos
public int pos()Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
type
public org.objectweb.asm.Type type()Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-