Package org.openrewrite.checkstyle
Class StringLiteralEquality
- java.lang.Object
-
- org.openrewrite.AbstractSourceVisitor<T>
-
- org.openrewrite.AbstractRefactorVisitor<org.openrewrite.java.tree.J>
-
- org.openrewrite.java.JavaRefactorVisitor
-
- org.openrewrite.checkstyle.CheckstyleRefactorVisitor
-
- org.openrewrite.checkstyle.StringLiteralEquality
-
- All Implemented Interfaces:
org.openrewrite.java.JavaSourceVisitor<org.openrewrite.java.tree.J>,org.openrewrite.RefactorVisitor<org.openrewrite.java.tree.J>,org.openrewrite.SourceVisitor<org.openrewrite.java.tree.J>
public class StringLiteralEquality extends CheckstyleRefactorVisitor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openrewrite.checkstyle.CheckstyleRefactorVisitor
CheckstyleRefactorVisitor.Module
-
-
Constructor Summary
Constructors Constructor Description StringLiteralEquality()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisStringLiteral(org.openrewrite.java.tree.Expression expression)org.openrewrite.java.tree.JvisitBinary(org.openrewrite.java.tree.J.Binary binary)-
Methods inherited from class org.openrewrite.checkstyle.CheckstyleRefactorVisitor
configure, setBaseDir, setConfig, setConfigFile, setProperties, validate, visitCompilationUnit
-
Methods inherited from class org.openrewrite.java.JavaRefactorVisitor
addImport, addImport, maybeAddImport, maybeAddImport, maybeAddImport, maybeRemoveImport, maybeRemoveImport, maybeUnwrapParentheses, visitAnnotatedType, visitAnnotation, visitArrayAccess, visitArrayType, visitAssert, visitAssign, visitAssignOp, visitBlock, visitBreak, visitCase, visitCatch, visitClassDecl, visitContinue, visitDoWhileLoop, visitElse, visitEmpty, visitEnumValue, visitEnumValueSet, visitFieldAccess, visitFinally, visitForEachLoop, visitForLoop, visitIdentifier, visitIf, visitImport, visitInstanceOf, visitLabel, visitLambda, visitLiteral, visitMemberReference, visitMethod, visitMethodInvocation, visitMultiCatch, visitMultiVariable, visitNewArray, visitNewClass, visitPackage, visitParameterizedType, visitParentheses, visitPrimitive, visitReturn, visitStatement, visitSwitch, visitSynchronized, visitTernary, visitThrow, visitTry, visitTypeCast, visitTypeName, visitTypeParameter, visitTypeParameters, visitUnary, visitUnparsedSource, visitVariable, visitWhileLoop, visitWildcard
-
Methods inherited from class org.openrewrite.AbstractRefactorVisitor
andThen, andThen, next, refactor, refactor, refactor
-
Methods inherited from class org.openrewrite.AbstractSourceVisitor
getCursor, setCursoringOn, visit, visitAfter, visitAfter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openrewrite.java.JavaSourceVisitor
enclosingBlock, enclosingClass, enclosingCompilationUnit, enclosingMethod, isInSameNameScope, isInSameNameScope, visitExpression
-
-
-
-
Method Detail
-
visitBinary
public org.openrewrite.java.tree.J visitBinary(org.openrewrite.java.tree.J.Binary binary)
- Specified by:
visitBinaryin interfaceorg.openrewrite.java.JavaSourceVisitor<org.openrewrite.java.tree.J>- Overrides:
visitBinaryin classorg.openrewrite.java.JavaRefactorVisitor
-
isStringLiteral
public boolean isStringLiteral(org.openrewrite.java.tree.Expression expression)
-
-