Record Class ConstantOperandModel
java.lang.Object
java.lang.Record
com.oracle.truffle.dsl.processor.bytecode.model.ConstantOperandModel
public record ConstantOperandModel(TypeMirror type, String name, String doc, Boolean specifyAtEnd, int dimensions, AnnotationMirror mirror)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionConstantOperandModel(TypeMirror type, String name, String doc, Boolean specifyAtEnd, int dimensions, AnnotationMirror mirror) Creates an instance of aConstantOperandModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thedimensionsrecord component.doc()Returns the value of thedocrecord component.final booleanIndicates whether some other object is "equal to" this one.getNameOrDefault(String defaultName) final inthashCode()Returns a hash code value for this object.mirror()Returns the value of themirrorrecord component.name()Returns the value of thenamerecord component.Returns the value of thespecifyAtEndrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ConstantOperandModel
public ConstantOperandModel(TypeMirror type, String name, String doc, Boolean specifyAtEnd, int dimensions, AnnotationMirror mirror) Creates an instance of aConstantOperandModelrecord class.- Parameters:
type- the value for thetyperecord componentname- the value for thenamerecord componentdoc- the value for thedocrecord componentspecifyAtEnd- the value for thespecifyAtEndrecord componentdimensions- the value for thedimensionsrecord componentmirror- the value for themirrorrecord component
-
-
Method Details
-
getNameOrDefault
-
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 '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
doc
Returns the value of thedocrecord component.- Returns:
- the value of the
docrecord component
-
specifyAtEnd
Returns the value of thespecifyAtEndrecord component.- Returns:
- the value of the
specifyAtEndrecord component
-
dimensions
public int dimensions()Returns the value of thedimensionsrecord component.- Returns:
- the value of the
dimensionsrecord component
-
mirror
Returns the value of themirrorrecord component.- Returns:
- the value of the
mirrorrecord component
-