@Test public void test_has_function_full_name_method_select() { IdentifierTree memberA = new IdentifierTreeImpl(meta, "A"); IdentifierTree memberB = new IdentifierTreeImpl(meta, "B"); Tree methodSelectAB = new MemberSelectTreeImpl(meta, memberA, memberB); Tree methodSelect = new MemberSelectTreeImpl(meta, methodSelectAB, identifierTree); FunctionInvocationTree tree = new FunctionInvocationTreeImpl(meta, methodSelect, args); assertThat(hasFunctionCallFullNameIgnoreCase(tree)).isFalse(); assertThat(hasFunctionCallFullNameIgnoreCase(tree, "function")).isFalse(); assertThat(hasFunctionCallFullNameIgnoreCase(tree, "A")).isFalse(); assertThat(hasFunctionCallFullNameIgnoreCase(tree, "B")).isFalse(); assertThat(hasFunctionCallFullNameIgnoreCase(tree, "A", "B")).isFalse(); assertThat(hasFunctionCallFullNameIgnoreCase(tree, "A", "function")).isFalse(); assertThat(hasFunctionCallFullNameIgnoreCase(tree, "B", "function")).isFalse(); assertThat(hasFunctionCallFullNameIgnoreCase(tree, "A", "B", "function")).isTrue(); assertThat(hasFunctionCallFullNameIgnoreCase(tree, "A", "B", "function" , "C")).isFalse(); }
public static boolean hasFunctionCallFullNameIgnoreCase(FunctionInvocationTree tree, String... names) { return hasFunctionCallFullNameIgnoreCaseHelper(tree.memberSelect(), Arrays.asList(names)); }
FunctionUtils { public static boolean hasFunctionCallFullNameIgnoreCase(FunctionInvocationTree tree, String... names) { return hasFunctionCallFullNameIgnoreCaseHelper(tree.memberSelect(), Arrays.asList(names)); } }
FunctionUtils { public static boolean hasFunctionCallFullNameIgnoreCase(FunctionInvocationTree tree, String... names) { return hasFunctionCallFullNameIgnoreCaseHelper(tree.memberSelect(), Arrays.asList(names)); } private  FunctionUtils(); }
FunctionUtils { public static boolean hasFunctionCallFullNameIgnoreCase(FunctionInvocationTree tree, String... names) { return hasFunctionCallFullNameIgnoreCaseHelper(tree.memberSelect(), Arrays.asList(names)); } private  FunctionUtils(); static boolean isPrivateMethod(FunctionDeclarationTree method); static boolean isOverrideMethod(FunctionDeclarationTree method); static boolean hasModifierMethod(FunctionDeclarationTree method, ModifierTree.Kind kind); static boolean hasFunctionCallNameIgnoreCase(FunctionInvocationTree tree, String name); static boolean hasFunctionCallFullNameIgnoreCase(FunctionInvocationTree tree, String... names); }
FunctionUtils { public static boolean hasFunctionCallFullNameIgnoreCase(FunctionInvocationTree tree, String... names) { return hasFunctionCallFullNameIgnoreCaseHelper(tree.memberSelect(), Arrays.asList(names)); } private  FunctionUtils(); static boolean isPrivateMethod(FunctionDeclarationTree method); static boolean isOverrideMethod(FunctionDeclarationTree method); static boolean hasModifierMethod(FunctionDeclarationTree method, ModifierTree.Kind kind); static boolean hasFunctionCallNameIgnoreCase(FunctionInvocationTree tree, String name); static boolean hasFunctionCallFullNameIgnoreCase(FunctionInvocationTree tree, String... names);  }