Jode 1.90-CVS
Build Aug 6, 2004

net.sf.jode.type
Class ClassInfoType

java.lang.Object
  extended bynet.sf.jode.type.Type
      extended bynet.sf.jode.type.ReferenceType
          extended bynet.sf.jode.type.ClassType
              extended bynet.sf.jode.type.ClassInfoType

public class ClassInfoType
extends ClassType

This class is the type representing a class loaded from a ClassPath.

Author:
Jochen Hoenicke

Field Summary
 
Fields inherited from class net.sf.jode.type.ClassType
className
 
Fields inherited from class net.sf.jode.type.Type
EMPTY_IFACES, tBoolByte, tBoolean, tBoolInt, tBoolUInt, tByte, TC_ARRAY, TC_BOOLEAN, TC_BYTE, TC_CHAR, TC_CLASS, TC_CLASSIFACE, TC_DOUBLE, TC_ERROR, TC_FLOAT, TC_INT, TC_INTEGER, TC_LONG, TC_METHOD, TC_NULL, TC_RANGE, TC_SHORT, TC_SYSCLASS, TC_UNKNOWN, TC_VOID, tChar, tCloneable, tComparable, tDouble, tError, tFloat, tInt, tJavaLangClass, tLong, tNull, tObject, tSerializable, tShort, tString, tStringBuffer, tStringBuilder, tUInt, tUnknown, tUObject, tVoid
 
Constructor Summary
ClassInfoType(ClassInfo clazz)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 ClassInfo getClassInfo()
           
 ClassInfo getClazz()
           
 ClassType[] getInterfaces()
          Returns the reference type representing the interfaces this class implements.
 ClassType getSuperClass()
          Returns the reference type representing the super class, or null if this reference type represents java.lang.Object, or for interfaces.
 boolean isFinal()
          Checks if this type represents an interface.
 boolean isInterface()
          Checks if this type represents an interface.
 boolean isUnknown()
          Checks if this type represents an interface.
 
Methods inherited from class net.sf.jode.type.ClassType
createRangeType, getCanonic, getCastHelper, getClassName, getDefaultName, getGeneralizedType, getHint, getSpecializedType, getSubType, getTypeClass, getTypeSignature, hashCode, isClassType, isSubTypeOf, isValidType, maybeSubTypeOf, toString
 
Methods inherited from class net.sf.jode.type.ReferenceType
findCommonClassTypes, getSuperType, implementsAllIfaces, intersection
 
Methods inherited from class net.sf.jode.type.Type
getDefaultValue, getTypeCode, isOfType, stackSize, tArray, tClass, tClass, tMethod, tRange, tSubType, tSuperType, tSystemClass, tType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassInfoType

public ClassInfoType(ClassInfo clazz)
Method Detail

getClazz

public ClassInfo getClazz()

isUnknown

public boolean isUnknown()
Description copied from class: ClassType
Checks if this type represents an interface.

Specified by:
isUnknown in class ClassType
Returns:
true if this is an interface, false if this is a class or if unsure.

isFinal

public boolean isFinal()
Description copied from class: ClassType
Checks if this type represents an interface.

Specified by:
isFinal in class ClassType
Returns:
true if this is an interface, false if this is a class or if unsure.

isInterface

public boolean isInterface()
Description copied from class: ClassType
Checks if this type represents an interface.

Specified by:
isInterface in class ClassType
Returns:
true if this is an interface, false if this is a class or if unsure.

getSuperClass

public ClassType getSuperClass()
Description copied from class: ClassType
Returns the reference type representing the super class, or null if this reference type represents java.lang.Object, or for interfaces.

Specified by:
getSuperClass in class ClassType
Returns:
the super class' type.

getInterfaces

public ClassType[] getInterfaces()
Description copied from class: ClassType
Returns the reference type representing the interfaces this class implements. This may of course be an empty array.

Specified by:
getInterfaces in class ClassType
Returns:
the interfaces' types.

getClassInfo

public ClassInfo getClassInfo()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class ClassType

Jode 1.90-CVS
Build Aug 6, 2004

Copyright © 1998-2004 by Jochen Hoenicke.