Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

ClassHierarchy::TypeNode Class Reference

List of all members.

Public Methods

int getId ()
Type getType ()
boolean hasAncestor (TypeNode typeNode)
boolean hasDescendant (TypeNode typeNode)

Private Methods

 TypeNode (Type type)
 TypeNode (RefType type)
 TypeNode (ArrayType type)
void fixDescendants (int id)

Private Attributes

int id
Type type
BitSet parents = new BitSet()
BitSet ancestors = new BitSet()
BitSet descendants = new BitSet()

Detailed Description

Each instance of this class represents one type in the class hierarchy (or basic types).

Definition at line 194 of file ClassHierarchy.java.


Member Function Documentation

void ClassHierarchy::TypeNode::fixDescendants int   id [inline, private]
 

Adds the given node to the list of descendants of this node and its ancestors. *

Definition at line 330 of file ClassHierarchy.java.

int ClassHierarchy::TypeNode::getId   [inline]
 

Returns the unique id of this type node. *

Definition at line 351 of file ClassHierarchy.java.

Type ClassHierarchy::TypeNode::getType   [inline]
 

Returns the type represented by this type node. *

Definition at line 357 of file ClassHierarchy.java.

boolean ClassHierarchy::TypeNode::hasAncestor TypeNode   typeNode [inline]
 

Returns the list of parents of this type node. *

Definition at line 376 of file ClassHierarchy.java.


The documentation for this class was generated from the following file:
Generated at Thu Feb 7 07:06:28 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001