org.eclipse.xtend.backend.expr
Class InitClosureExpression
java.lang.Object
org.eclipse.xtend.backend.common.ExpressionBase
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)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InitClosureExpression
public InitClosureExpression(java.util.List<java.lang.String> paramNames,
java.util.List<? extends BackendType> paramTypes,
ExpressionBase def,
SourcePos sourcePos)
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