Record Class Directive
java.lang.Object
java.lang.Record
fr.inria.rules.integraal.io.dlgp.Directive
- Record Components:
type- the directive kindvalue- the directive payload
Represents a DLGP directive and its associated payload.
- Author:
- Clément Sipieter (INRIA) <clement@6pi.fr>
Directives are objects of the DLGP language that are parsed but are not facts, rules or queries.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumerates the supported DLGP directive kinds. -
Constructor Summary
ConstructorsConstructorDescriptionDirective(Directive.Type type, Object value) Creates a new directive with the given type and value -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()Returns the directive kind.value()Returns the directive payload.
-
Constructor Details
-
Directive
Creates a new directive with the given type and value- Parameters:
type- type of the directivevalue- value of the directive
-
-
Method Details
-
type
-
value
-
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. All components in this record class are compared withObjects::equals(Object,Object).
-