org.eclipse.xtend.backend.functions
Class SourceDefinedFunction

java.lang.Object
  extended by org.eclipse.xtend.backend.functions.AbstractFunction
      extended by org.eclipse.xtend.backend.functions.SourceDefinedFunction
All Implemented Interfaces:
Function

public final class SourceDefinedFunction
extends AbstractFunction

Author:
Arno Haase (http://www.haase-consulting.com), André Arnold

Field Summary
 
Fields inherited from class org.eclipse.xtend.backend.functions.AbstractFunction
_returnType
 
Constructor Summary
SourceDefinedFunction(QualifiedName name, java.util.List<java.lang.String> paramNames, java.util.List<BackendType> paramTypes, BackendType returnType, ExpressionBase def, boolean cached, ExpressionBase guard)
           
 
Method Summary
 ExpressionBase getDefExpression()
           
 QualifiedName getName()
           
 java.util.List<java.lang.String> getParamNames()
           
 java.lang.Object invoke(ExecutionContext ctx, java.lang.Object[] params)
          this method is permitted to modify the param array that is passed in
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.xtend.backend.functions.AbstractFunction
getFunctionDefContext, getGuard, getParameterTypes, getReturnType, isCached, setFunctionDefContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourceDefinedFunction

public SourceDefinedFunction(QualifiedName name,
                             java.util.List<java.lang.String> paramNames,
                             java.util.List<BackendType> paramTypes,
                             BackendType returnType,
                             ExpressionBase def,
                             boolean cached,
                             ExpressionBase guard)
Method Detail

invoke

public java.lang.Object invoke(ExecutionContext ctx,
                               java.lang.Object[] params)
Description copied from interface: Function
this method is permitted to modify the param array that is passed in


getName

public QualifiedName getName()

getParamNames

public java.util.List<java.lang.String> getParamNames()

getDefExpression

public ExpressionBase getDefExpression()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object