org.eclipse.xtend.backend.expr
Class PropertyOnWhateverExpression

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

public final class PropertyOnWhateverExpression
extends ExpressionBase

This class deals with the case where the middle end can not decide statically whether a property is to be resolved on a single object or on a collection

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

Field Summary
 
Fields inherited from class org.eclipse.xtend.backend.common.ExpressionBase
_log
 
Constructor Summary
PropertyOnWhateverExpression(ExpressionBase inner, java.lang.String propertyName, SourcePos sourcePos)
           
 
Method Summary
protected  java.lang.Object evaluateInternal(ExecutionContext ctx)
           
 ExpressionBase getInnerExpression()
           
 java.lang.String getPropertyName()
           
 
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

PropertyOnWhateverExpression

public PropertyOnWhateverExpression(ExpressionBase inner,
                                    java.lang.String propertyName,
                                    SourcePos sourcePos)
Method Detail

getInnerExpression

public ExpressionBase getInnerExpression()

getPropertyName

public java.lang.String getPropertyName()

evaluateInternal

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