
io.bit3.jsass.function.arguments.converter.LastImportArgumentConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vue-gwt-processors Show documentation
Show all versions of vue-gwt-processors Show documentation
Annotation Processors for Vue GWT
The newest version!
package io.bit3.jsass.function.arguments.converter;
import io.bit3.jsass.context.Context;
import io.bit3.jsass.context.ImportStack;
import io.bit3.jsass.function.FunctionArgumentSignature;
import io.bit3.jsass.function.FunctionArgumentSignatureFactory;
import java.lang.reflect.Method;
import java.lang.reflect.Parameter;
import java.util.LinkedList;
import java.util.List;
/**
* Inject the current import as argument.
*/
public class LastImportArgumentConverter implements ArgumentConverter {
@Override
public Object convert(
List> remainingArguments, ImportStack importStack, Context context
) {
return importStack.peek();
}
@Override
public List argumentSignatures(
Object object, Method method, Parameter parameter, FunctionArgumentSignatureFactory factory
) {
return new LinkedList<>();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy