/**
*
*/
package ecologylab.bigsemantics.actions;
import ecologylab.serialization.annotations.simpl_inherit;
import ecologylab.serialization.annotations.simpl_scalar;
import ecologylab.serialization.annotations.simpl_tag;
/**
* @author amathur
*
*/
@simpl_inherit
public @simpl_tag(SemanticActionStandardMethods.FOR_EACH)
class ForEachSemanticAction
extends NestedSemanticAction
{
/**
* Name of the collection object on which for loop is applied
*/
@simpl_scalar
private String collection;
/**
* Name of the iterator [iterator variable]
*/
@simpl_scalar
@simpl_tag("as")
private String asStr;
/**
* Starting index
*/
@simpl_scalar
private String start;
/**
* end index
*/
@simpl_scalar
private String end;
/**
* current index of loop
*/
@simpl_scalar
private String currentIndex;
/**
* variable to store collection size.
*/
@simpl_scalar
private String size;
@Override
public String getActionName()
{
return SemanticActionStandardMethods.FOR_EACH;
}
/**
* @return the collection
*/
public String getCollection()
{
return collection;
}
/**
* @param collection
* the collection to set
*/
public void setCollection(String collection)
{
this.collection = collection;
}
/**
* @return the as
*/
public String getAs()
{
return asStr;
}
/**
* @param as
* the as to set
*/
public void setAs(String as)
{
this.asStr = as;
}
@Override
public void handleError()
{
// TODO Auto-generated method stub
}
/**
* @return the start
*/
public String getStart()
{
return start;
}
/**
* @return the end
*/
public String getEnd()
{
return end;
}
/**
* @return the curIndex
*/
public String getCurIndex()
{
return currentIndex;
}
/**
* @param curIndex
* the curIndex to set
*/
public void setCurIndex(String curIndex)
{
this.currentIndex = curIndex;
}
/**
* @return the size
*/
public String getSize()
{
return size;
}
/**
* @param size
* the size to set
*/
public void setSize(String size)
{
this.size = size;
}
@Override
public Object perform(Object obj)
{
// TODO Auto-generated method stub
return null;
}
}