SynSoft Java Standard Library

synsoft.org


org.synsoft.base
Class Inheritance

java.lang.Object
  |
  +--org.synsoft.base.Inheritance
All Implemented Interfaces:
java.io.Serializable

public class Inheritance
extends java.lang.Object
implements java.io.Serializable

This class provides a number of Java class-hierarchy manipulation functions.

See Also:
Serialized Form

Field Summary
static Version scm_version
          Constant instance of version information for class.
 
Constructor Summary
Inheritance()
           
 
Method Summary
static java.lang.Class[] getOrderedInterfaces(java.lang.Class cls)
          This method deduces the implemented interfaces for the given class, including all those declared in superclasses, and returns them in an ordered array.
static java.lang.Class[] getOrderedSuperclasses(java.lang.Class cls, boolean bIncludeClass)
          This method deduces the super classes for the given class, and returns them in an ordered array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scm_version

public static final Version scm_version
Constant instance of version information for class.
Constructor Detail

Inheritance

public Inheritance()
Method Detail

getOrderedSuperclasses

public static java.lang.Class[] getOrderedSuperclasses(java.lang.Class cls,
                                                       boolean bIncludeClass)
This method deduces the super classes for the given class, and returns them in an ordered array. The array begins with the immediate superclass and extends to the most remote (java.lang.Object).
Returns:
Array of superclasses

getOrderedInterfaces

public static java.lang.Class[] getOrderedInterfaces(java.lang.Class cls)
This method deduces the implemented interfaces for the given class, including all those declared in superclasses, and returns them in an ordered array. The array is ordered with respect to remoteness of (super)class on which they are implemented, but there is no ordering between interfaces implemented at the same level in the inheritance tree.
Returns:
Array of implemented interfaces

version 2.0.1.231

Copyright © Synesis Software. Licensed according to the Synesis Software Standard Public License