org.eclipse.ocl.examples.codegen.cgmodel
Interface CGConstant

All Superinterfaces:
CGElement, CGNamedElement, CGTypedElement, CGValuedElement, org.eclipse.emf.ecore.EObject, Nameable, org.eclipse.emf.common.notify.Notifier
All Known Subinterfaces:
CGBoolean, CGElementId, CGInfinity, CGInteger, CGInvalid, CGNull, CGReal, CGString, CGText, CGTypeId
All Known Implementing Classes:
CGBooleanImpl, CGConstantImpl, CGElementIdImpl, CGInfinityImpl, CGIntegerImpl, CGInvalidImpl, CGNullImpl, CGRealImpl, CGStringImpl, CGTextImpl, CGTypeIdImpl

public interface CGConstant
extends CGValuedElement

A representation of the model object 'CG Global Constant'. A CGConstant represents a constant value that may be shared by may CGConstantExp. The shared value may be generated as a global constant. Inlineable constants need no global declaration. Derived classes support distinct forms of constants.

The following features are supported:

See Also:
CGModelPackage.getCGConstant()
Generated
Model
abstract="true"

Field Summary
 
Fields inherited from interface org.eclipse.ocl.examples.codegen.cgmodel.CGElement
EMPTY_LIST
 
Method Summary
 java.lang.Object getConstantValue()
          Returns the value of the 'Constant Value' attribute.
 
Methods inherited from interface org.eclipse.ocl.examples.codegen.cgmodel.CGValuedElement
getDependsOn, getReferredValuedElement, getValue, getValueName, isBoxed, isCaught, isConstant, isFalse, isGlobal, isInlineable, isInvalid, isNonInvalid, isNonNull, isNull, isSettable, isTrue, isUnboxed, setCaught, setNonInvalid, setNonNull, setValueName
 
Methods inherited from interface org.eclipse.ocl.examples.codegen.cgmodel.CGTypedElement
getPivotTypeId, getTypeId, isRequired, setRequired, setTypeId
 
Methods inherited from interface org.eclipse.ocl.examples.codegen.cgmodel.CGNamedElement
getName, getPivot, setName, setPivot
 
Methods inherited from interface org.eclipse.ocl.examples.codegen.cgmodel.CGElement
accept, getChildren, getParent
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getConstantValue

java.lang.Object getConstantValue()
Returns the value of the 'Constant Value' attribute.

If the meaning of the 'Zzvalue' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Constant Value' attribute.
See Also:
CGModelPackage.getCGConstant_ConstantValue()
Generated
Model
dataType="org.eclipse.ocl.examples.codegen.cgmodel.Object" required="true" transient="true" changeable="false" volatile="true" derived="true"