de.interactive_instruments.ShapeChange.Ocl
Class OclNode.IfExp

java.lang.Object
  extended by de.interactive_instruments.ShapeChange.Ocl.OclNode
      extended by de.interactive_instruments.ShapeChange.Ocl.OclNode.IfExp
Enclosing class:
OclNode

public static class OclNode.IfExp
extends OclNode

OclNode.IfExp stands for an if-then-else-endif construct. It is ensured that the condition part is of type BOOLEAN and that both decision parts are of compatible types, least abstract supertype of which will be the type of the IfExp.


Nested Class Summary
 
Nested classes/interfaces inherited from class de.interactive_instruments.ShapeChange.Ocl.OclNode
OclNode.AttributeCallExp, OclNode.BooleanLiteralExp, OclNode.BuiltInDescr, OclNode.BuiltInType, OclNode.ClassLiteralExp, OclNode.DataType, OclNode.DateTimeLiteralExp, OclNode.Declaration, OclNode.EnumerationLiteralExp, OclNode.Expression, OclNode.IfExp, OclNode.IntegerLiteralExp, OclNode.IterationCallExp, OclNode.LetExp, OclNode.LiteralExp, OclNode.MultiplicityMapping, OclNode.OclVoidLiteralExp, OclNode.OperationCallExp, OclNode.PackageLiteralExp, OclNode.PropertyCallExp, OclNode.PropertyCategory, OclNode.PropertySelector, OclNode.RealLiteralExp, OclNode.StringLiteralExp, OclNode.VariableExp
 
Field Summary
 OclNode condition
           
 OclNode elseExpression
           
 OclNode ifExpression
           
 
Fields inherited from class de.interactive_instruments.ShapeChange.Ocl.OclNode
dataType
 
Method Summary
 void debugPrintContent(PrintWriter stream)
          This is for generating debug output out of OclNodes.
 boolean isMultiple()
          Find out whether this OclNode represents a multiple entity, such as a Set or other Collection type.
 
Methods inherited from class de.interactive_instruments.ShapeChange.Ocl.OclNode
debugPrint, getDataType, isBuiltInType, iso19103AssumedBuiltInType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

condition

public OclNode condition

ifExpression

public OclNode ifExpression

elseExpression

public OclNode elseExpression
Method Detail

debugPrintContent

public void debugPrintContent(PrintWriter stream)

This is for generating debug output out of OclNodes.

Overrides:
debugPrintContent in class OclNode
Parameters:
streamPrint - Writer onto which the debug output is to be directed.

isMultiple

public boolean isMultiple()

Find out whether this OclNode represents a multiple entity, such as a Set or other Collection type.

Overrides:
isMultiple in class OclNode
Returns:
Flag - this represents a multiple entity


Copyright © 2015. All rights reserved.