org.eclipse.xtend.backend.common
Interface Function

All Known Implementing Classes:
AbstractClosure, AbstractFunction, BuiltInOperation, Closure, JavaDefinedFunction, JavaOperation, SourceDefinedFunction

public interface Function

Author:
Arno Haase (http://www.haase-consulting.com)

Method Summary
 FunctionDefContext getFunctionDefContext()
           
 ExpressionBase getGuard()
          returns the expression that guards this function - or null, if there is no guard.
 java.util.List<? extends BackendType> getParameterTypes()
           
 BackendType getReturnType()
           
 java.lang.Object invoke(ExecutionContext ctx, java.lang.Object[] params)
          this method is permitted to modify the param array that is passed in
 boolean isCached()
           
 void setFunctionDefContext(FunctionDefContext fdc)
           
 

Method Detail

getParameterTypes

java.util.List<? extends BackendType> getParameterTypes()

invoke

java.lang.Object invoke(ExecutionContext ctx,
                        java.lang.Object[] params)
this method is permitted to modify the param array that is passed in


isCached

boolean isCached()

getGuard

ExpressionBase getGuard()
returns the expression that guards this function - or null, if there is no guard.


getReturnType

BackendType getReturnType()

getFunctionDefContext

FunctionDefContext getFunctionDefContext()

setFunctionDefContext

void setFunctionDefContext(FunctionDefContext fdc)