import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.text.Position;
+import java.util.List;
+import java.util.ArrayList;
+
/**
* @author Matthieu Casanova
*/
private Object parent;
private Position position;
- public InclusionStatement(Object parent,
- int keyword,
- Expression expression,
- int sourceStart) {
+
+ public InclusionStatement(final Object parent,
+ final int keyword,
+ final Expression expression,
+ final int sourceStart) {
super(sourceStart, expression.sourceEnd);
this.keyword = keyword;
this.expression = expression;
* @param tab how many tabs (not used here
* @return a String
*/
- public String toString(int tab) {
+ public String toString(final int tab) {
final StringBuffer buffer = new StringBuffer(tabString(tab));
buffer.append(toString());
return buffer.toString();
public Position getPosition() {
return position;
}
+
+ /**
+ * Get the variables from outside (parameters, globals ...)
+ * @return the variables from outside
+ */
+ public List getOutsideVariable() {
+ return expression.getOutsideVariable();
+ }
+
+ /**
+ * get the modified variables.
+ * @return the variables from we change value
+ */
+ public List getModifiedVariable() {
+ return expression.getModifiedVariable();
+ }
+
+ /**
+ * Get the variables used.
+ * @return the variables used
+ */
+ public List getUsedVariable() {
+ return expression.getUsedVariable();
+ }
}