org.eclipse.ocl.examples.codegen.java.types
Class EnumerationValueDescriptor
java.lang.Object
org.eclipse.ocl.examples.codegen.java.types.AbstractDescriptor
org.eclipse.ocl.examples.codegen.java.types.AbstractValueDescriptor
org.eclipse.ocl.examples.codegen.java.types.BoxedValueDescriptor
org.eclipse.ocl.examples.codegen.java.types.EnumerationValueDescriptor
- All Implemented Interfaces:
- TypeDescriptor, BoxedDescriptor
public class EnumerationValueDescriptor
- extends BoxedValueDescriptor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.ocl.examples.codegen.generator.TypeDescriptor |
append, appendBox, appendCast, appendCastTerm, appendNotEqualsTerm, asCollectionDescriptor, getClassName, getEClassifier, getJavaClass, getPrimitiveDescriptor, hasJavaClass, isAssignableTo |
EnumerationValueDescriptor
public EnumerationValueDescriptor(@NonNull
ElementId elementId)
appendEqualsValue
public void appendEqualsValue(@NonNull
JavaStream js,
@NonNull
CGValuedElement thisValue,
@NonNull
CGValuedElement thatValue,
boolean notEquals)
- Description copied from interface:
TypeDescriptor
- Append an expression term that evaluates whether (this TypedDescriptor and) thisValue is not equals/ notEquals to thatValue.
It is assumed that all the degenerate constant cases have been optimzed away.
- Specified by:
appendEqualsValue
in interface TypeDescriptor
- Overrides:
appendEqualsValue
in class AbstractDescriptor
appendUnboxStatements
@NonNull
public java.lang.Boolean appendUnboxStatements(@NonNull
JavaStream js,
@NonNull
JavaLocalContext localContext,
@NonNull
CGUnboxExp cgUnboxExp,
@NonNull
CGValuedElement boxedValue)
- Specified by:
appendUnboxStatements
in interface TypeDescriptor
- Overrides:
appendUnboxStatements
in class AbstractDescriptor