All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.forthecrown.grenadier.annotations.tree.ArgumentMapperTree Maven / Gradle / Ivy

There is a newer version: 1.3.3
Show newest version
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