Math2mat
Public Member Functions

m2m.backend.structure.Case Class Reference

Inheritance diagram for m2m.backend.structure.Case:
Inheritance graph
[legend]
Collaboration diagram for m2m.backend.structure.Case:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Case ()
void modifyNumType (BuildingBlock.NumType type)
String getXmlTagName ()
Element copy (Function newFunc)
void copyTo (Element to, Function newFunc)
boolean insideFromXml (org.w3c.dom.Element el, Function newFunc)
void insideToXml (org.w3c.dom.Element el, Document dom, boolean shortRef)
void setCond (Vector< Variable > cond)
Vector< VariablegetCond ()
void setBody (Vector< Element > body)
Vector< ElementgetBody ()
String toString (int level)
String toSchematic (int level, String prefix, String boxFormat, String color)

Detailed Description

Represent one case for a switch operation

Author:
Trolliet Gregory

Definition at line 22 of file Case.java.


Constructor & Destructor Documentation

m2m.backend.structure.Case.Case ( )

Builder

Definition at line 36 of file Case.java.


Member Function Documentation

Element m2m.backend.structure.Case.copy ( Function  newFunc) [virtual]

Copy entirely the function.

Returns:
The new function.

Implements m2m.backend.structure.Element.

Definition at line 61 of file Case.java.

void m2m.backend.structure.Case.copyTo ( Element  to,
Function  newFunc 
)

Reimplemented from m2m.backend.structure.Element.

Definition at line 67 of file Case.java.

Vector<Element> m2m.backend.structure.Case.getBody ( )

Get the body

Returns:
Body

Definition at line 159 of file Case.java.

Vector<Variable> m2m.backend.structure.Case.getCond ( )

Get accepted values

Returns:
Accepted values

Definition at line 143 of file Case.java.

String m2m.backend.structure.Case.getXmlTagName ( ) [virtual]

Implements m2m.backend.structure.Element.

Definition at line 52 of file Case.java.

boolean m2m.backend.structure.Case.insideFromXml ( org.w3c.dom.Element  el,
Function  newFunc 
)

Reimplemented from m2m.backend.structure.Element.

Definition at line 77 of file Case.java.

void m2m.backend.structure.Case.insideToXml ( org.w3c.dom.Element  el,
Document  dom,
boolean  shortRef 
)

Definition at line 116 of file Case.java.

void m2m.backend.structure.Case.modifyNumType ( BuildingBlock.NumType  type)

Reimplemented from m2m.backend.structure.Element.

Definition at line 42 of file Case.java.

void m2m.backend.structure.Case.setBody ( Vector< Element body)

Set the body

Parameters:
bodyBody

Definition at line 151 of file Case.java.

void m2m.backend.structure.Case.setCond ( Vector< Variable cond)

Set accepted values

Parameters:
condAccepted values

Definition at line 135 of file Case.java.

String m2m.backend.structure.Case.toSchematic ( int  level,
String  prefix,
String  boxFormat,
String  color 
)

Create the schematic file, use with graphviz to generate schematic

Parameters:
levelLevel of tab
prefixPrefix for the element name
boxFormatFormat of box (rectangle, triangle, ...)
colorColor of the block
Returns:
Generate string

Reimplemented from m2m.backend.structure.Element.

Definition at line 196 of file Case.java.

String m2m.backend.structure.Case.toString ( int  level)

Convert the object to a string that contains all the parametres

Parameters:
levelIndent of the string
Returns:
String

Reimplemented from m2m.backend.structure.Element.

Definition at line 168 of file Case.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations