Record Class GroovyAutocompleteProvider
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.client.imgui.text.preset.groovy.GroovyAutocompleteProvider
- All Implemented Interfaces:
IAutocompleteProvider
public record GroovyAutocompleteProvider(GroovyColorizer colorizer)
extends Record
implements IAutocompleteProvider
-
Constructor Summary
ConstructorsConstructorDescriptionGroovyAutocompleteProvider(GroovyColorizer colorizer) Creates an instance of aGroovyAutocompleteProviderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecolorizerrecord component.final booleanIndicates whether some other object is "equal to" this one.getCandidates(String prefix, List<List<EditorGlyph>> lines, EditorCoordinates cursor) final inthashCode()Returns a hash code value for this object.static AutocompleteItembooleanshouldSuppress(String prefix, List<List<EditorGlyph>> lines, EditorCoordinates cursor) final StringtoString()Returns a string representation of this record class.Methods inherited from interface IAutocompleteProvider
appendParens, minPrefixLength
-
Constructor Details
-
GroovyAutocompleteProvider
Creates an instance of aGroovyAutocompleteProviderrecord class.- Parameters:
colorizer- the value for thecolorizerrecord component
-
-
Method Details
-
item
-
shouldSuppress
public boolean shouldSuppress(String prefix, List<List<EditorGlyph>> lines, EditorCoordinates cursor) - Specified by:
shouldSuppressin interfaceIAutocompleteProvider
-
getCandidates
public List<AutocompleteItem> getCandidates(String prefix, List<List<EditorGlyph>> lines, EditorCoordinates cursor) - Specified by:
getCandidatesin interfaceIAutocompleteProvider
-
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). -
colorizer
Returns the value of thecolorizerrecord component.- Returns:
- the value of the
colorizerrecord component
-