Author: scabanovich
Date: 2008-10-08 10:06:11 -0400 (Wed, 08 Oct 2008)
New Revision: 10743
Added:
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/model/ELMultiExpression.java
Modified:
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/internal/core/model/ELMultiExpressionImpl.java
Log:
JBIDE-1497.
Interface added
Added:
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/model/ELMultiExpression.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/model/ELMultiExpression.java
(rev 0)
+++
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/model/ELMultiExpression.java 2008-10-08
14:06:11 UTC (rev 10743)
@@ -0,0 +1,27 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.common.el.core.model;
+
+import java.util.List;
+
+import org.jboss.tools.common.el.internal.core.model.ELOperatorImpl;
+
+/**
+ * expression (operation expression)+
+ * @author V. Kabanovich
+ */
+public interface ELMultiExpression {
+
+ public List<ELExpression> getExpressions();
+
+ public List<ELOperatorImpl> getOperators();
+
+}
Modified:
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/internal/core/model/ELMultiExpressionImpl.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/internal/core/model/ELMultiExpressionImpl.java 2008-10-08
13:47:19 UTC (rev 10742)
+++
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/internal/core/model/ELMultiExpressionImpl.java 2008-10-08
14:06:11 UTC (rev 10743)
@@ -13,7 +13,9 @@
import java.util.ArrayList;
import java.util.List;
+import org.jboss.tools.common.el.core.model.ELExpression;
import org.jboss.tools.common.el.core.model.ELInvocationExpression;
+import org.jboss.tools.common.el.core.model.ELMultiExpression;
import org.jboss.tools.common.el.core.model.ELObject;
import org.jboss.tools.common.el.core.model.ELObjectType;
@@ -21,14 +23,14 @@
* expression (operation expression)+
* @author V. Kabanovich
*/
-public class ELMultiExpressionImpl extends ELExpressionImpl {
- List<ELExpressionImpl> expressions = new ArrayList<ELExpressionImpl>();
+public class ELMultiExpressionImpl extends ELExpressionImpl implements ELMultiExpression
{
+ List<ELExpression> expressions = new ArrayList<ELExpression>();
List<ELOperatorImpl> operators = new ArrayList<ELOperatorImpl>();
public ELMultiExpressionImpl() {
}
- public List<ELExpressionImpl> getExpressions() {
+ public List<ELExpression> getExpressions() {
return expressions;
}
@@ -79,8 +81,8 @@
}
public void collectInvocations(List<ELInvocationExpression> list) {
- for (ELExpressionImpl expr: expressions) {
- expr.collectInvocations(list);
+ for (ELExpression expr: expressions) {
+ ((ELExpressionImpl)expr).collectInvocations(list);
}
}