|
Math2mat
|


Public Member Functions | |
| Switch () | |
| void | modifyNumType (BuildingBlock.NumType type) |
| String | getXmlTagName () |
| boolean | insideFromXml (org.w3c.dom.Element el, Function newFunc) |
| void | insideToXml (org.w3c.dom.Element el, Document dom, boolean shortRef) |
| void | setSwitchVar (Variable var) |
| Variable | getSwitchVar () |
| void | addCase (Vector< Variable > cond, Vector< Element > body) |
| void | addCase (Case cas) |
| void | setCases (Vector< Case > cases) |
| Vector< Case > | getCases () |
| Case | getCaseAt (int ind) |
| int | getSize () |
| String | toString (int level) |
| String | toSchematic (int level, String prefix, String boxFormat, String color) |
Describe a conditional structure if/then/else
Definition at line 24 of file Switch.java.
| m2m.backend.structure.Switch.Switch | ( | ) |
Constructor empty
Definition at line 38 of file Switch.java.
Add a new case to the switch
| cond | Condition |
| body | Instructions |
Definition at line 130 of file Switch.java.
| void m2m.backend.structure.Switch.addCase | ( | Case | cas | ) |
| Case m2m.backend.structure.Switch.getCaseAt | ( | int | ind | ) |
Get the case at the selected position
| ind | Position |
Definition at line 166 of file Switch.java.
| Vector<Case> m2m.backend.structure.Switch.getCases | ( | ) |
| int m2m.backend.structure.Switch.getSize | ( | ) |
| Variable m2m.backend.structure.Switch.getSwitchVar | ( | ) |
| String m2m.backend.structure.Switch.getXmlTagName | ( | ) | [virtual] |
Reimplemented from m2m.backend.structure.Function.
Definition at line 51 of file Switch.java.
| boolean m2m.backend.structure.Switch.insideFromXml | ( | org.w3c.dom.Element | el, |
| Function | newFunc | ||
| ) |
Reimplemented from m2m.backend.structure.Function.
Definition at line 56 of file Switch.java.
| void m2m.backend.structure.Switch.insideToXml | ( | org.w3c.dom.Element | el, |
| Document | dom, | ||
| boolean | shortRef | ||
| ) |
Reimplemented from m2m.backend.structure.Function.
Definition at line 92 of file Switch.java.
| void m2m.backend.structure.Switch.modifyNumType | ( | BuildingBlock.NumType | type | ) |
Reimplemented from m2m.backend.structure.Function.
Definition at line 44 of file Switch.java.
| void m2m.backend.structure.Switch.setCases | ( | Vector< Case > | cases | ) |
| void m2m.backend.structure.Switch.setSwitchVar | ( | Variable | var | ) |
| String m2m.backend.structure.Switch.toSchematic | ( | int | level, |
| String | prefix, | ||
| String | boxFormat, | ||
| String | color | ||
| ) |
Create the schematic file, use with graphviz to generate schematic
| level | Level of tab |
| prefix | Prefix for the element name |
| boxFormat | Format of box (rectangle, triangle, ...) |
| color | Color of the block |
Reimplemented from m2m.backend.structure.Function.
Definition at line 197 of file Switch.java.
| String m2m.backend.structure.Switch.toString | ( | int | level | ) |
Convert the object to a string that contains all the parametres
| level | Indent of the string |
Reimplemented from m2m.backend.structure.Function.
Definition at line 182 of file Switch.java.
1.7.3