Package io.bit3.jsass.function
Class FunctionWrapperFactory
java.lang.Object
io.bit3.jsass.function.FunctionWrapperFactory
public class FunctionWrapperFactory
extends java.lang.Object
Factory that create libsass function callbacks and wrap them into
FunctionWrappers.-
Constructor Summary
Constructors Constructor Description FunctionWrapperFactory(FunctionArgumentSignatureFactory functionArgumentSignatureFactory)Create a new factory. -
Method Summary
Modifier and Type Method Description java.util.List<FunctionWrapper>compileFunctions(ImportStack importStack, Context context, java.lang.Object object)Compile methods from an object into libsass functions.java.util.List<FunctionWrapper>compileFunctions(ImportStack importStack, Context context, java.util.List<?> objects)Compile methods from all objects into libsass functions.FunctionDeclarationcreateDeclaration(ImportStack importStack, Context context, java.lang.Object object, java.lang.reflect.Method method)Create a function declaration from an object method.
-
Constructor Details
-
FunctionWrapperFactory
Create a new factory.
-
-
Method Details
-
compileFunctions
public java.util.List<FunctionWrapper> compileFunctions(ImportStack importStack, Context context, java.util.List<?> objects)Compile methods from all objects into libsass functions.- Parameters:
importStack- The import stack.objects- A list of "function provider" objects.- Returns:
- The newly created list of libsass callbacks.
-
compileFunctions
public java.util.List<FunctionWrapper> compileFunctions(ImportStack importStack, Context context, java.lang.Object object)Compile methods from an object into libsass functions.- Parameters:
importStack- The import stack.object- The "function provider" object.- Returns:
- The newly created list of libsass callbacks.
-
createDeclaration
public FunctionDeclaration createDeclaration(ImportStack importStack, Context context, java.lang.Object object, java.lang.reflect.Method method)Create a function declaration from an object method.- Parameters:
importStack- The import stack.object- The object.method- The method.- Returns:
- The newly created function declaration.
-