org.infolayer.ocl
Class IfExp

java.lang.Object
  extended byorg.infolayer.ocl.OclExpression
      extended byorg.infolayer.ocl.IfExp
All Implemented Interfaces:
Evaluable

public class IfExp
extends OclExpression


Field Summary
 
Fields inherited from class org.infolayer.ocl.OclExpression
SQL_LOGGER, SQL_MATCH, SQL_MAY_GENERALIZE, SQL_MAY_SPECIALIZE
 
Constructor Summary
IfExp(OclExpression ifExpr, OclExpression thenExpr, OclExpression elseExpr)
           
 
Method Summary
 OclExpression clone(OclExpression[] dep)
          required for resolve
 java.lang.Object eval(Bindings bindings)
           
 OclExpression getDependency(int i)
          required for conversion to sql expression, includes "base"
 int getDependencyCount()
          required for conversion to sql expression
 UmlClassifier getType()
           
 boolean isConstantOperation()
           
 
Methods inherited from class org.infolayer.ocl.OclExpression
getName, isConstant, isQuery, isResolvable, resolve, simplify, toSql, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IfExp

public IfExp(OclExpression ifExpr,
             OclExpression thenExpr,
             OclExpression elseExpr)
Method Detail

getType

public UmlClassifier getType()
Specified by:
getType in interface Evaluable
Specified by:
getType in class OclExpression
See Also:
Evaluable.getType()

eval

public java.lang.Object eval(Bindings bindings)
Specified by:
eval in interface Evaluable
Specified by:
eval in class OclExpression
See Also:
org.infolayer.ocl.Evaluable#eval(Object[])

getDependency

public OclExpression getDependency(int i)
Description copied from class: OclExpression
required for conversion to sql expression, includes "base"

Specified by:
getDependency in class OclExpression

getDependencyCount

public int getDependencyCount()
Description copied from class: OclExpression
required for conversion to sql expression

Specified by:
getDependencyCount in class OclExpression

isConstantOperation

public boolean isConstantOperation()

clone

public OclExpression clone(OclExpression[] dep)
Description copied from class: OclExpression
required for resolve

Specified by:
clone in class OclExpression