Jode 1.90-CVS
Build Aug 6, 2004

net.sf.jode.type
Class SystemClassType

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.SystemClassType

public class SystemClassType
extends ClassType

This class represents the type of a system class, i.e. the classes from package java.lang, that need special handling, like Object, String, StringBuffer, etc.

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
SystemClassType(java.lang.String className, ClassType superType, ClassType[] ifacesTypes, boolean isFinal, boolean isInterface)
           
 
Method Summary
 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, equals, 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

SystemClassType

public SystemClassType(java.lang.String className,
                       ClassType superType,
                       ClassType[] ifacesTypes,
                       boolean isFinal,
                       boolean isInterface)
Parameters:
className - The name of this system class, must be interned.
Method Detail

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.

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.

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.

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.

Jode 1.90-CVS
Build Aug 6, 2004

Copyright © 1998-2004 by Jochen Hoenicke.