public class FunctionDeclaration extends Object
| Modifier and Type | Field and Description |
|---|---|
protected List<ArgumentConverter> |
argumentConverters
List of argument converters that are used to convert the method parameter values.
|
protected Method |
method
The method to call.
|
protected Object |
object
The object instance to call the method on.
|
protected String |
signature
The libsass function signature.
|
| Constructor and Description |
|---|
FunctionDeclaration(ImportStack importStack,
Context context,
String signature,
Object object,
Method method,
List<ArgumentConverter> argumentConverters)
Create a new function declaration.
|
| Modifier and Type | Method and Description |
|---|---|
List<ArgumentConverter> |
getArgumentConverters()
Return the list of argument converters.
|
Method |
getMethod()
Return the method to call.
|
Object |
getObject()
Return the object instance to call the method on.
|
String |
getSignature()
Return the libsass function signature.
|
SassValue |
invoke(List<?> arguments)
Invoke the method with the given list of arguments.
|
protected final String signature
e.g. hello($name: "world")
protected final Object object
protected final Method method
protected final List<ArgumentConverter> argumentConverters
public FunctionDeclaration(ImportStack importStack, Context context, String signature, Object object, Method method, List<ArgumentConverter> argumentConverters)
importStack - The import stack.context - The context.signature - The libsass function signature.object - The object instance to call the method on.method - The method to call.argumentConverters - List of argument converters.public String getSignature()
public Object getObject()
public Method getMethod()
public List<ArgumentConverter> getArgumentConverters()
Copyright © 2016 bit3. All rights reserved.