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