@Test public void test_has_function_name_unknown() { Tree nativeNode = new NativeTreeImpl(meta, new TypeNativeKind(), null); FunctionInvocationTree tree = new FunctionInvocationTreeImpl(meta, nativeNode, args); assertThat(hasFunctionCallNameIgnoreCase(tree, "function")).isFalse(); }
public static boolean hasFunctionCallNameIgnoreCase(FunctionInvocationTree tree, String name) { return getFunctionInvocationName(tree).filter(name::equalsIgnoreCase).isPresent(); }
FunctionUtils { public static boolean hasFunctionCallNameIgnoreCase(FunctionInvocationTree tree, String name) { return getFunctionInvocationName(tree).filter(name::equalsIgnoreCase).isPresent(); } }
FunctionUtils { public static boolean hasFunctionCallNameIgnoreCase(FunctionInvocationTree tree, String name) { return getFunctionInvocationName(tree).filter(name::equalsIgnoreCase).isPresent(); } private  FunctionUtils(); }
FunctionUtils { public static boolean hasFunctionCallNameIgnoreCase(FunctionInvocationTree tree, String name) { return getFunctionInvocationName(tree).filter(name::equalsIgnoreCase).isPresent(); } 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 hasFunctionCallNameIgnoreCase(FunctionInvocationTree tree, String name) { return getFunctionInvocationName(tree).filter(name::equalsIgnoreCase).isPresent(); } 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);  }