public class FunctionDeclaration
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<ArgumentConverter> |
argumentConverters
List of argument converters that are used to convert the method parameter values.
|
protected java.lang.reflect.Method |
method
The method to call.
|
protected java.lang.Object |
object
The object instance to call the method on.
|
protected java.lang.String |
signature
The libsass function signature.
|
| Constructor and Description |
|---|
FunctionDeclaration(ImportStack importStack,
Context context,
java.lang.String signature,
java.lang.Object object,
java.lang.reflect.Method method,
java.util.List<ArgumentConverter> argumentConverters)
Create a new function declaration.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ArgumentConverter> |
getArgumentConverters()
Return the list of argument converters.
|
java.lang.reflect.Method |
getMethod()
Return the method to call.
|
java.lang.Object |
getObject()
Return the object instance to call the method on.
|
java.lang.String |
getSignature()
Return the libsass function signature.
|
SassValue |
invoke(java.util.List<?> arguments)
Invoke the method with the given list of arguments.
|
protected final java.lang.String signature
e.g. hello($name: "world")
protected final java.lang.Object object
protected final java.lang.reflect.Method method
protected final java.util.List<ArgumentConverter> argumentConverters
public FunctionDeclaration(ImportStack importStack, Context context, java.lang.String signature, java.lang.Object object, java.lang.reflect.Method method, java.util.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 java.lang.String getSignature()
public java.lang.Object getObject()
public java.lang.reflect.Method getMethod()
public java.util.List<ArgumentConverter> getArgumentConverters()
public SassValue invoke(java.util.List<?> arguments)
This will convert the libsass arguments into java value.
arguments - List of libsass arguments.