Record Class FunctionReference.Argument<T>
java.lang.Object
java.lang.Record
org.skriptlang.skript.common.function.FunctionReference.Argument<T>
- Record Components:
type- The type of the argument.name- The name of the argument, possibly null.value- The value of the argument.raw- The raw full string of this argument.
- Enclosing class:
FunctionReference<T>
public static record FunctionReference.Argument<T>(FunctionReference.ArgumentType type, String name, T value, @Nullable String raw)
extends Record
An argument.
-
Constructor Summary
ConstructorsConstructorDescriptionArgument(FunctionReference.ArgumentType type, String name, T value) Secondary constructor where raw is null.Argument(FunctionReference.ArgumentType type, String name, T value, @Nullable String raw) Creates an instance of aArgumentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.@Nullable Stringraw()Returns the value of therawrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
Argument
Secondary constructor where raw is null.- Parameters:
type- The type of the argument.name- The name of the argument, possibly null.value- The value of the argument.
-
Argument
public Argument(FunctionReference.ArgumentType type, String name, T value, @Nullable @Nullable String raw) Creates an instance of aArgumentrecord class.
-
-
Method Details
-
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). -
hashCode
-
toString
-
type
-
name
-
value
-
raw
-