Package org.sonar.java.checks.helpers
Class MethodTreeUtils
- java.lang.Object
-
- org.sonar.java.checks.helpers.MethodTreeUtils
-
public final class MethodTreeUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMethodTreeUtils.MethodInvocationCollector
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Optional<MethodInvocationTree>consecutiveMethodInvocation(Tree tree)static booleanisEqualsMethod(MethodTree m)static booleanisHashCodeMethod(MethodTree m)static booleanisMainMethod(MethodTree m)static Optional<MethodInvocationTree>subsequentMethodInvocation(Tree tree, MethodMatchers methodMatchers)
-
-
-
Method Detail
-
isMainMethod
public static boolean isMainMethod(MethodTree m)
-
isEqualsMethod
public static boolean isEqualsMethod(MethodTree m)
-
isHashCodeMethod
public static boolean isHashCodeMethod(MethodTree m)
-
consecutiveMethodInvocation
public static Optional<MethodInvocationTree> consecutiveMethodInvocation(Tree tree)
-
subsequentMethodInvocation
public static Optional<MethodInvocationTree> subsequentMethodInvocation(Tree tree, MethodMatchers methodMatchers)
-
-