|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--uk.ac.ic.doc.automed.reps.StatementExecution
The class used to define a template transformation's program.
A StatementExecution object is used to define the statement that is going to be invoked during a template transformation's execution at a specific time in the execution (program counter) and the sequence of arguments that is going to be used for the statement's invocation. StatementExecution objects can be created through a CompositeTransformation object.
| Constructor Summary | |
protected |
StatementExecution(int transId,
int pc,
Statement stmnt,
TemplateArgumentSequence args)
Constructs a new StatementExecution. |
| Method Summary | |
TemplateArgumentSequence |
getArgumentSequence()
Returns the TemplateArgumentSequence of this StatementExecution. |
int |
getPc()
Returns the program counter of this StatementExecution. |
Statement |
getStatement()
Returns the Statement of this StatementExecution. |
protected static java.util.ArrayList |
getStatementExecutionsForTransformation(int transId)
Returns all the StatementExecution objects of the specified composite transformation. |
int |
getTransId()
Returns the transformation identifier of the composite transformation this StatementExecution belongs to. |
void |
print()
|
protected void |
remove()
Removes this StatementExecution from the TTR. |
void |
setArgumentSequence(TemplateArgumentSequence args)
Sets the TemplateArgumentSequence of this StatementExecution |
void |
setStatement(Statement stmnt)
Sets the Statement of this StatementExecution. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected StatementExecution(int transId,
int pc,
Statement stmnt,
TemplateArgumentSequence args)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
transId - ID of the composite transformation this StatementExecution belongs to.pc - the program counter in the transformation's program that this StatementExecution will take place.stmnt - the Statement that is going to be executedargs - the arguments that are going to be used for the statement's execution
TemplateTransformationRepositoryException - see TemplateTransformationRepository.createCompositeTransformationProgram(int, int, int, int)
RepositoryAccessException - if the repositories cannot be accessed| Method Detail |
public Statement getStatement()
throws TemplateTransformationRepositoryException,
TemplateTransformationSyntaxRepositoryException,
RepositoryAccessException
TemplateTransformationRepositoryException - see TemplateTransformationRepository.getCompositeTransformationProgramStId(int, int)
TemplateTransformationSyntaxRepositoryException - see
TemplateTransformationSyntaxRepository.getStatementName(int)
RepositoryAccessException - if the repositories cannot be accessed
public TemplateArgumentSequence getArgumentSequence()
throws TemplateTransformationRepositoryException,
RepositoryAccessException
TemplateTransformationRepositoryException - see TemplateTransformationRepository.getCompositeTransformationProgramArgId(int, int)
RepositoryAccessException - if the repositories cannot be accessed
public void setStatement(Statement stmnt)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
stmnt - the new Statement of this StatementExecution object
TemplateTransformationRepositoryException - see TemplateTransformationRepository.setCompositeTransformationProgramStId(int, int, int)
RepositoryAccessException - if the repositories cannot be accessed
public void setArgumentSequence(TemplateArgumentSequence args)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
args - the new TemplateArgumentSequence of this StatementExecution
TemplateTransformationRepositoryException - see TemplateTransformationRepository.setCompositeTransformationProgramArgId(int, int, int)
RepositoryAccessException - if the repositories cannot be accessed
protected void remove()
throws TemplateTransformationRepositoryException,
RepositoryAccessException
TemplateTransformationRepositoryException - see TemplateTransformationRepository.removeCompositeTransformationProgram(int, int)
RepositoryAccessException - if the repositories cannot be accessedpublic int getTransId()
public int getPc()
protected static java.util.ArrayList getStatementExecutionsForTransformation(int transId)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
null if no program exists in the TTR for the specified composite transformation
transId - ID of composite transformation that the StatementExecution objects will belong to
TemplateTransformationRepositoryException - see
TemplateTransformationRepository.getCompositeTransformationProgramPcList(int)
RepositoryAccessException - if the repositories cannot be accessed
public void print()
throws TemplateTransformationRepositoryException,
TemplateTransformationSyntaxRepositoryException,
AutoRepException,
RepositoryAccessException
TemplateTransformationRepositoryException
TemplateTransformationSyntaxRepositoryException
AutoRepException
RepositoryAccessException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||