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

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

There is a newer version: 1.3.3
Show newest version
package net.forthecrown.grenadier.annotations.tree;

import org.jetbrains.annotations.ApiStatus.Internal;

@Internal
public interface Name extends Tree {

  @Internal
  record DirectName(int tokenStart, String value) implements Name {

    @Override
    public  R accept(TreeVisitor visitor, C context) {
      return visitor.visitDirectName(this, context);
    }
  }

  record FieldReferenceName(int tokenStart, String fieldName) implements Name {

    @Override
    public  R accept(TreeVisitor visitor, C context) {
      return visitor.visitFieldName(this, context);
    }
  }

  @Internal
  record VariableName(int tokenStart, String variable)
      implements Name, VariableHolder
  {

    @Override
    public  R accept(TreeVisitor visitor, C context) {
      return visitor.visitVariableName(this, context);
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy