Class StoExPrettyPrintVisitor
- java.lang.Object
-
- org.eclipse.emf.ecore.util.Switch<T>
-
- de.uka.ipd.sdq.stoex.util.StoexSwitch<StringBuilder>
-
- de.uka.ipd.sdq.stoex.analyser.visitors.StoExPrettyPrintVisitor
-
public class StoExPrettyPrintVisitor extends StoexSwitch<StringBuilder>
-
-
Field Summary
Fields Modifier and Type Field Description protected static int
AVERAGE_STOEX_SIZE
protected static DecimalFormat
df
protected StringBuilder
resultBuilder
-
Fields inherited from class de.uka.ipd.sdq.stoex.util.StoexSwitch
copyright, modelPackage
-
-
Constructor Summary
Constructors Constructor Description StoExPrettyPrintVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringBuilder
caseBooleanOperatorExpression(BooleanOperatorExpression object)
Returns the result of interpreting the object as an instance of ' Boolean Operator Expression'.StringBuilder
caseBoolLiteral(BoolLiteral object)
Returns the result of interpreting the object as an instance of 'Bool Literal'.StringBuilder
caseCompareExpression(CompareExpression object)
Returns the result of interpreting the object as an instance of 'Compare Expression '.StringBuilder
caseDoubleLiteral(DoubleLiteral object)
Returns the result of interpreting the object as an instance of 'Double Literal'.StringBuilder
caseFunctionLiteral(FunctionLiteral object)
Returns the result of interpreting the object as an instance of 'Function Literal'.StringBuilder
caseIfElseExpression(IfElseExpression object)
Returns the result of interpreting the object as an instance of 'If Else Expression '.StringBuilder
caseIntLiteral(IntLiteral object)
Returns the result of interpreting the object as an instance of 'Int Literal'.StringBuilder
caseNamespaceReference(NamespaceReference object)
Returns the result of interpreting the object as an instance of 'Namespace Reference '.StringBuilder
caseNegativeExpression(NegativeExpression object)
Returns the result of interpreting the object as an instance of 'Negative Expression '.StringBuilder
caseNotExpression(NotExpression object)
Returns the result of interpreting the object as an instance of 'Not Expression'.StringBuilder
caseParenthesis(Parenthesis object)
Returns the result of interpreting the object as an instance of 'Parenthesis'.StringBuilder
casePowerExpression(PowerExpression object)
Returns the result of interpreting the object as an instance of 'Power Expression'.StringBuilder
caseProbabilityFunctionLiteral(ProbabilityFunctionLiteral object)
Returns the result of interpreting the object as an instance of ' Probability Function Literal'.StringBuilder
caseProductExpression(ProductExpression object)
Returns the result of interpreting the object as an instance of 'Product Expression '.StringBuilder
caseStringLiteral(StringLiteral object)
Returns the result of interpreting the object as an instance of 'String Literal'.StringBuilder
caseTermExpression(TermExpression object)
Returns the result of interpreting the object as an instance of 'Term Expression'.StringBuilder
caseVariable(Variable object)
Returns the result of interpreting the object as an instance of 'Variable'.StringBuilder
caseVariableReference(VariableReference object)
Returns the result of interpreting the object as an instance of 'Variable Reference '.-
Methods inherited from class de.uka.ipd.sdq.stoex.util.StoexSwitch
caseAbstractNamedReference, caseAtom, caseBooleanExpression, caseComparison, caseExpression, caseIfElse, caseNumericLiteral, casePower, caseProduct, caseRandomVariable, caseTerm, caseUnary, caseUnitCarryingElement, defaultCase, doSwitch, isSwitchFor
-
-
-
-
Field Detail
-
AVERAGE_STOEX_SIZE
protected static final int AVERAGE_STOEX_SIZE
- See Also:
- Constant Field Values
-
resultBuilder
protected final StringBuilder resultBuilder
-
df
protected static final DecimalFormat df
-
-
Method Detail
-
caseBoolLiteral
public StringBuilder caseBoolLiteral(BoolLiteral object)
Description copied from class:StoexSwitch
Returns the result of interpreting the object as an instance of 'Bool Literal'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseBoolLiteral
in classStoexSwitch<StringBuilder>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Bool Literal'.
- See Also:
doSwitch(EObject)
-
casePowerExpression
public StringBuilder casePowerExpression(PowerExpression object)
Description copied from class:StoexSwitch
Returns the result of interpreting the object as an instance of 'Power Expression'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
casePowerExpression
in classStoexSwitch<StringBuilder>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Power Expression'.
- See Also:
doSwitch(EObject)
-
caseStringLiteral
public StringBuilder caseStringLiteral(StringLiteral object)
Description copied from class:StoexSwitch
Returns the result of interpreting the object as an instance of 'String Literal'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseStringLiteral
in classStoexSwitch<StringBuilder>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'String Literal'.
- See Also:
doSwitch(EObject)
-
caseCompareExpression
public StringBuilder caseCompareExpression(CompareExpression object)
Description copied from class:StoexSwitch
Returns the result of interpreting the object as an instance of 'Compare Expression '. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseCompareExpression
in classStoexSwitch<StringBuilder>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Compare Expression '.
- See Also:
doSwitch(EObject)
-
caseDoubleLiteral
public StringBuilder caseDoubleLiteral(DoubleLiteral object)
Description copied from class:StoexSwitch
Returns the result of interpreting the object as an instance of 'Double Literal'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseDoubleLiteral
in classStoexSwitch<StringBuilder>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Double Literal'.
- See Also:
doSwitch(EObject)
-
caseIntLiteral
public StringBuilder caseIntLiteral(IntLiteral object)
Description copied from class:StoexSwitch
Returns the result of interpreting the object as an instance of 'Int Literal'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseIntLiteral
in classStoexSwitch<StringBuilder>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Int Literal'.
- See Also:
doSwitch(EObject)
-
caseParenthesis
public StringBuilder caseParenthesis(Parenthesis object)
Description copied from class:StoexSwitch
Returns the result of interpreting the object as an instance of 'Parenthesis'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseParenthesis
in classStoexSwitch<StringBuilder>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Parenthesis'.
- See Also:
doSwitch(EObject)
-
caseProbabilityFunctionLiteral
public StringBuilder caseProbabilityFunctionLiteral(ProbabilityFunctionLiteral object)
Description copied from class:StoexSwitch
Returns the result of interpreting the object as an instance of ' Probability Function Literal'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseProbabilityFunctionLiteral
in classStoexSwitch<StringBuilder>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of ' Probability Function Literal'.
- See Also:
doSwitch(EObject)
-
caseProductExpression
public StringBuilder caseProductExpression(ProductExpression object)
Description copied from class:StoexSwitch
Returns the result of interpreting the object as an instance of 'Product Expression '. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseProductExpression
in classStoexSwitch<StringBuilder>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Product Expression '.
- See Also:
doSwitch(EObject)
-
caseTermExpression
public StringBuilder caseTermExpression(TermExpression object)
Description copied from class:StoexSwitch
Returns the result of interpreting the object as an instance of 'Term Expression'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseTermExpression
in classStoexSwitch<StringBuilder>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Term Expression'.
- See Also:
doSwitch(EObject)
-
caseNamespaceReference
public StringBuilder caseNamespaceReference(NamespaceReference object)
Description copied from class:StoexSwitch
Returns the result of interpreting the object as an instance of 'Namespace Reference '. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseNamespaceReference
in classStoexSwitch<StringBuilder>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Namespace Reference '.
- See Also:
doSwitch(EObject)
-
caseVariableReference
public StringBuilder caseVariableReference(VariableReference object)
Description copied from class:StoexSwitch
Returns the result of interpreting the object as an instance of 'Variable Reference '. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseVariableReference
in classStoexSwitch<StringBuilder>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Variable Reference '.
- See Also:
doSwitch(EObject)
-
caseVariable
public StringBuilder caseVariable(Variable object)
Description copied from class:StoexSwitch
Returns the result of interpreting the object as an instance of 'Variable'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseVariable
in classStoexSwitch<StringBuilder>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Variable'.
- See Also:
doSwitch(EObject)
-
caseBooleanOperatorExpression
public StringBuilder caseBooleanOperatorExpression(BooleanOperatorExpression object)
Description copied from class:StoexSwitch
Returns the result of interpreting the object as an instance of ' Boolean Operator Expression'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseBooleanOperatorExpression
in classStoexSwitch<StringBuilder>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of ' Boolean Operator Expression'.
- See Also:
doSwitch(EObject)
-
caseNegativeExpression
public StringBuilder caseNegativeExpression(NegativeExpression object)
Description copied from class:StoexSwitch
Returns the result of interpreting the object as an instance of 'Negative Expression '. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseNegativeExpression
in classStoexSwitch<StringBuilder>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Negative Expression '.
- See Also:
doSwitch(EObject)
-
caseNotExpression
public StringBuilder caseNotExpression(NotExpression object)
Description copied from class:StoexSwitch
Returns the result of interpreting the object as an instance of 'Not Expression'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseNotExpression
in classStoexSwitch<StringBuilder>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Not Expression'.
- See Also:
doSwitch(EObject)
-
caseFunctionLiteral
public StringBuilder caseFunctionLiteral(FunctionLiteral object)
Description copied from class:StoexSwitch
Returns the result of interpreting the object as an instance of 'Function Literal'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseFunctionLiteral
in classStoexSwitch<StringBuilder>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Function Literal'.
- See Also:
doSwitch(EObject)
-
caseIfElseExpression
public StringBuilder caseIfElseExpression(IfElseExpression object)
Description copied from class:StoexSwitch
Returns the result of interpreting the object as an instance of 'If Else Expression '. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseIfElseExpression
in classStoexSwitch<StringBuilder>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'If Else Expression '.
- See Also:
doSwitch(EObject)
-
-