org.eclipse.ocl.expressions.impl
Class LoopExpImpl<C,PM>

java.lang.Object
  extended by EObjectImpl
      extended by org.eclipse.ocl.expressions.impl.OCLExpressionImpl<C>
          extended by org.eclipse.ocl.expressions.impl.CallExpImpl<C>
              extended by org.eclipse.ocl.expressions.impl.LoopExpImpl<C,PM>
All Implemented Interfaces:
CallExp<C>, LoopExp<C,PM>, OCLExpression<C>, ASTNode, CallingASTNode, TypedElement<C>, Visitable
Direct Known Subclasses:
IterateExpImpl, IteratorExpImpl

public abstract class LoopExpImpl<C,PM>
extends CallExpImpl<C>
implements LoopExp<C,PM>

An implementation of the model object 'Loop Exp'.

The following features are implemented:


Field Summary
protected  OCLExpression<C> body
          The cached value of the 'Body' containment reference
protected   iterator
          The cached value of the 'Iterator' containment reference list
 
Fields inherited from class org.eclipse.ocl.expressions.impl.CallExpImpl
PROPERTY_END_POSITION_EDEFAULT, PROPERTY_START_POSITION_EDEFAULT, propertyEndPosition, propertyStartPosition, source
 
Fields inherited from class org.eclipse.ocl.expressions.impl.OCLExpressionImpl
END_POSITION_EDEFAULT, endPosition, START_POSITION_EDEFAULT, startPosition
 
Constructor Summary
protected LoopExpImpl()
           
 
Method Summary
 NotificationChain basicSetBody(OCLExpression<C> newBody, NotificationChain msgs)
           
 boolean checkLoopVariableInit(DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
           
 boolean checkLoopVariableType(DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
           
 boolean checkSourceCollection(DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, java.lang.Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
 OCLExpression<C> getBody()
           
  getIterator()
           
 void setBody(OCLExpression<C> newBody)
           
 
Methods inherited from class org.eclipse.ocl.expressions.impl.CallExpImpl
basicSetSource, eBaseStructuralFeatureID, eDerivedStructuralFeatureID, getPropertyEndPosition, getPropertyStartPosition, getSource, setPropertyEndPosition, setPropertyStartPosition, setSource, toString
 
Methods inherited from class org.eclipse.ocl.expressions.impl.OCLExpressionImpl
accept, getEndPosition, getName, getStartPosition, getType, setEndPosition, setName, setStartPosition, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.ocl.expressions.LoopExp
checkLoopVariableInit, checkLoopVariableType, checkSourceCollection, setBody
 
Methods inherited from interface org.eclipse.ocl.expressions.CallExp
getSource, setSource
 
Methods inherited from interface org.eclipse.ocl.utilities.TypedElement
getName, getType, setName, setType
 
Methods inherited from interface org.eclipse.ocl.utilities.Visitable
accept
 
Methods inherited from interface org.eclipse.ocl.utilities.ASTNode
getEndPosition, getStartPosition, setEndPosition, setStartPosition
 
Methods inherited from interface org.eclipse.ocl.utilities.CallingASTNode
getPropertyEndPosition, getPropertyStartPosition, setPropertyEndPosition, setPropertyStartPosition
 
Methods inherited from interface org.eclipse.ocl.utilities.ASTNode
getEndPosition, getStartPosition, setEndPosition, setStartPosition
 

Field Detail

body

protected OCLExpression<C> body
The cached value of the 'Body' containment reference.

See Also:
getBody()

iterator

protected  iterator
The cached value of the 'Iterator' containment reference list.

See Also:
getIterator()
Constructor Detail

LoopExpImpl

protected LoopExpImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class CallExpImpl<C>

getBody

public OCLExpression<C> getBody()

Specified by:
getBody in interface LoopExp<C,PM>
Returns:
the value of the 'Body' containment reference.
See Also:
LoopExp.setBody(OCLExpression), ExpressionsPackage.getLoopExp_Body()

basicSetBody

public NotificationChain basicSetBody(OCLExpression<C> newBody,
                                      NotificationChain msgs)


setBody

public void setBody(OCLExpression<C> newBody)


getIterator

public  getIterator()

Specified by:
getIterator in interface LoopExp<C,PM>
Returns:
the value of the 'Iterator' containment reference list.
See Also:
ExpressionsPackage.getLoopExp_Iterator()

checkSourceCollection

public boolean checkSourceCollection(DiagnosticChain diagnostics,
                                     java.util.Map<java.lang.Object,java.lang.Object> context)


checkLoopVariableInit

public boolean checkLoopVariableInit(DiagnosticChain diagnostics,
                                     java.util.Map<java.lang.Object,java.lang.Object> context)


checkLoopVariableType

public boolean checkLoopVariableType(DiagnosticChain diagnostics,
                                     java.util.Map<java.lang.Object,java.lang.Object> context)


eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        NotificationChain msgs)

Overrides:
eInverseRemove in class CallExpImpl<C>

eGet

public java.lang.Object eGet(int featureID,
                             boolean resolve,
                             boolean coreType)

Overrides:
eGet in class CallExpImpl<C>

eSet

public void eSet(int featureID,
                 java.lang.Object newValue)

Overrides:
eSet in class CallExpImpl<C>

eUnset

public void eUnset(int featureID)

Overrides:
eUnset in class CallExpImpl<C>

eIsSet

public boolean eIsSet(int featureID)

Overrides:
eIsSet in class CallExpImpl<C>

Copyright 2002, 2007 IBM Corporation and others.
All Rights Reserved.