* @param featureCall the <strong>arrow</strong> <code>featureCall</code> to handle.
*/
public void handleArrowFeatureCall(AFeatureCall featureCall)
{
AFeatureCallParameters params = (AFeatureCallParameters)featureCall.getFeatureCallParameters();
AActualParameterList list = null;
if (params != null)
{
list = (AActualParameterList)params.getActualParameterList();
}
boolean arrow = this.arrowPropertyCallStack.peek().equals(Boolean.TRUE) &&
!String.valueOf(list).trim().equals("");
{
newTranslationLayer();
final String navigationalPath = ConcreteSyntaxUtils.getArrowFeatureCallResultNavigationalPath(
(APropertyCallExpression)featureCall.parent().parent());
// if the result of an arrow feature (collection operation) has a
// navigational
// path, retrieve it and wrap the current expression with an OCL
// introspector call
boolean resultNavigationalPath = StringUtils.isNotBlank(navigationalPath);
if (resultNavigationalPath)
{
write(OCL_INTROSPECTOR_INVOKE_PREFIX);
}
write(OCL_TRANSLATOR_PACKAGE);
write(".OCLCollections.");
inAFeatureCall(featureCall);
if (featureCall.getPathName() != null)
{
featureCall.getPathName().apply(this);
}
String featureCallName = TranslationUtils.trimToEmpty(featureCall.getPathName());
AFeatureCallParameters parameters = (AFeatureCallParameters)featureCall.getFeatureCallParameters();
if (parameters != null)
{
if (parameters.getLParen() != null)
{
parameters.getLParen().apply(this);
}
mergeTranslationLayerBefore();
AActualParameterList parameterList = (AActualParameterList)parameters.getActualParameterList();
if (parameterList != null)
{
List expressions = parameterList.getCommaExpression();
if (parameterList.getExpression() != null)
{
if (arrow)
{
write(",");
write(features.getProperty(featureCallName));
write(" ");
if (OCLPredicateFeatures.isPredicateFeature(featureCallName))
{
write(BOOLEAN_WRAP_PREFIX);
}
}
parameterList.getExpression().apply(this);
}
for (int ctr = 0; ctr < expressions.size(); ctr++)
{
Node expression = (Node)expressions.get(ctr);
if (expression != null)
{
write(",");
expression.apply(this);
}
}
if (parameterList.getExpression() != null)
{
if (OCLPredicateFeatures.isPredicateFeature(featureCallName))
{
write(BOOLEAN_WRAP_SUFFIX);
}