wt.tools.xref.specs
Class ClassInterfaceSpec

java.lang.Object
  extended bywt.tools.xref.specs.PackageSpec
      extended bywt.tools.xref.specs.ClassInterfaceSpec
All Implemented Interfaces:
Spec

public class ClassInterfaceSpec
extends PackageSpec


Field Summary
private  String d_classInterfaceName
           
private  int d_objectType
          This field contains true if it is a class (this also means it could be an exception as well), otherwise it contains false if it is an interface.
static int OT_BASE_TYPE
           
static int OT_CLASS
           
static int OT_ERROR
           
static int OT_EXCEPTION
           
static int OT_INTERFACE
           
static int OT_UNKNOWN
           
 
Fields inherited from class wt.tools.xref.specs.PackageSpec
 
Constructor Summary
ClassInterfaceSpec(String packageName, String classInterfaceName, int objectType)
           
 
Method Summary
 String getClassInterfaceName()
           
 int getObjectType()
           
 boolean isBaseType()
          This method returns true if the instance is a Base Java Type.
 boolean isClass()
          This method returns true if the instance is an CLASS.
 boolean isException()
          This method returns true if the instance is an EXCEPTION.
 boolean isInterface()
          This method returns true if the instance is an INTERFACE.
 void setObjectType(int type)
           
 String toSortString()
          This method is used in sorting containers of Spec objects.
 String toString()
           
 
Methods inherited from class wt.tools.xref.specs.PackageSpec
getPackageName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OT_UNKNOWN

public static final int OT_UNKNOWN
See Also:
Constant Field Values

OT_CLASS

public static final int OT_CLASS
See Also:
Constant Field Values

OT_INTERFACE

public static final int OT_INTERFACE
See Also:
Constant Field Values

OT_EXCEPTION

public static final int OT_EXCEPTION
See Also:
Constant Field Values

OT_ERROR

public static final int OT_ERROR
See Also:
Constant Field Values

OT_BASE_TYPE

public static final int OT_BASE_TYPE
See Also:
Constant Field Values

d_objectType

private int d_objectType
This field contains true if it is a class (this also means it could be an exception as well), otherwise it contains false if it is an interface.


d_classInterfaceName

private String d_classInterfaceName
Constructor Detail

ClassInterfaceSpec

public ClassInterfaceSpec(String packageName,
                          String classInterfaceName,
                          int objectType)
Method Detail

getObjectType

public int getObjectType()

setObjectType

public void setObjectType(int type)

getClassInterfaceName

public String getClassInterfaceName()

isException

public boolean isException()
This method returns true if the instance is an EXCEPTION.


isClass

public boolean isClass()
This method returns true if the instance is an CLASS.


isInterface

public boolean isInterface()
This method returns true if the instance is an INTERFACE.


isBaseType

public boolean isBaseType()
This method returns true if the instance is a Base Java Type.


toSortString

public String toSortString()
Description copied from interface: Spec
This method is used in sorting containers of Spec objects.

Specified by:
toSortString in interface Spec
Overrides:
toSortString in class PackageSpec

toString

public String toString()
Overrides:
toString in class PackageSpec