public class FunctionDeclaration extends Object
| Modifier and Type | Field and Description |
|---|---|
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.
|
protected Class<?>[] |
types
List of all parameter types.
|
| Constructor and Description |
|---|
FunctionDeclaration(String signature,
Object object,
Method method,
Class<?>[] types)
Create a new function declaration.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
Class<?>[] |
getTypes()
Return the list of all parameter types.
|
Object |
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 Class<?>[] types
public FunctionDeclaration(String signature, Object object, Method method, Class<?>[] types)
signature - The libsass function signature.object - The object instance to call the method on.method - The method to call.types - List of all parameter types.public String getSignature()
public Object getObject()
public Method getMethod()
public Class<?>[] getTypes()
Copyright © 2015 bit3. All rights reserved.