public class CGClassImpl extends CGNamedElementImpl implements CGClass
The following features are implemented:
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(CGModelVisitor<R> visitor)
Accept a visit from a visitor and return the result of a call to the derived type-specific visitXXX in the visitor.
|
NotificationChain |
basicSetContainingClass(CGClass newContainingClass,
NotificationChain msgs) |
NotificationChain |
basicSetContainingPackage(CGPackage newContainingPackage,
NotificationChain msgs) |
NotificationChain |
eBasicRemoveFromContainerFeature(NotificationChain msgs) |
Object |
eGet(int featureID,
boolean resolve,
boolean coreType) |
NotificationChain |
eInverseAdd(InternalEObject otherEnd,
int featureID,
NotificationChain msgs) |
NotificationChain |
eInverseRemove(InternalEObject otherEnd,
int featureID,
NotificationChain msgs) |
boolean |
eIsSet(int featureID) |
void |
eSet(int featureID,
Object newValue) |
void |
eUnset(int featureID) |
List<CGClass> |
getClasses() |
CGClass |
getContainingClass() |
CGPackage |
getContainingPackage() |
List<CGConstraint> |
getInvariants() |
List<CGOperation> |
getOperations() |
List<CGProperty> |
getProperties() |
List<CGClass> |
getSuperTypes() |
List<CGClass> |
getTemplateParameters() |
boolean |
isInterface() |
void |
setContainingClass(CGClass newContainingClass) |
void |
setContainingPackage(CGPackage newContainingPackage) |
void |
setInterface(boolean newInterface) |
String |
toString() |
getAst, getName, setAst, setName
eBasicSetContainer, getChildren, getParent, getPlace, isContext, rewriteAs
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAst, getName, setAst, setName
public CGPackage getContainingPackage()
getContainingPackage
in interface CGClass
CGClass.setContainingPackage(CGPackage)
,
CGModelPackage.getCGClass_ContainingPackage()
,
CGPackage.getClasses()
public NotificationChain basicSetContainingPackage(CGPackage newContainingPackage, NotificationChain msgs)
public void setContainingPackage(CGPackage newContainingPackage)
setContainingPackage
in interface CGClass
newContainingPackage
- the new value of the 'Containing Package' container reference.CGClass.getContainingPackage()
public List<CGOperation> getOperations()
getOperations
in interface CGClass
CGModelPackage.getCGClass_Operations()
,
CGOperation.getContainingClass()
public List<CGProperty> getProperties()
getProperties
in interface CGClass
CGModelPackage.getCGClass_Properties()
,
CGProperty.getContainingClass()
public List<CGConstraint> getInvariants()
getInvariants
in interface CGClass
CGModelPackage.getCGClass_Invariants()
public List<CGClass> getSuperTypes()
getSuperTypes
in interface CGClass
CGModelPackage.getCGClass_SuperTypes()
public boolean isInterface()
isInterface
in interface CGClass
CGClass.setInterface(boolean)
,
CGModelPackage.getCGClass_Interface()
public void setInterface(boolean newInterface)
setInterface
in interface CGClass
newInterface
- the new value of the 'Interface' attribute.CGClass.isInterface()
public List<CGClass> getTemplateParameters()
getTemplateParameters
in interface CGClass
CGModelPackage.getCGClass_TemplateParameters()
public List<CGClass> getClasses()
getClasses
in interface CGClass
CGModelPackage.getCGClass_Classes()
,
CGClass.getContainingClass()
public CGClass getContainingClass()
getContainingClass
in interface CGClass
CGClass.setContainingClass(CGClass)
,
CGModelPackage.getCGClass_ContainingClass()
,
CGClass.getClasses()
public NotificationChain basicSetContainingClass(CGClass newContainingClass, NotificationChain msgs)
public void setContainingClass(CGClass newContainingClass)
setContainingClass
in interface CGClass
newContainingClass
- the new value of the 'Containing Class' container reference.CGClass.getContainingClass()
public String toString()
toString
in class CGNamedElementImpl
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)
public Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in class CGNamedElementImpl
public void eSet(int featureID, Object newValue)
eSet
in class CGNamedElementImpl
public void eUnset(int featureID)
eUnset
in class CGNamedElementImpl
public boolean eIsSet(int featureID)
eIsSet
in class CGNamedElementImpl
public <R> R accept(CGModelVisitor<R> visitor)
accept
in interface CGElement
accept
in class CGElementImpl
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.