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 intoFunctionWrapper
s.
-
-
Constructor Summary
Constructors Constructor Description FunctionWrapperFactory(FunctionArgumentSignatureFactory functionArgumentSignatureFactory)
Create a new factory.
-
Method Summary
All Methods Instance Methods Concrete Methods 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.FunctionDeclaration
createDeclaration(ImportStack importStack, Context context, java.lang.Object object, java.lang.reflect.Method method)
Create a function declaration from an object method.
-
-
-
Constructor Detail
-
FunctionWrapperFactory
public FunctionWrapperFactory(FunctionArgumentSignatureFactory functionArgumentSignatureFactory)
Create a new factory.
-
-
Method Detail
-
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.
-
-