Uses of Class
org.sonar.java.matcher.TreeMatcher
Packages that use TreeMatcher
-
Uses of TreeMatcher in org.sonar.java.matcher
Methods in org.sonar.java.matcher that return TreeMatcherModifier and TypeMethodDescriptionTreeMatcher.and(TreeMatcher<T> other) static <U extends Tree>
TreeMatcher<U> TreeMatcher.any()static TreeMatcher<ExpressionTree> TreeMatcher.calls(MethodMatchers methodMatchers) static TreeMatcher<ExpressionTree> TreeMatcher.calls(MethodMatchers methodMatchers, TreeMatcher<MethodInvocationTree> methodInvocationMatcher) static TreeMatcher<StatementTree> TreeMatcher.forEachStatement(TreeMatcher<ForEachStatement> forEachMatcher) static TreeMatcher<Tree> TreeMatcher.hasSize(int size) static TreeMatcher<MethodInvocationTree> TreeMatcher.invokedOn(TreeMatcher<ExpressionTree> expressionMatcher) static TreeMatcher<ExpressionTree> TreeMatcher.isCall(TreeMatcher<MethodInvocationTree> methodInvocationMatcher) static TreeMatcher<Tree> TreeMatcher.isExpression(TreeMatcher<ExpressionTree> expressionMatcher) static TreeMatcher<ExpressionTree> TreeMatcher.isIdentifier(String name) static TreeMatcher<ExpressionTree> TreeMatcher.isIdentifier(Symbol symbol) static TreeMatcher<ExpressionTree> TreeMatcher.isIdentifier(IdentifierTree identifier) static TreeMatcher<StatementTree> TreeMatcher.isInvocation(TreeMatcher<MethodInvocationTree> methodInvocationMatcher) static TreeMatcher<StatementTree> TreeMatcher.isInvocationOf(MethodMatchers methodMatchers) static TreeMatcher<StatementTree> TreeMatcher.isInvocationOf(MethodMatchers methodMatchers, TreeMatcher<MethodInvocationTree> methodInvocationMatcher) static TreeMatcher<ExpressionTree> TreeMatcher.isLambdaExpression(TreeMatcher<LambdaExpressionTree> lambdaMatcher) static <U extends Tree>
TreeMatcher<U> TreeMatcher.or(TreeMatcher<T> other) static <T extends Tree>
TreeMatcher<T> TreeMatcher.recursive(UnaryOperator<TreeMatcher<T>> treeMatcherMaker) Method to allow defining a matcher that refers to itself.static TreeMatcher<Tree> TreeMatcher.statementAt(int index, TreeMatcher<StatementTree> statementMatcher) static TreeMatcher<MethodInvocationTree> TreeMatcher.withArgument(int index, TreeMatcher<ExpressionTree> expressionMatcher) static TreeMatcher<LambdaExpressionTree> TreeMatcher.withBody(TreeMatcher<Tree> bodyMatcher) static TreeMatcher<ForEachStatement> TreeMatcher.withExpression(TreeMatcher<ExpressionTree> expressionMatcher) Methods in org.sonar.java.matcher with parameters of type TreeMatcherModifier and TypeMethodDescriptionTreeMatcher.and(TreeMatcher<T> other) static TreeMatcher<ExpressionTree> TreeMatcher.calls(MethodMatchers methodMatchers, TreeMatcher<MethodInvocationTree> methodInvocationMatcher) static TreeMatcher<StatementTree> TreeMatcher.forEachStatement(TreeMatcher<ForEachStatement> forEachMatcher) static TreeMatcher<MethodInvocationTree> TreeMatcher.invokedOn(TreeMatcher<ExpressionTree> expressionMatcher) static TreeMatcher<ExpressionTree> TreeMatcher.isCall(TreeMatcher<MethodInvocationTree> methodInvocationMatcher) static TreeMatcher<Tree> TreeMatcher.isExpression(TreeMatcher<ExpressionTree> expressionMatcher) static TreeMatcher<StatementTree> TreeMatcher.isInvocation(TreeMatcher<MethodInvocationTree> methodInvocationMatcher) static TreeMatcher<StatementTree> TreeMatcher.isInvocationOf(MethodMatchers methodMatchers, TreeMatcher<MethodInvocationTree> methodInvocationMatcher) static TreeMatcher<ExpressionTree> TreeMatcher.isLambdaExpression(TreeMatcher<LambdaExpressionTree> lambdaMatcher) TreeMatcher.or(TreeMatcher<T> other) static TreeMatcher<Tree> TreeMatcher.statementAt(int index, TreeMatcher<StatementTree> statementMatcher) static TreeMatcher<MethodInvocationTree> TreeMatcher.withArgument(int index, TreeMatcher<ExpressionTree> expressionMatcher) static TreeMatcher<LambdaExpressionTree> TreeMatcher.withBody(TreeMatcher<Tree> bodyMatcher) static TreeMatcher<ForEachStatement> TreeMatcher.withExpression(TreeMatcher<ExpressionTree> expressionMatcher) Method parameters in org.sonar.java.matcher with type arguments of type TreeMatcherModifier and TypeMethodDescriptionstatic <T extends Tree>
TreeMatcher<T> TreeMatcher.recursive(UnaryOperator<TreeMatcher<T>> treeMatcherMaker) Method to allow defining a matcher that refers to itself.