Package org.openrewrite.java.format
Class TabsAndIndentsVisitor<P>
java.lang.Object
org.openrewrite.TreeVisitor<org.openrewrite.java.tree.J,P>
org.openrewrite.java.JavaVisitor<P>
org.openrewrite.java.JavaIsoVisitor<P>
org.openrewrite.java.format.TabsAndIndentsVisitor<P>
-
Field Summary
Fields inherited from class org.openrewrite.java.JavaVisitor
javadocVisitor -
Constructor Summary
ConstructorsConstructorDescriptionTabsAndIndentsVisitor(List<org.openrewrite.style.NamedStyles> styles, @Nullable org.openrewrite.Tree stopAfter) TabsAndIndentsVisitor(TabsAndIndentsStyle style, SpacesStyle spacesStyle, WrappingAndBracesStyle wrappingStyle) Deprecated.TabsAndIndentsVisitor(TabsAndIndentsStyle style, SpacesStyle spacesStyle, WrappingAndBracesStyle wrappingStyle, @Nullable org.openrewrite.Tree stopAfter) TabsAndIndentsVisitor(org.openrewrite.SourceFile sourceFile, @Nullable org.openrewrite.Tree stopAfter) -
Method Summary
Modifier and TypeMethodDescription@Nullable org.openrewrite.java.tree.J@Nullable org.openrewrite.java.tree.J@Nullable org.openrewrite.java.tree.J@Nullable org.openrewrite.java.tree.J<J2 extends org.openrewrite.java.tree.J>
@Nullable JContainer<J2> visitContainer(@Nullable JContainer<J2> container, JContainer.Location loc, P p) org.openrewrite.java.tree.J.EnumValuevisitEnumValue(org.openrewrite.java.tree.J.EnumValue enum_, P p) org.openrewrite.java.tree.J.ForEachLoop.ControlvisitForEachControl(org.openrewrite.java.tree.J.ForEachLoop.Control control, P p) org.openrewrite.java.tree.J.LiteralvisitLiteral(org.openrewrite.java.tree.J.Literal literal, P p) <T> @Nullable JRightPadded<T> visitRightPadded(@Nullable JRightPadded<T> right, JRightPadded.Location loc, P p) visitSpace(Space space, Space.Location loc, P p) Methods inherited from class org.openrewrite.java.JavaIsoVisitor
visitAnnotatedType, visitAnnotation, visitArrayAccess, visitArrayDimension, visitArrayType, visitAssert, visitAssignment, visitAssignmentOperation, visitBinary, visitBlock, visitBreak, visitCase, visitCatch, visitClassDeclaration, visitCompilationUnit, visitContinue, visitControlParentheses, visitDeconstructionPattern, visitDoWhileLoop, visitElse, visitEmpty, visitEnumValueSet, visitErroneous, visitExpression, visitFieldAccess, visitForControl, visitForEachLoop, visitForLoop, visitIdentifier, visitIf, visitImport, visitInstanceOf, visitIntersectionType, visitLabel, visitLambda, visitLambdaParameters, visitMemberReference, visitMethodDeclaration, visitMethodInvocation, visitModifier, visitMultiCatch, visitNewArray, visitNewClass, visitNullableType, visitPackage, visitParameterizedType, visitParentheses, visitParenthesizedTypeTree, visitPrimitive, visitReturn, visitStatement, visitSwitch, visitSwitchExpression, visitSynchronized, visitTernary, visitThrow, visitTry, visitTryResource, visitTypeCast, visitTypeParameter, visitTypeParameters, visitUnary, visitUnknown, visitUnknownSource, visitVariable, visitVariableDeclarations, visitWhileLoop, visitWildcard, visitYieldMethods inherited from class org.openrewrite.java.JavaVisitor
autoFormat, autoFormat, autoFormat, getJavadocVisitor, getLanguage, isAcceptable, isInSameNameScope, isInSameNameScope, maybeAddImport, maybeAddImport, maybeAddImport, maybeAddImport, maybeAddImport, maybeAddImport, maybeAutoFormat, maybeAutoFormat, maybeAutoFormat, maybeRemoveImport, maybeRemoveImport, service, visitLeftPadded, visitType, visitTypeNameMethods inherited from class org.openrewrite.TreeVisitor
adapt, collect, collect, defaultValue, doAfterVisit, getAfterVisit, getCursor, isAdaptableTo, noop, reduce, reduce, reduce, setCursor, stopAfterPreVisit, updateCursor, visit, visitAndCast, visitAndCast, visitMarker, visitMarkers, visitNonNull, visitNonNull, visitorTreeType
-
Constructor Details
-
TabsAndIndentsVisitor
public TabsAndIndentsVisitor(org.openrewrite.SourceFile sourceFile, @Nullable org.openrewrite.Tree stopAfter) -
TabsAndIndentsVisitor
public TabsAndIndentsVisitor(List<org.openrewrite.style.NamedStyles> styles, @Nullable org.openrewrite.Tree stopAfter) -
TabsAndIndentsVisitor
@Deprecated public TabsAndIndentsVisitor(TabsAndIndentsStyle style, SpacesStyle spacesStyle, WrappingAndBracesStyle wrappingStyle) Deprecated. -
TabsAndIndentsVisitor
public TabsAndIndentsVisitor(TabsAndIndentsStyle style, SpacesStyle spacesStyle, WrappingAndBracesStyle wrappingStyle, @Nullable org.openrewrite.Tree stopAfter)
-
-
Method Details
-
visit
public @Nullable org.openrewrite.java.tree.J visit(@Nullable org.openrewrite.Tree tree, P p, org.openrewrite.Cursor parent) - Overrides:
visitin classorg.openrewrite.TreeVisitor<org.openrewrite.java.tree.J,P>
-
preVisit
public @Nullable org.openrewrite.java.tree.J preVisit(@Nullable org.openrewrite.java.tree.J tree, P p) - Overrides:
preVisitin classorg.openrewrite.TreeVisitor<org.openrewrite.java.tree.J,P>
-
visitEnumValue
public org.openrewrite.java.tree.J.EnumValue visitEnumValue(org.openrewrite.java.tree.J.EnumValue enum_, P p) - Overrides:
visitEnumValuein classJavaIsoVisitor<P>
-
visitForEachControl
public org.openrewrite.java.tree.J.ForEachLoop.Control visitForEachControl(org.openrewrite.java.tree.J.ForEachLoop.Control control, P p) - Overrides:
visitForEachControlin classJavaIsoVisitor<P>
-
visitSpace
- Overrides:
visitSpacein classJavaVisitor<P>
-
visitRightPadded
public <T> @Nullable JRightPadded<T> visitRightPadded(@Nullable JRightPadded<T> right, JRightPadded.Location loc, P p) - Overrides:
visitRightPaddedin classJavaVisitor<P>
-
visitContainer
public <J2 extends org.openrewrite.java.tree.J> @Nullable JContainer<J2> visitContainer(@Nullable JContainer<J2> container, JContainer.Location loc, P p) - Overrides:
visitContainerin classJavaVisitor<P>
-
visitLiteral
public org.openrewrite.java.tree.J.Literal visitLiteral(org.openrewrite.java.tree.J.Literal literal, P p) - Overrides:
visitLiteralin classJavaIsoVisitor<P>
-
postVisit
- Overrides:
postVisitin classorg.openrewrite.TreeVisitor<org.openrewrite.java.tree.J,P>
-
visit
- Overrides:
visitin classorg.openrewrite.TreeVisitor<org.openrewrite.java.tree.J,P>
-