org.jtool.jxplatform.query
Class JxInheritance

java.lang.Object
  extended byorg.jtool.jxplatform.query.JxInheritance

public class JxInheritance
extends java.lang.Object

Information about inheritance relationship.

Author:
Katsuhisa Maruyama

Constructor Summary
JxInheritance(JxClass jc, java.lang.String dist)
          Creates a new object which stores information about inheritance relationship.
 
Method Summary
 int getDistance()
          Returns distance of the superclass or subclass from its base class.
 JxClass getJxClass()
          Returns the superclass or subclass stored in this inheritance relationship.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JxInheritance

public JxInheritance(JxClass jc,
                     java.lang.String dist)
              throws JxWrapperException
Creates a new object which stores information about inheritance relationship.

Parameters:
jc - A superclass or subclass.
dist - A string indicating the distance of a given class from its base class.
Method Detail

getJxClass

public JxClass getJxClass()
Returns the superclass or subclass stored in this inheritance relationship.

Returns:
The superclass or subclass.

getDistance

public int getDistance()
Returns distance of the superclass or subclass from its base class.

Returns:
The distance value. The value of a direct parent or child is equal to 1.