Record Class CallMetaDataDetails
java.lang.Object
java.lang.Record
org.ek9lang.compiler.ir.data.CallMetaDataDetails
-
Constructor Summary
ConstructorsConstructorDescriptionCallMetaDataDetails(boolean isPure, int complexityScore) Creates CallMetaDataDetails with no side effects.CallMetaDataDetails(boolean isPure, int complexityScore, Set<String> sideEffects) Creates an instance of aCallMetaDataDetailsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecomplexityScorerecord component.static CallMetaDataDetailsCreates default CallMetaDataDetails for when no symbol information is available.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisPure()Returns the value of theisPurerecord component.Returns the value of thesideEffectsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CallMetaDataDetails
public CallMetaDataDetails(boolean isPure, int complexityScore) Creates CallMetaDataDetails with no side effects. -
CallMetaDataDetails
Creates an instance of aCallMetaDataDetailsrecord class.- Parameters:
isPure- the value for theisPurerecord componentcomplexityScore- the value for thecomplexityScorerecord componentsideEffects- the value for thesideEffectsrecord component
-
-
Method Details
-
defaultMetaData
Creates default CallMetaDataDetails for when no symbol information is available. Assumes non-pure with zero complexity and no known side effects. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
isPure
public boolean isPure()Returns the value of theisPurerecord component.- Returns:
- the value of the
isPurerecord component
-
complexityScore
public int complexityScore()Returns the value of thecomplexityScorerecord component.- Returns:
- the value of the
complexityScorerecord component
-
sideEffects
-