org.eclipse.ocl.expressions.impl
Class OCLExpressionImpl<C>

java.lang.Object
  extended by EObjectImpl
      extended by org.eclipse.ocl.expressions.impl.OCLExpressionImpl<C>
All Implemented Interfaces:
OCLExpression<C>, ASTNode, TypedElement<C>, Visitable
Direct Known Subclasses:
CallExpImpl, IfExpImpl, LetExpImpl, LiteralExpImpl, MessageExpImpl, StateExpImpl, TypeExpImpl, UnspecifiedValueExpImpl, VariableExpImpl

public abstract class OCLExpressionImpl<C>
extends EObjectImpl
implements OCLExpression<C>

An implementation of the model object 'OCL Expression'.

The following features are implemented:


Field Summary
protected static int END_POSITION_EDEFAULT
          The default value of the 'End Position' attribute
protected  int endPosition
          The cached value of the 'End Position' attribute
protected static int START_POSITION_EDEFAULT
          The default value of the 'Start Position' attribute
protected  int startPosition
          The cached value of the 'Start Position' attribute
 
Constructor Summary
protected OCLExpressionImpl()
           
 
Method Summary
<T,U extends Visitor<T,?,?,?,?,?,?,?,?,?>>
T
accept(U v)
           
 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)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, java.lang.Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
 int getEndPosition()
           
 java.lang.String getName()
           
 int getStartPosition()
           
 C getType()
           
 void setEndPosition(int newEndPosition)
           
 void setName(java.lang.String name)
           
 void setStartPosition(int newStartPosition)
           
 void setType(C type)
           
 java.lang.String toString()
           
 
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
setType
 

Field Detail

START_POSITION_EDEFAULT

protected static final int START_POSITION_EDEFAULT
The default value of the 'Start Position' attribute.

See Also:
getStartPosition(), Constant Field Values

startPosition

protected int startPosition
The cached value of the 'Start Position' attribute.

See Also:
getStartPosition()

END_POSITION_EDEFAULT

protected static final int END_POSITION_EDEFAULT
The default value of the 'End Position' attribute.

See Also:
getEndPosition(), Constant Field Values

endPosition

protected int endPosition
The cached value of the 'End Position' attribute.

See Also:
getEndPosition()
Constructor Detail

OCLExpressionImpl

protected OCLExpressionImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()


getName

public java.lang.String getName()

Specified by:
getName in interface TypedElement<C>

getType

public C getType()

Specified by:
getType in interface TypedElement<C>

setName

public void setName(java.lang.String name)

Specified by:
setName in interface TypedElement<C>

setType

public void setType(C type)


getStartPosition

public int getStartPosition()

Specified by:
getStartPosition in interface ASTNode
Returns:
the value of the 'Start Position' attribute.
See Also:
ASTNode.setStartPosition(int), UtilitiesPackage.getASTNode_StartPosition()

setStartPosition

public void setStartPosition(int newStartPosition)

Specified by:
setStartPosition in interface ASTNode
Parameters:
newStartPosition - the new value of the 'Start Position' attribute.
See Also:
ASTNode.getStartPosition()

getEndPosition

public int getEndPosition()

Specified by:
getEndPosition in interface ASTNode
Returns:
the value of the 'End Position' attribute.
See Also:
ASTNode.setEndPosition(int), UtilitiesPackage.getASTNode_EndPosition()

setEndPosition

public void setEndPosition(int newEndPosition)

Specified by:
setEndPosition in interface ASTNode
Parameters:
newEndPosition - the new value of the 'End Position' attribute.
See Also:
ASTNode.getEndPosition()

accept

public <T,U extends Visitor<T,?,?,?,?,?,?,?,?,?>> T accept(U v)

Specified by:
accept in interface Visitable

eGet

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


eSet

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


eUnset

public void eUnset(int featureID)


eIsSet

public boolean eIsSet(int featureID)


eBaseStructuralFeatureID

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


eDerivedStructuralFeatureID

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


toString

public java.lang.String toString()


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