|
||||||||||
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
org.eclipse.ocl.examples.codegen.java.types.AbstractCollectionDescriptor
org.eclipse.ocl.examples.codegen.java.types.FutureEObjectsDescriptor
public class FutureEObjectsDescriptor
A FutureEObjectsDescriptor describes a yet-to-be-created collection type. It has a pivot CollectionTypeId, and EClassifier and a Java class name.
The Java class is only known by name; it is not yet loadable, since genmodel has not yet generated it.
There is no EClassifier available to perform type conformance checks since thie Java class name was provided as an instanceClassName.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.ocl.examples.codegen.java.types.AbstractDescriptor |
---|
AbstractDescriptor.NamedFuture |
Field Summary | |
---|---|
protected java.lang.String |
className
|
protected org.eclipse.emf.ecore.EClassifier |
eClassifier
|
Fields inherited from class org.eclipse.ocl.examples.codegen.java.types.AbstractDescriptor |
---|
elementId |
Constructor Summary | |
---|---|
FutureEObjectsDescriptor(CollectionTypeId collectionTypeId,
org.eclipse.emf.ecore.EClassifier eClassifier,
java.lang.String className)
|
Method Summary | |
---|---|
void |
append(JavaStream javaStream)
Append the declaration of this type to a JavaStream. |
java.lang.String |
getClassName()
Return the fully qualified Java class name described by this type. |
java.lang.Class<?> |
getJavaClass()
Return the basic Java class for this descriptor. |
UnboxedDescriptor |
getUnboxedDescriptor()
Return the type descriptor for use when an unboxed type would be appropriate. |
java.lang.Class<?> |
hasJavaClass()
Return the basic Java class for this descriptor. |
boolean |
isAssignableFrom(TypeDescriptor typeDescriptor)
Return true if an instance described by typeDescriptor may be assigned to an instance described by this. |
Methods inherited from class org.eclipse.ocl.examples.codegen.java.types.AbstractCollectionDescriptor |
---|
append, appendBox, appendElement, asCollectionDescriptor, getElementId, isAssignableTo, toString |
Methods inherited from class org.eclipse.ocl.examples.codegen.java.types.AbstractDescriptor |
---|
appendCast, appendCastTerm, appendEqualsValue, appendNotEqualsTerm, appendUnboxStatements, getEClassifier, getPrimitiveDescriptor, reClass, zzisBoxedType |
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 |
---|
appendBox, appendCast, appendCastTerm, appendEqualsValue, appendNotEqualsTerm, appendUnboxStatements, asCollectionDescriptor, getEClassifier, getPrimitiveDescriptor, isAssignableTo |
Field Detail |
---|
@NonNull protected final org.eclipse.emf.ecore.EClassifier eClassifier
@NonNull protected final java.lang.String className
Constructor Detail |
---|
public FutureEObjectsDescriptor(@NonNull CollectionTypeId collectionTypeId, @NonNull org.eclipse.emf.ecore.EClassifier eClassifier, @NonNull java.lang.String className)
Method Detail |
---|
public void append(@NonNull JavaStream javaStream)
TypeDescriptor
append
in interface TypeDescriptor
@NonNull public java.lang.String getClassName()
TypeDescriptor
getClassName
in interface TypeDescriptor
@NonNull public java.lang.Class<?> getJavaClass()
TypeDescriptor
getJavaClass
in interface TypeDescriptor
@NonNull public UnboxedDescriptor getUnboxedDescriptor()
TypeDescriptor
getUnboxedDescriptor
in interface TypeDescriptor
@Nullable public java.lang.Class<?> hasJavaClass()
TypeDescriptor
hasJavaClass
in interface TypeDescriptor
public final boolean isAssignableFrom(@NonNull TypeDescriptor typeDescriptor)
TypeDescriptor
isAssignableFrom
in interface TypeDescriptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |