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 Details

  • 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.