DotClass
Class ClassListEntry

java.lang.Object
  extended by DotClass.ClassListEntry

public class ClassListEntry
extends java.lang.Object

Entry in a ClassList, storing information about a Class


Field Summary
private  ClassInfo cinfo
          Underlying ClassInfo object
private  java.lang.String dot_name
          Normalized name as returned by genDotName()
private  java.lang.String[] ifaces
          Names of the interfaces
private  java.lang.String name
          Name of the class
private  java.lang.String sclass
          Name of the superclass
 
Constructor Summary
ClassListEntry(ClassInfo cinfo)
          Generate a new ClassListEntry
 
Method Summary
 java.lang.String dot_name()
          Retrieve the normalized name of this class
private  java.lang.String genDotName()
          Generate a normalized name
 boolean isIFace()
          Check whether or not this class is an interface
 java.lang.String name()
          Retrieve the name of this class
 int numIFaces()
          Retrieve the number of interfaces
 java.lang.String printIFace(int i)
          Print one interface
 java.lang.String printIFaces()
          Pretty printer for the interfaces this class implements
 void resolve(ClassList list)
          Resolve this symbol
 java.lang.String sclass()
          Retrieve the superclass
 java.lang.String toString()
          Retrieve a string representation of this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cinfo

private ClassInfo cinfo
Underlying ClassInfo object


name

private java.lang.String name
Name of the class


dot_name

private java.lang.String dot_name
Normalized name as returned by genDotName()


sclass

private java.lang.String sclass
Name of the superclass


ifaces

private java.lang.String[] ifaces
Names of the interfaces

Constructor Detail

ClassListEntry

public ClassListEntry(ClassInfo cinfo)
Generate a new ClassListEntry

Parameters:
cinfo - Class information
Method Detail

name

public java.lang.String name()
Retrieve the name of this class

Returns:
String

dot_name

public java.lang.String dot_name()
Retrieve the normalized name of this class

Returns:
String

genDotName

private java.lang.String genDotName()
Generate a normalized name

Returns:
String

toString

public java.lang.String toString()
Retrieve a string representation of this object

Overrides:
toString in class java.lang.Object
Returns:
String

printIFaces

public java.lang.String printIFaces()
Pretty printer for the interfaces this class implements

Returns:
String

isIFace

public boolean isIFace()
Check whether or not this class is an interface

Returns:
True if this class is an interface, false otherwise

printIFace

public java.lang.String printIFace(int i)
Print one interface

Parameters:
i - Index number
Returns:
String

numIFaces

public int numIFaces()
Retrieve the number of interfaces

Returns:
Number of interfaces this class implements

sclass

public java.lang.String sclass()
Retrieve the superclass

Returns:
String

resolve

public void resolve(ClassList list)
Resolve this symbol

Parameters:
list - List of classes