2010-05-28 01:50:50 +05:30
|
|
|
package net.abhinavsarkar.spelhelper;
|
|
|
|
|
|
|
|
public final class Functions {
|
|
|
|
|
|
|
|
public static String test(String str) {
|
|
|
|
return str;
|
|
|
|
}
|
|
|
|
|
2010-05-28 13:24:11 +05:30
|
|
|
static String testNonPublic(String str) {
|
|
|
|
return str;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String testNonStatic(String str) {
|
|
|
|
return str;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void testVoid(String str) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static String testNoArg() {
|
|
|
|
return "a";
|
|
|
|
}
|
|
|
|
|
|
|
|
public static String testContext(String str) {
|
|
|
|
if (SpelHelper.getCurrentContext() == null)
|
|
|
|
throw new AssertionError();
|
|
|
|
return str;
|
|
|
|
}
|
|
|
|
|
2010-05-28 01:50:50 +05:30
|
|
|
@Override
|
|
|
|
public boolean equals(Object o) {
|
|
|
|
return o instanceof Functions;
|
|
|
|
}
|
|
|
|
}
|