Class HostFunctionFactory
- java.lang.Object
-
- de.larsgrefer.sass.embedded.functions.HostFunctionFactory
-
public final class HostFunctionFactory extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<HostFunction>
allSassFunctions(Class<?> clazz)
static <T> List<HostFunction>
allSassFunctions(Class<T> clazz, T object)
static <T> List<HostFunction>
allSassFunctions(T object)
static <T,U>
HostFunctionofLambda(String name, Class<T> arg0Type, Class<U> arg1Type, BiFunction<T,U,?> lambda)
static <T> HostFunction
ofLambda(String name, Class<T> argType, Function<T,?> lambda)
static HostFunction
ofLambda(String name, Callable<?> lambda)
static HostFunction
ofMethod(Method method)
static HostFunction
ofMethod(Method method, Object targetObject)
-
-
-
Method Detail
-
allSassFunctions
public static <T> List<HostFunction> allSassFunctions(@Nonnull T object)
-
allSassFunctions
public static List<HostFunction> allSassFunctions(@Nonnull Class<?> clazz)
-
allSassFunctions
public static <T> List<HostFunction> allSassFunctions(@Nonnull Class<T> clazz, @Nullable T object)
-
ofMethod
public static HostFunction ofMethod(Method method)
-
ofMethod
public static HostFunction ofMethod(@Nonnull Method method, @Nullable Object targetObject)
-
ofLambda
public static HostFunction ofLambda(String name, Callable<?> lambda)
-
ofLambda
public static <T> HostFunction ofLambda(String name, Class<T> argType, Function<T,?> lambda)
-
ofLambda
public static <T,U> HostFunction ofLambda(String name, Class<T> arg0Type, Class<U> arg1Type, BiFunction<T,U,?> lambda)
-
-