Record Class FieldClassifier.FieldCounts
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase5.FieldClassifier.FieldCounts
- Record Components:
serviceFieldCount- Number of fields whose type is abstract/interfacedataFieldCount- Number of fields whose type is concretebyDelegatedFieldCount- Number of fields used in 'by' delegationserviceFields- List of service-type field symbolsdataFields- List of data-type field symbolsbyDelegatedFields- Set of field names used in 'by' delegation
- Enclosing class:
FieldClassifier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebyDelegatedFieldCountrecord component.Returns the value of thebyDelegatedFieldsrecord component.intReturns the value of thedataFieldCountrecord component.Returns the value of thedataFieldsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theserviceFieldCountrecord component.Returns the value of theserviceFieldsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FieldCounts
FieldCounts(int serviceFieldCount, int dataFieldCount, int byDelegatedFieldCount, List<ISymbol> serviceFields, List<ISymbol> dataFields, Set<String> byDelegatedFields) Creates an instance of aFieldCountsrecord class.- Parameters:
serviceFieldCount- the value for theserviceFieldCountrecord componentdataFieldCount- the value for thedataFieldCountrecord componentbyDelegatedFieldCount- the value for thebyDelegatedFieldCountrecord componentserviceFields- the value for theserviceFieldsrecord componentdataFields- the value for thedataFieldsrecord componentbyDelegatedFields- the value for thebyDelegatedFieldsrecord component
-
-
Method Details
-
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. -
serviceFieldCount
public int serviceFieldCount()Returns the value of theserviceFieldCountrecord component.- Returns:
- the value of the
serviceFieldCountrecord component
-
dataFieldCount
public int dataFieldCount()Returns the value of thedataFieldCountrecord component.- Returns:
- the value of the
dataFieldCountrecord component
-
byDelegatedFieldCount
public int byDelegatedFieldCount()Returns the value of thebyDelegatedFieldCountrecord component.- Returns:
- the value of the
byDelegatedFieldCountrecord component
-
serviceFields
Returns the value of theserviceFieldsrecord component.- Returns:
- the value of the
serviceFieldsrecord component
-
dataFields
Returns the value of thedataFieldsrecord component.- Returns:
- the value of the
dataFieldsrecord component
-
byDelegatedFields
Returns the value of thebyDelegatedFieldsrecord component.- Returns:
- the value of the
byDelegatedFieldsrecord component
-