Record Class PredicateImpl
java.lang.Object
java.lang.Record
fr.inria.rules.integraal.model.logicalElements.impl.PredicateImpl
- Record Components:
label- the predicate labelarity- the predicate arity
- All Implemented Interfaces:
fr.inria.rules.dlgpemodel.api.elems.IPredicate, fr.inria.rules.dlgpemodel.api.sentences.IPrintable, Standardizable, Predicate
-
Field Summary
Fields inherited from interface fr.inria.rules.dlgpemodel.api.sentences.IPrintable
WRITER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintarity()Returns the value of thearityrecord component.booleanIndicates whether some other object is "equal to" this one.intgetArity()getName()inthashCode()//////////////////////////////////////////////label()Returns the value of thelabelrecord component.toString()Returns a string representation of this record class.Methods inherited from interface fr.inria.rules.dlgpemodel.api.sentences.IPrintable
toDLGPEMethods inherited from interface Predicate
toStandardFormMethods inherited from interface Standardizable
toStandardForm
-
Constructor Details
-
PredicateImpl
Constructor with a label and arity- Parameters:
label- the string representationarity- the number of terms
-
-
Method Details
-
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. -
toString
-
getName
- Specified by:
getNamein interfacefr.inria.rules.dlgpemodel.api.elems.IPredicate
-
getArity
public int getArity()- Specified by:
getArityin interfacefr.inria.rules.dlgpemodel.api.elems.IPredicate
-
label
-
arity
-