org.eclipse.xtend.backend.types.java
Class JavaOperation

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

public final class JavaOperation
extends AbstractFunction

This class defines an operation defined as a method of a Java class, Java Beans style. The object on which the method is called is passed in as the first parameter of the function.

Since:
1.4
Author:
Arno Haase (http://www.haase-consulting.com), André Arnold - Made public API

Field Summary
 
Fields inherited from class org.eclipse.xtend.backend.functions.AbstractFunction
_returnType
 
Constructor Summary
JavaOperation(java.lang.reflect.Method mtd, java.util.List<BackendType> parameterTypes, BackendType returnType, ExpressionBase guard)
           
 
Method Summary
 java.lang.Object invoke(ExecutionContext ctx, java.lang.Object[] params)
          this method is permitted to modify the param array that is passed in
 
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, toString, wait, wait, wait
 

Constructor Detail

JavaOperation

public JavaOperation(java.lang.reflect.Method mtd,
                     java.util.List<BackendType> parameterTypes,
                     BackendType returnType,
                     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