org.eclipse.xtend.backend.expr
Class InvocationOnWhateverExpression
java.lang.Object
org.eclipse.xtend.backend.common.ExpressionBase
org.eclipse.xtend.backend.expr.InvocationOnWhateverExpression
public final class InvocationOnWhateverExpression
- extends ExpressionBase
This expression invokes a function on the first argument, deciding at runtime whether to do the "collection magic" of
invoking the function on every member of the collection that is the first argument and returning the collection of
all the arguments.
This expression does *not* do implicit "this" resolution - it is the responsibility of the initializing code, e.g. in the
middle end, to statically resolve that.
- Author:
- Arno Haase (http://www.haase-consulting.com), André Arnold
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InvocationOnWhateverExpression
public InvocationOnWhateverExpression(QualifiedName functionName,
java.util.List<? extends ExpressionBase> params,
boolean nullIfFirstParamIsNull,
SourcePos sourcePos)
getFunctionName
public QualifiedName getFunctionName()
getParams
public java.util.List<? extends ExpressionBase> getParams()
isNullIfFirstParamIsNull
public boolean isNullIfFirstParamIsNull()
evaluateInternal
protected java.lang.Object evaluateInternal(ExecutionContext ctx)
- Specified by:
evaluateInternal
in class ExpressionBase