Class TemplateOperation
- java.lang.Object
-
- ru.ispras.microtesk.tools.templgen.templates.TemplateOperation
-
public class TemplateOperation extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCommand()
Returns the command syntax.java.lang.String[]
getPostCommand()
java.lang.String
getPreCommand()
boolean
isArithmeticOperation()
boolean
isBranchOperation()
boolean
isLoadOperation()
boolean
isStoreOperation()
void
printOperation(TemplatePrinter templatePrinter)
Prints operation to theTemplatePrinter
.void
printOperationBlock(TemplatePrinter templatePrinter)
Prints operation (with pre and post commands) to theTemplatePrinter
.
-
-
-
Method Detail
-
getCommand
public java.lang.String getCommand()
Returns the command syntax.- Returns:
- command syntax.
-
getPreCommand
public java.lang.String getPreCommand()
-
getPostCommand
public java.lang.String[] getPostCommand()
-
isBranchOperation
public boolean isBranchOperation()
-
isStoreOperation
public boolean isStoreOperation()
-
isLoadOperation
public boolean isLoadOperation()
-
isArithmeticOperation
public boolean isArithmeticOperation()
-
printOperationBlock
public void printOperationBlock(TemplatePrinter templatePrinter)
Prints operation (with pre and post commands) to theTemplatePrinter
.- Parameters:
templatePrinter
- the templates printer.
-
printOperation
public void printOperation(TemplatePrinter templatePrinter)
Prints operation to theTemplatePrinter
.- Parameters:
templatePrinter
- the templates printer.
-
-