org.eclipse.ocl.examples.codegen.java.types
Class RootObjectDescriptor

java.lang.Object
  extended by org.eclipse.ocl.examples.codegen.java.types.AbstractDescriptor
      extended by org.eclipse.ocl.examples.codegen.java.types.RootObjectDescriptor
All Implemented Interfaces:
TypeDescriptor, BoxedDescriptor, SimpleDescriptor, UnboxedDescriptor

public class RootObjectDescriptor
extends AbstractDescriptor
implements SimpleDescriptor


Field Summary
 
Fields inherited from class org.eclipse.ocl.examples.codegen.java.types.AbstractDescriptor
elementId
 
Constructor Summary
RootObjectDescriptor(ElementId elementId)
           
 
Method Summary
 void append(JavaStream javaStream)
          Append the declaration of this type to a JavaStream.
 java.lang.String getClassName()
           
 java.lang.Class<?> getJavaClass()
          Return the basic Java class for this descriptor.
 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.AbstractDescriptor
getEClassifier, getElementId, isAssignableTo, reClass, toString
 
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
getEClassifier, isAssignableTo
 

Constructor Detail

RootObjectDescriptor

public RootObjectDescriptor(@NonNull
                            ElementId elementId)
Method Detail

append

public void append(@NonNull
                   JavaStream javaStream)
Description copied from interface: TypeDescriptor
Append the declaration of this type to a JavaStream.

Specified by:
append in interface TypeDescriptor

getClassName

@NonNull
public java.lang.String getClassName()
Specified by:
getClassName in interface TypeDescriptor

getJavaClass

@NonNull
public java.lang.Class<?> getJavaClass()
Description copied from interface: TypeDescriptor
Return the basic Java class for this descriptor. e.g. List for an unboxed collection.

Specified by:
getJavaClass in interface TypeDescriptor

hasJavaClass

@Nullable
public java.lang.Class<?> hasJavaClass()
Description copied from interface: TypeDescriptor
Return the basic Java class for this descriptor. e.g. List for an unboxed collection. Returns null for no Java class known.

Specified by:
hasJavaClass in interface TypeDescriptor

isAssignableFrom

public boolean isAssignableFrom(@NonNull
                                TypeDescriptor typeDescriptor)
Description copied from interface: TypeDescriptor
Return true if an instance described by typeDescriptor may be assigned to an instance described by this.

Specified by:
isAssignableFrom in interface TypeDescriptor