JMMF API
pre-release v0.8

fr.umlv.jmmf.reflect
Class DefaultTypeModel

java.lang.Object
  |
  +--fr.umlv.jmmf.reflect.DefaultTypeModel
All Implemented Interfaces:
TypeModel

public class DefaultTypeModel
extends java.lang.Object
implements TypeModel

default java subtyping rules. Override this class to change the default subtyping rules.

Version:
0.8.2
Author:
Remi Forax

Constructor Summary
DefaultTypeModel()
           
 
Method Summary
 java.lang.Class getSuperclass(java.lang.Class c)
          returns the Class representing the superclass of the entity (class, interface, primitive type or void) represented by this Class.
 java.lang.Class[] getSuperTypes(java.lang.Class c)
          return all super types of a given class.
 boolean isInterface(java.lang.Class c)
          return true if the class must be considered as an interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTypeModel

public DefaultTypeModel()
Method Detail

getSuperTypes

public java.lang.Class[] getSuperTypes(java.lang.Class c)
return all super types of a given class.
Specified by:
getSuperTypes in interface TypeModel

isInterface

public boolean isInterface(java.lang.Class c)
return true if the class must be considered as an interface.
Specified by:
isInterface in interface TypeModel

getSuperclass

public java.lang.Class getSuperclass(java.lang.Class c)
returns the Class representing the superclass of the entity (class, interface, primitive type or void) represented by this Class. If this Class represents either the Object class, an interface, a primitive type, or void, then null is returned. If this object represents an array class then the Class object representing the Object class is returned.
Specified by:
getSuperclass in interface TypeModel
Returns:
the superclass of the class represented by this object.

JMMF API
pre-release v0.8

Rémi Forax 1999,2000 Université de Marne la Vallée