net.forthecrown.grenadier.annotations.tree.ArgumentMapperTree 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;
public interface ArgumentMapperTree extends Tree {
Name argumentName();
record MemberMapper(int tokenStart, Name argumentName, MemberChainTree ref)
implements ArgumentMapperTree
{
@Override
public R accept(TreeVisitor visitor, C context) {
return visitor.visitMemberMapper(this, context);
}
}
record VariableMapper(int tokenStart, Name argumentName, String variable)
implements ArgumentMapperTree, VariableHolder
{
@Override
public R accept(TreeVisitor visitor, C context) {
return visitor.visitVariableMapper(this, context);
}
}
record ResultMemberMapper(int tokenStart, Name argumentName, MemberChainTree ref)
implements ArgumentMapperTree
{
@Override
public R accept(TreeVisitor visitor, C context) {
return visitor.visitResultMemberMapper(this, context);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy