test_class.file: web-framework/src/test/java/org/unidal/web/jsp/function/ObjectFunctionTest.java
test_class.identifier: ObjectFunctionTest
test_case.body: @Test
     public void testLength() {
        Assert.assertEquals(null, ObjectFunction.length(null));
        Assert.assertEquals(3, ObjectFunction.length("abc"));
        Assert.assertEquals(4, ObjectFunction.length(new Object[] { "abc", null, true, 3 }));
  
        // not recognized
        Assert.assertEquals(null, ObjectFunction.length(Arrays.<Object> asList("abc", null, true, 3)));
     }
test_case.class_method_signature: ObjectFunctionTest.testLength()
test_case.full_signature: @Test public void testLength()
test_case.identifier: testLength
test_case.invocations: assertEquals length assertEquals length assertEquals length assertEquals length asList
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testLength()
focal_class.file: web-framework/src/main/java/org/unidal/web/jsp/function/ObjectFunction.java
focal_class.identifier: ObjectFunction
focal_class.class_method_signature: ObjectFunction.length(Object obj)
focal_class.full_signature: @FunctionMeta(description = "Length of String, or array", example = "${w:length(obj)}") public static Object length(Object obj)
focal_class.identifier: length
focal_class.modifiers: @FunctionMeta(description = "Length of String, or array", example = "${w:length(obj)}") public static
focal_class.parameters: (Object obj)
focal_class.return: Object
focal_class.signature: Object length(Object obj)
focal_class.class_method_signature: ObjectFunction.size(Object obj)
focal_class.full_signature: @FunctionMeta(description = "size of colection, or map", example = "${w:size(obj)}") public static Object size(Object obj)
focal_class.identifier: size
focal_class.modifiers: @FunctionMeta(description = "size of colection, or map", example = "${w:size(obj)}") public static
focal_class.parameters: (Object obj)
focal_class.return: Object
focal_class.signature: Object size(Object obj)
focal_class.class_method_signature: ObjectFunction.in(Object values, Object value)
focal_class.full_signature: @FunctionMeta(description = "Check if the value is equal or is one of value in the given values.", example = "${w:in(values, value)}") @SuppressWarnings("unchecked") public static boolean in(Object values, Object value)
focal_class.identifier: in
focal_class.modifiers: @FunctionMeta(description = "Check if the value is equal or is one of value in the given values.", example = "${w:in(values, value)}") @SuppressWarnings("unchecked") public static
focal_class.parameters: (Object values, Object value)
focal_class.return: boolean
focal_class.signature: boolean in(Object values, Object value)
focal_method.body: @FunctionMeta(description = "Length of String, or array", example = "${w:length(obj)}")
     public static Object length(Object obj) {
        if (obj == null) {
           return null;
        } else if (obj instanceof CharSequence) {
           return ((CharSequence) obj).length();
        } else if (obj.getClass().isArray()) {
           return Array.getLength(obj);
        } else {
           try {
              return Reflects.forMethod().invokeMethod(obj, "getLength", (Object[]) null);
           } catch (Exception e) {
              return null;
           }
        }
     }
focal_method.class_method_signature: ObjectFunction.length(Object obj)
focal_method.full_signature: @FunctionMeta(description = "Length of String, or array", example = "${w:length(obj)}") public static Object length(Object obj)
focal_method.identifier: length
focal_method.invocations: length isArray getClass getLength invokeMethod forMethod
focal_method.modifiers: @FunctionMeta(description = "Length of String, or array", example = "${w:length(obj)}") public static
focal_method.parameters: (Object obj)
focal_method.return: Object
focal_method.signature: Object length(Object obj)