Record Class FunctionContext
java.lang.Object
java.lang.Record
io.github.syst3ms.skriptparser.structures.functions.FunctionContext
- All Implemented Interfaces:
TriggerContext
-
Field Summary
Fields inherited from interface TriggerContext
DUMMY -
Constructor Summary
ConstructorsConstructorDescriptionFunctionContext(Function<?> owningFunction) Creates an instance of aFunctionContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getName()final inthashCode()Returns a hash code value for this object.Function<?> Returns the value of theowningFunctionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FunctionContext
Creates an instance of aFunctionContextrecord class.- Parameters:
owningFunction- the value for theowningFunctionrecord component
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceTriggerContext
-
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). -
owningFunction
Returns the value of theowningFunctionrecord component.- Returns:
- the value of the
owningFunctionrecord component
-