|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ocl.examples.codegen.java.types.AbstractDescriptor
public abstract class AbstractDescriptor
An AbstractDescriptor provides the most fundamental capabilities of any type description: the correspondence to a pivot ElementId.
Nested Class Summary | |
---|---|
protected static class |
AbstractDescriptor.NamedFuture
NamedFuture is a placeholder for classes that have yet to be created. |
Field Summary | |
---|---|
protected ElementId |
elementId
|
Constructor Summary | |
---|---|
AbstractDescriptor(ElementId elementId)
|
Method Summary | |
---|---|
java.lang.Boolean |
appendBox(JavaStream js,
JavaLocalContext localContext,
CGBoxExp cgBoxExp,
CGValuedElement unboxedValue)
|
void |
appendCast(JavaStream js,
java.lang.Class<?> actualJavaClass,
JavaStream.SubStream subStream)
Append the actualJavaClass subStream to js wrapped in a cast to this type.g. |
void |
appendCastTerm(JavaStream js,
CGValuedElement cgElement)
Append a cgElement to js wrapped in a cast to this type |
void |
appendEqualsValue(JavaStream js,
CGValuedElement thisValue,
CGValuedElement thatValue,
boolean notEquals)
Append an expression term that evaluates whether (this TypedDescriptor and) thisValue is not equals/ notEquals to thatValue. |
void |
appendNotEqualsTerm(JavaStream js,
CGValuedElement thisValue,
TypeDescriptor thatTypeDescriptor,
java.lang.String thatName)
Append an expression term that evaluates whether (this TypedDescriptor and) thisValue is not equal to thatTypeDescriptor and thatName. |
java.lang.Boolean |
appendUnboxStatements(JavaStream js,
JavaLocalContext localContext,
CGUnboxExp cgUnboxExp,
CGValuedElement boxedValue)
|
CollectionDescriptor |
asCollectionDescriptor()
Return a non-null Collection type descriptor if this type descriptor dedescribes a Collection. |
org.eclipse.emf.ecore.EClassifier |
getEClassifier()
Return the Ecore EClassifier described by this type. |
ElementId |
getElementId()
|
TypeDescriptor |
getPrimitiveDescriptor()
Return the type descriptor for use when a primitive type would be appropriate. |
boolean |
isAssignableTo(java.lang.Class<?> javaClass)
Return true if an instance described by this typeDescriptor may be assigned to a javaClass. |
protected static java.lang.Class<?> |
reClass(java.lang.Class<?> javaClass)
Convert an AS javaClass to its underlying Domain interface. |
java.lang.String |
toString()
|
protected boolean |
zzisBoxedType(MetaModelManager metaModelManager,
CGValuedElement cgValue)
|
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, getClassName, getJavaClass, getUnboxedDescriptor, hasJavaClass, isAssignableFrom |
Field Detail |
---|
@NonNull protected final ElementId elementId
Constructor Detail |
---|
public AbstractDescriptor(@NonNull ElementId elementId)
Method Detail |
---|
@NonNull protected static java.lang.Class<?> reClass(@NonNull java.lang.Class<?> javaClass)
@NonNull public java.lang.Boolean appendBox(@NonNull JavaStream js, @NonNull JavaLocalContext localContext, @NonNull CGBoxExp cgBoxExp, @NonNull CGValuedElement unboxedValue)
appendBox
in interface TypeDescriptor
public void appendCast(@NonNull JavaStream js, @Nullable java.lang.Class<?> actualJavaClass, @Nullable JavaStream.SubStream subStream)
TypeDescriptor
appendCast
in interface TypeDescriptor
public void appendCastTerm(@NonNull JavaStream js, @NonNull CGValuedElement cgElement)
TypeDescriptor
appendCastTerm
in interface TypeDescriptor
public void appendNotEqualsTerm(@NonNull JavaStream js, @NonNull CGValuedElement thisValue, @NonNull TypeDescriptor thatTypeDescriptor, @NonNull java.lang.String thatName)
TypeDescriptor
appendNotEqualsTerm
in interface TypeDescriptor
@NonNull public java.lang.Boolean appendUnboxStatements(@NonNull JavaStream js, @NonNull JavaLocalContext localContext, @NonNull CGUnboxExp cgUnboxExp, @NonNull CGValuedElement boxedValue)
appendUnboxStatements
in interface TypeDescriptor
protected boolean zzisBoxedType(@NonNull MetaModelManager metaModelManager, @NonNull CGValuedElement cgValue)
public void appendEqualsValue(@NonNull JavaStream js, @NonNull CGValuedElement thisValue, @NonNull CGValuedElement thatValue, boolean notEquals)
TypeDescriptor
appendEqualsValue
in interface TypeDescriptor
@Nullable public CollectionDescriptor asCollectionDescriptor()
TypeDescriptor
asCollectionDescriptor
in interface TypeDescriptor
@Nullable public org.eclipse.emf.ecore.EClassifier getEClassifier()
TypeDescriptor
getEClassifier
in interface TypeDescriptor
@NonNull public ElementId getElementId()
@NonNull public TypeDescriptor getPrimitiveDescriptor()
TypeDescriptor
getPrimitiveDescriptor
in interface TypeDescriptor
public boolean isAssignableTo(@NonNull java.lang.Class<?> javaClass)
TypeDescriptor
isAssignableTo
in interface TypeDescriptor
@NonNull public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |