anvil.script
Interface CompilableFunction

All Superinterfaces:
Function, Type
All Known Subinterfaces:
ConstructorType, MethodType
All Known Implementing Classes:
ConstructorBase, ConstructorStatement, ConstructorTree, FunctionBase, FunctionStatement, InterfaceMethodBase, MethodBase, MethodStatement, ParameterTree

public interface CompilableFunction
extends Function

interface CompilableFunction


Field Summary
static java.lang.String[] CLASSES
           
static int PARAMETER_ANY
           
static int PARAMETER_ANYLIST
           
static int PARAMETER_ARRAY
           
static int PARAMETER_BOOLEAN
           
static int PARAMETER_CONTEXT
           
static int PARAMETER_DOUBLE
           
static int PARAMETER_INT
           
static int PARAMETER_LIST
           
static int PARAMETER_LONG
           
static int PARAMETER_OBJECT
           
static int PARAMETER_REST
           
static int PARAMETER_STRING
           
static java.lang.String[] SIGNATURES
           
 
Fields inherited from interface anvil.script.Type
CLASS, CONSTANT_VARIABLE, CONSTRUCTOR, FUNCTION, FUNCTION_PARAMETER, GLOBAL_NAMESPACE, IMPORT, INTERFACE, INTERFACE_METHOD, LOCAL_VARIABLE, MEMBER_VARIABLE, METHOD, MODULE, NAMESPACE, SCOPE0, STATIC_VARIABLE, SYSTEM_NAMESPACE, TYPE_NAMES
 
Method Summary
 Any getAttribute(java.lang.String name)
           
 FunctionDispatcher getDispatcher(Context context)
           
 int getMinimumParameterCount()
           
 int getParameterCount()
           
 Any getParameterDefault(int index)
           
 Doc getParameterDoc(int index)
           
 java.lang.String getParameterName(int index)
           
 int getParameterType(int index)
           
 boolean isInnerFunction()
           
 
Methods inherited from interface anvil.script.Function
execute, execute, execute, execute, execute, execute, execute
 
Methods inherited from interface anvil.script.Type
getDocument, getName, getParent, getParents, getQualifiedName, getType, getTypeRef, isPrivate
 

Field Detail

PARAMETER_CONTEXT

public static final int PARAMETER_CONTEXT
See Also:
Constant Field Values

PARAMETER_ANY

public static final int PARAMETER_ANY
See Also:
Constant Field Values

PARAMETER_STRING

public static final int PARAMETER_STRING
See Also:
Constant Field Values

PARAMETER_OBJECT

public static final int PARAMETER_OBJECT
See Also:
Constant Field Values

PARAMETER_DOUBLE

public static final int PARAMETER_DOUBLE
See Also:
Constant Field Values

PARAMETER_INT

public static final int PARAMETER_INT
See Also:
Constant Field Values

PARAMETER_LONG

public static final int PARAMETER_LONG
See Also:
Constant Field Values

PARAMETER_BOOLEAN

public static final int PARAMETER_BOOLEAN
See Also:
Constant Field Values

PARAMETER_ARRAY

public static final int PARAMETER_ARRAY
See Also:
Constant Field Values

PARAMETER_ANYLIST

public static final int PARAMETER_ANYLIST
See Also:
Constant Field Values

PARAMETER_LIST

public static final int PARAMETER_LIST
See Also:
Constant Field Values

PARAMETER_REST

public static final int PARAMETER_REST
See Also:
Constant Field Values

CLASSES

public static final java.lang.String[] CLASSES

SIGNATURES

public static final java.lang.String[] SIGNATURES
Method Detail

getMinimumParameterCount

public int getMinimumParameterCount()

getParameterCount

public int getParameterCount()

getParameterType

public int getParameterType(int index)

getParameterName

public java.lang.String getParameterName(int index)

getParameterDefault

public Any getParameterDefault(int index)

getParameterDoc

public Doc getParameterDoc(int index)

getAttribute

public Any getAttribute(java.lang.String name)

isInnerFunction

public boolean isInnerFunction()

getDispatcher

public FunctionDispatcher getDispatcher(Context context)