Declaration which can be invoked, and may have parameters. Classes and functions are functional declarations.
Note that multiple-parameter lists are not reified at runtime, so if you have a function declaration like this:
Integer add(Integer a)(Integer b) => a + b;
It will only have a single parameter list at runtime (the first), and its return
type will be Callable<Integer,[Integer]>
.
no type hierarchy
no supertypes hierarchy
Attributes | |
annotation | Source Codeshared formal Boolean annotation True if the current declaration is an annotation class or function. |
parameterDeclarations | Source Codeshared formal FunctionOrValueDeclaration[] parameterDeclarations The list of parameter declarations for this functional declaration. |
Inherited Attributes |
Attributes inherited from: Object |
Methods | |
getParameterDeclaration | Source Codeshared formal FunctionOrValueDeclaration? getParameterDeclaration(String name) Gets a parameter declaration by name. Returns |
Inherited Methods |
Methods inherited from: Object |