org.eclipse.xtend.backend.expr
Class InitClosureExpression

java.lang.Object
  extended by org.eclipse.xtend.backend.common.ExpressionBase
      extended by org.eclipse.xtend.backend.expr.InitClosureExpression

public final class InitClosureExpression
extends ExpressionBase

This expression creates an initialized closure. A closure needs to be initialized at runtime because it contains a snapshot of the local variables that are visible during its creation

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

Field Summary
 
Fields inherited from class org.eclipse.xtend.backend.common.ExpressionBase
_log
 
Constructor Summary
InitClosureExpression(java.util.List<java.lang.String> paramNames, java.util.List<? extends BackendType> paramTypes, ExpressionBase def, SourcePos sourcePos)
           
 
Method Summary
protected  java.lang.Object evaluateInternal(ExecutionContext ctx)
           
 ExpressionBase getDefExpression()
           
 java.util.List<java.lang.String> getParamNames()
           
 java.util.List<? extends BackendType> getParamTypes()
           
 
Methods inherited from class org.eclipse.xtend.backend.common.ExpressionBase
evaluate, getListeners, getPos, registerExecutionListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitClosureExpression

public InitClosureExpression(java.util.List<java.lang.String> paramNames,
                             java.util.List<? extends BackendType> paramTypes,
                             ExpressionBase def,
                             SourcePos sourcePos)
Method Detail

getParamNames

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

getParamTypes

public java.util.List<? extends BackendType> getParamTypes()

getDefExpression

public ExpressionBase getDefExpression()

evaluateInternal

protected java.lang.Object evaluateInternal(ExecutionContext ctx)
Specified by:
evaluateInternal in class ExpressionBase