Record Class MethodBuildContext
java.lang.Object
java.lang.Record
io.github.kaktushose.jdac.definitions.interactions.MethodBuildContext
@Internal
public record MethodBuildContext(Validators validators, LocalizationFunction localizationFunction, I18n i18n, Interaction interaction, Set<String> permissions, ClassDescription clazz, MethodDescription method, Collection<AutoCompleteDefinition> autoCompleteDefinitions, CommandDefinition.CommandConfig globalCommandConfig)
extends Record
Holds all objects needed to create an
InteractionDefinition.-
Constructor Summary
ConstructorsConstructorDescriptionMethodBuildContext(Validators validators, LocalizationFunction localizationFunction, I18n i18n, Interaction interaction, Set<String> permissions, ClassDescription clazz, MethodDescription method, Collection<AutoCompleteDefinition> autoCompleteDefinitions, CommandDefinition.CommandConfig globalCommandConfig) Creates an instance of aMethodBuildContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theautoCompleteDefinitionsrecord component.clazz()Returns the value of theclazzrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theglobalCommandConfigrecord component.final inthashCode()Returns a hash code value for this object.i18n()Returns the value of thei18nrecord component.Returns the value of theinteractionrecord component.Returns the value of thelocalizationFunctionrecord component.method()Returns the value of themethodrecord component.Returns the value of thepermissionsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalidatorsrecord component.
-
Constructor Details
-
MethodBuildContext
public MethodBuildContext(Validators validators, LocalizationFunction localizationFunction, I18n i18n, Interaction interaction, Set<String> permissions, ClassDescription clazz, MethodDescription method, Collection<AutoCompleteDefinition> autoCompleteDefinitions, CommandDefinition.CommandConfig globalCommandConfig) Creates an instance of aMethodBuildContextrecord class.- Parameters:
validators- the value for thevalidatorsrecord componentlocalizationFunction- the value for thelocalizationFunctionrecord componenti18n- the value for thei18nrecord componentinteraction- the value for theinteractionrecord componentpermissions- the value for thepermissionsrecord componentclazz- the value for theclazzrecord componentmethod- the value for themethodrecord componentautoCompleteDefinitions- the value for theautoCompleteDefinitionsrecord componentglobalCommandConfig- the value for theglobalCommandConfigrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
validators
Returns the value of thevalidatorsrecord component.- Returns:
- the value of the
validatorsrecord component
-
localizationFunction
Returns the value of thelocalizationFunctionrecord component.- Returns:
- the value of the
localizationFunctionrecord component
-
i18n
Returns the value of thei18nrecord component.- Returns:
- the value of the
i18nrecord component
-
interaction
Returns the value of theinteractionrecord component.- Returns:
- the value of the
interactionrecord component
-
permissions
-
clazz
Returns the value of theclazzrecord component.- Returns:
- the value of the
clazzrecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
autoCompleteDefinitions
Returns the value of theautoCompleteDefinitionsrecord component.- Returns:
- the value of the
autoCompleteDefinitionsrecord component
-
globalCommandConfig
Returns the value of theglobalCommandConfigrecord component.- Returns:
- the value of the
globalCommandConfigrecord component
-