io.bit3.jsass.function.arguments.factory.ContextArgumentConverterFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsass Show documentation
Show all versions of jsass Show documentation
SASS compiler using libsass.
package io.bit3.jsass.function.arguments.factory;
import io.bit3.jsass.context.Context;
import io.bit3.jsass.function.arguments.converter.ArgumentConverter;
import io.bit3.jsass.function.arguments.converter.ContextArgumentConverter;
import java.lang.reflect.Method;
import java.lang.reflect.Parameter;
public class ContextArgumentConverterFactory implements ArgumentConverterFactory {
@Override
public boolean canHandle(Class> targetType) {
return Context.class.isAssignableFrom(targetType);
}
@Override
public ArgumentConverter create(Object object, Method method, Parameter parameter) {
return new ContextArgumentConverter();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy