org.eclipse.ocl.ecore.impl
Class LoopExpImpl

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

public abstract class LoopExpImpl
extends CallExpImpl
implements LoopExp

An implementation of the model object 'Loop Exp'.

The following features are implemented:


Field Summary
protected  OCLExpression<EClassifier> 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.ecore.impl.CallExpImpl
PROPERTY_END_POSITION_EDEFAULT, PROPERTY_START_POSITION_EDEFAULT, propertyEndPosition, propertyStartPosition, source
 
Fields inherited from class org.eclipse.ocl.ecore.impl.OCLExpressionImpl
END_POSITION_EDEFAULT, endPosition, START_POSITION_EDEFAULT, startPosition
 
Constructor Summary
protected LoopExpImpl()
           
 
Method Summary
 NotificationChain basicSetBody(OCLExpression<EClassifier> 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)
           
 int eBaseStructuralFeatureID(int derivedFeatureID, java.lang.Class<?> baseClass)
           
 int eDerivedStructuralFeatureID(int baseFeatureID, java.lang.Class<?> baseClass)
           
 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<EClassifier> getBody()
           
  getIterator()
           
 void setBody(OCLExpression<EClassifier> newBody)
           
 
Methods inherited from class org.eclipse.ocl.ecore.impl.CallExpImpl
basicSetSource, getPropertyEndPosition, getPropertyStartPosition, getSource, setPropertyEndPosition, setPropertyStartPosition, setSource, toString
 
Methods inherited from class org.eclipse.ocl.ecore.impl.OCLExpressionImpl
accept, getEndPosition, getStartPosition, getType, setEndPosition, 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.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.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
 
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<EClassifier> 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

getBody

public OCLExpression<EClassifier> getBody()

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

basicSetBody

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


setBody

public void setBody(OCLExpression<EClassifier> newBody)


getIterator

public  getIterator()

Specified by:
getIterator in interface LoopExp<EClassifier,EParameter>
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

eGet

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

Overrides:
eGet in class CallExpImpl

eSet

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

Overrides:
eSet in class CallExpImpl

eUnset

public void eUnset(int featureID)

Overrides:
eUnset in class CallExpImpl

eIsSet

public boolean eIsSet(int featureID)

Overrides:
eIsSet in class CallExpImpl

eBaseStructuralFeatureID

public int eBaseStructuralFeatureID(int derivedFeatureID,
                                    java.lang.Class<?> baseClass)

Overrides:
eBaseStructuralFeatureID in class CallExpImpl

eDerivedStructuralFeatureID

public int eDerivedStructuralFeatureID(int baseFeatureID,
                                       java.lang.Class<?> baseClass)

Overrides:
eDerivedStructuralFeatureID in class CallExpImpl

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