org.eclipse.ocl.ecore.impl
Class OperationCallExpImpl

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.FeatureCallExpImpl
                  extended by org.eclipse.ocl.ecore.impl.OperationCallExpImpl
All Implemented Interfaces:
CallExp<EClassifier>, FeatureCallExp<EClassifier>, OCLExpression<EClassifier>, OperationCallExp<EClassifier,EOperation>, ASTNode, CallingASTNode, TypedElement<EClassifier>, Visitable

public class OperationCallExpImpl
extends FeatureCallExpImpl
implements OperationCallExp

An implementation of the model object 'Operation Call Exp'.

The following features are implemented:


Field Summary
protected   argument
          The cached value of the 'Argument' containment reference list
protected static int OPERATION_CODE_EDEFAULT
          The default value of the 'Operation Code' attribute
protected  EOperation referredOperation
          The cached value of the 'Referred Operation' reference
 
Fields inherited from class org.eclipse.ocl.ecore.impl.FeatureCallExpImpl
MARKED_PRE_EDEFAULT, markedPre
 
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 OperationCallExpImpl()
           
 
Method Summary
<T,U extends Visitor<T,?,?,?,?,?,?,?,?,?>>
T
accept(U v)
           
 EOperation basicGetReferredOperation()
           
 boolean checkArgumentCount(DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
           
 boolean checkArgumentsConform(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)
           
  getArgument()
           
 int getOperationCode()
           
 EOperation getReferredOperation()
           
 void setOperationCode(int newOperationCode)
           
 void setReferredOperation(EOperation newReferredOperation)
           
 
Methods inherited from class org.eclipse.ocl.ecore.impl.FeatureCallExpImpl
isMarkedPre, setMarkedPre, toString
 
Methods inherited from class org.eclipse.ocl.ecore.impl.CallExpImpl
basicSetSource, getPropertyEndPosition, getPropertyStartPosition, getSource, setPropertyEndPosition, setPropertyStartPosition, setSource
 
Methods inherited from class org.eclipse.ocl.ecore.impl.OCLExpressionImpl
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.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.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.FeatureCallExp
isMarkedPre, setMarkedPre
 
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.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.OperationCallExp
checkArgumentCount, checkArgumentsConform
 
Methods inherited from interface org.eclipse.ocl.expressions.FeatureCallExp
isMarkedPre, setMarkedPre
 
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.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

argument

protected  argument
The cached value of the 'Argument' containment reference list.

See Also:
getArgument()

referredOperation

protected EOperation referredOperation
The cached value of the 'Referred Operation' reference.

See Also:
getReferredOperation()

OPERATION_CODE_EDEFAULT

protected static final int OPERATION_CODE_EDEFAULT
The default value of the 'Operation Code' attribute.

See Also:
getOperationCode(), Constant Field Values
Constructor Detail

OperationCallExpImpl

protected OperationCallExpImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class FeatureCallExpImpl

getArgument

public  getArgument()

Specified by:
getArgument in interface OperationCallExp<EClassifier,EOperation>
Returns:
the value of the 'Argument' containment reference list.
See Also:
ExpressionsPackage.getOperationCallExp_Argument()

getReferredOperation

public EOperation getReferredOperation()

Specified by:
getReferredOperation in interface OperationCallExp<EClassifier,EOperation>
Returns:
the value of the 'Referred Operation' reference.
See Also:
OperationCallExp.setReferredOperation(Object), ExpressionsPackage.getOperationCallExp_ReferredOperation()

basicGetReferredOperation

public EOperation basicGetReferredOperation()


setReferredOperation

public void setReferredOperation(EOperation newReferredOperation)

Specified by:
setReferredOperation in interface OperationCallExp<EClassifier,EOperation>
Parameters:
newReferredOperation - the new value of the 'Referred Operation' reference.
See Also:
OperationCallExp.getReferredOperation()

getOperationCode

public int getOperationCode()

Specified by:
getOperationCode in interface OperationCallExp<EClassifier,EOperation>
Returns:
the value of the 'Operation Code' attribute.
See Also:
OperationCallExp.setOperationCode(int), ExpressionsPackage.getOperationCallExp_OperationCode()

setOperationCode

public void setOperationCode(int newOperationCode)

Specified by:
setOperationCode in interface OperationCallExp<EClassifier,EOperation>
Parameters:
newOperationCode - the new value of the 'Operation Code' attribute.
See Also:
OperationCallExp.getOperationCode()

checkArgumentsConform

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


checkArgumentCount

public boolean checkArgumentCount(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 FeatureCallExpImpl

eSet

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

Overrides:
eSet in class FeatureCallExpImpl

eUnset

public void eUnset(int featureID)

Overrides:
eUnset in class FeatureCallExpImpl

eIsSet

public boolean eIsSet(int featureID)

Overrides:
eIsSet in class FeatureCallExpImpl

eBaseStructuralFeatureID

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

Overrides:
eBaseStructuralFeatureID in class FeatureCallExpImpl

eDerivedStructuralFeatureID

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

Overrides:
eDerivedStructuralFeatureID in class FeatureCallExpImpl

accept

public <T,U extends Visitor<T,?,?,?,?,?,?,?,?,?>> T accept(U v)
Description copied from class: OCLExpressionImpl

Specified by:
accept in interface Visitable
Overrides:
accept in class OCLExpressionImpl

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