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 Summary
ConstructorsConstructorDescriptionASTMarkerVisitor(@NotNull FleetPsiParser psiParser, @NotNull ASTMarkers<?> root, @NotNull TokenSet whitespaces, @NotNull TokenSet comments, @NotNull ArrayTokenSequence tokens, @NotNull String text) Creates an instance of aASTMarkerVisitorrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull TokenSetcomments()Returns the value of thecommentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull FleetPsiParserReturns the value of thepsiParserrecord component.@NotNull ASTMarkers<?>root()Returns the value of therootrecord component.@NotNull Stringtext()Returns the value of thetextrecord component.@NotNull ArrayTokenSequencetokens()Returns the value of thetokensrecord component.final StringtoString()Returns a string representation of this record class.voidvisitTree(@NotNull ASTMarkers<?> astMarkers, int startLexemeOffset, int currentMarker, int currentOffset, @NotNull MarkerNode parent) @NotNull TokenSetReturns the value of thewhitespacesrecord component.
-
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 aASTMarkerVisitorrecord class.- Parameters:
psiParser- the value for thepsiParserrecord componentroot- the value for therootrecord componentwhitespaces- the value for thewhitespacesrecord componentcomments- the value for thecommentsrecord componenttokens- the value for thetokensrecord componenttext- the value for thetextrecord component
-
-
Method Details
-
visitTree
public void visitTree(@NotNull @NotNull ASTMarkers<?> astMarkers, int startLexemeOffset, int currentMarker, int currentOffset, @NotNull @NotNull MarkerNode parent) -
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
psiParser
Returns the value of thepsiParserrecord component.- Returns:
- the value of the
psiParserrecord component
-
root
Returns the value of therootrecord component.- Returns:
- the value of the
rootrecord component
-
whitespaces
Returns the value of thewhitespacesrecord component.- Returns:
- the value of the
whitespacesrecord component
-
comments
Returns the value of thecommentsrecord component.- Returns:
- the value of the
commentsrecord component
-
tokens
Returns the value of thetokensrecord component.- Returns:
- the value of the
tokensrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-