Class StreamAnyMatch
java.lang.Object
eu.solven.cleanthat.engine.java.refactorer.AJavaparserMutator
eu.solven.cleanthat.engine.java.refactorer.mutators.StreamAnyMatch
- All Implemented Interfaces:
IJavaparserMutator
,IMutator
,IMutatorExternalReferences
,IWalkingMutator<com.github.javaparser.ast.Node,
com.github.javaparser.ast.Node>
Turns 's.filter(p).findAny().isPresent()' into 's.anyMatch(predicate)'
- Author:
- Benoit Lacelle
-
Field Summary
Fields inherited from interface eu.solven.cleanthat.engine.java.refactorer.meta.IMutator
ID_NOOP, IS_PRODUCTION_READY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isDraft()
protected boolean
processNotRecursively
(com.github.javaparser.ast.Node node) Methods inherited from class eu.solven.cleanthat.engine.java.refactorer.AJavaparserMutator
getSimpleName, getWarnCount, isImportable, isImported, messageForIssueReporting, onMethodName, optResolved, optResolvedType, optResolvedType, replaceBy, replaceNode, scopeHasRequiredType, scopeHasRequiredType, tryReplace, walkAst
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.solven.cleanthat.engine.java.refactorer.meta.IMutator
getId, getIds, isJreOnly
Methods inherited from interface eu.solven.cleanthat.engine.java.refactorer.meta.IMutatorExternalReferences
checkstyleUrl, getCheckstyleId, getPmdId, getPmdIds, getSeeUrls, jsparrowUrl, pmdUrl, sonarUrl
Methods inherited from interface eu.solven.cleanthat.engine.java.refactorer.meta.IWalkingMutator
walkAstHasChanged
-
Constructor Details
-
StreamAnyMatch
public StreamAnyMatch()
-
-
Method Details
-
minimalJavaVersion
-
isDraft
public boolean isDraft() -
getCleanthatId
-
getSonarId
-
processNotRecursively
protected boolean processNotRecursively(com.github.javaparser.ast.Node node) - Overrides:
processNotRecursively
in classAJavaparserMutator
-