|
INRIA & FluxMedia | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fr.fluxmedia.transmorpher.graph.Iterator
Transmorpher graph iterator implementation The iterator class introduces the use of a variable which will be iterated over a particular structure. It must contain a name, a type and a number of other parameters that will specify its behavior.
Field Summary | |
(package private) java.lang.String |
name
Iterator name. |
(package private) Parameters |
parameters
The iterator parameters. |
(package private) Repeat |
repeat
The owner . |
(package private) java.lang.String |
type
Iterator type |
Constructor Summary | |
Iterator(java.lang.String n,
java.lang.String t,
Repeat r)
Creates an instance of iterator. |
Method Summary | |
void |
createIterator(TProcessComposite process,
TProcessFactory factory)
Creates a new TIterator corresponding to the iterator and adds it to the current composite process (this must be a TLoop because iterators cannot be used inside others components) |
void |
generateJavaCode(Writer file)
Generates java code for this component. |
void |
generateParameters(Writer file)
Generates java code for the parameters of this iterator. |
void |
generateXML()
Prints the XML expression of the call. |
java.lang.String |
getName()
Returns the name. |
Parameters |
getParameters()
Returns parameters. |
Repeat |
getRepeat()
Returns the owner (repeat) of the iterator. |
java.lang.String |
getType()
Returns iterator type. |
void |
setParameters(Parameters param)
Sets parameters. |
void |
setType(java.lang.String t)
Sets the type of iterator. |
Methods inherited from class java.lang.Object |
|
Field Detail |
java.lang.String name
Parameters parameters
java.lang.String type
Repeat repeat
Constructor Detail |
public Iterator(java.lang.String n, java.lang.String t, Repeat r)
n
- the name of the iterator.t
- the type of the iterator.r
- the owner of the iterator.Method Detail |
public void generateXML()
public java.lang.String getName()
public Repeat getRepeat()
public void setType(java.lang.String t)
t
- the type.public java.lang.String getType()
public void setParameters(Parameters param)
param
- The new parameters valuepublic Parameters getParameters()
public void createIterator(TProcessComposite process, TProcessFactory factory)
process
- the current TLoop.factory
- used for creating the TIterator.public void generateJavaCode(Writer file) throws java.io.IOException
file
- The file to write the code inpublic void generateParameters(Writer file) throws java.io.IOException
file
- The file to write the code in.
|
INRIA & FluxMedia | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |