net.forthecrown.grenadier.annotations.tree.SuggestsTree Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grenadier-annotations Show documentation
Show all versions of grenadier-annotations Show documentation
Annotation-based command support for Grenadier
package net.forthecrown.grenadier.annotations.tree;
import org.jetbrains.annotations.ApiStatus.Internal;
@Internal
public interface SuggestsTree extends Tree {
record StringListSuggestions(int tokenStart, String[] suggestions)
implements SuggestsTree
{
@Override
public R accept(TreeVisitor visitor, C context) {
return visitor.visitStringSuggestions(this, context);
}
}
record MemberSuggestions(int tokenStart, MemberChainTree ref)
implements SuggestsTree
{
@Override
public R accept(TreeVisitor visitor, C context) {
return visitor.visitMemberSuggestions(this, context);
}
}
record VariableSuggestions(int tokenStart, String variable)
implements SuggestsTree, VariableHolder
{
@Override
public R accept(TreeVisitor visitor, C context) {
return visitor.visitVariableSuggests(this, context);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy