Record Class ASTMarkerVisitor

java.lang.Object
java.lang.Record
com.intellij.psi.builder.ASTMarkerVisitor

public record ASTMarkerVisitor(@NotNull FleetPsiParser psiParser, @NotNull ASTMarkers<?> root, @NotNull TokenSet whitespaces, @NotNull TokenSet comments, @NotNull ArrayTokenSequence tokens, @NotNull String text) extends Record
  • Constructor Details

    • ASTMarkerVisitor

      public ASTMarkerVisitor(@NotNull @NotNull FleetPsiParser psiParser, @NotNull @NotNull ASTMarkers<?> root, @NotNull @NotNull TokenSet whitespaces, @NotNull @NotNull TokenSet comments, @NotNull @NotNull ArrayTokenSequence tokens, @NotNull @NotNull String text)
      Creates an instance of a ASTMarkerVisitor record class.
      Parameters:
      psiParser - the value for the psiParser record component
      root - the value for the root record component
      whitespaces - the value for the whitespaces record component
      comments - the value for the comments record component
      tokens - the value for the tokens record component
      text - the value for the text record component
  • Method Details

    • visitTree

      public void visitTree(@NotNull @NotNull ASTMarkers<?> astMarkers, int startLexemeOffset, int currentMarker, int currentOffset, @NotNull @NotNull MarkerNode parent)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • psiParser

      @NotNull public @NotNull FleetPsiParser psiParser()
      Returns the value of the psiParser record component.
      Returns:
      the value of the psiParser record component
    • root

      @NotNull public @NotNull ASTMarkers<?> root()
      Returns the value of the root record component.
      Returns:
      the value of the root record component
    • whitespaces

      @NotNull public @NotNull TokenSet whitespaces()
      Returns the value of the whitespaces record component.
      Returns:
      the value of the whitespaces record component
    • comments

      @NotNull public @NotNull TokenSet comments()
      Returns the value of the comments record component.
      Returns:
      the value of the comments record component
    • tokens

      @NotNull public @NotNull ArrayTokenSequence tokens()
      Returns the value of the tokens record component.
      Returns:
      the value of the tokens record component
    • text

      @NotNull public @NotNull String text()
      Returns the value of the text record component.
      Returns:
      the value of the text record component