jltools.types
Interface ClassType

All Superinterfaces:
java.lang.Cloneable, Copy, Qualifier, ReferenceType, java.io.Serializable, Type, TypeObject
All Known Subinterfaces:
AnonClassType, InnerClassType, JifClassType, JifInstType, JifParsedPolyType, JifPolyType, LoadedClassType, LocalClassType, MemberClassType, ParsedAnonClassType, ParsedClassType, ParsedInnerClassType, ParsedLocalClassType, ParsedMemberClassType, ParsedTopLevelClassType, TopLevelClassType
All Known Implementing Classes:
ClassType_c

public interface ClassType
extends ReferenceType

A ClassType represents a class, either loaded from a classpath, parsed from a source file, or obtained from other source. A ClassType is not necessarily named.


Method Summary
 java.util.List constructors()
           
 Flags flags()
          This method is here for convenience.
 boolean isAnonymous()
           
 boolean isInner()
           
 boolean isLocal()
           
 boolean isMember()
           
 boolean isTopLevel()
           
 java.util.List memberClasses()
           
 MemberClassType memberClassNamed(java.lang.String name)
          Returns the member class with the given name, or null.
 Package package_()
           
 AnonClassType toAnonymous()
           
 InnerClassType toInner()
           
 LocalClassType toLocal()
           
 MemberClassType toMember()
           
 TopLevelClassType toTopLevel()
           
 
Methods inherited from interface jltools.types.ReferenceType
fieldNamed, fields, interfaces, methods, superType
 
Methods inherited from interface jltools.types.Type
arrayOf, arrayOf, descendsFrom, isArray, isAssignableSubtype, isBoolean, isByte, isCastValid, isChar, isClass, isDouble, isFloat, isImplicitCastValid, isInt, isIntOrLess, isLong, isLongOrLess, isNull, isNumeric, isPrimitive, isReference, isSame, isShort, isSubtype, isThrowable, isUncheckedException, isVoid, toArray, toClass, toNull, toPrimitive, toReference, translate
 
Methods inherited from interface jltools.types.Qualifier
isPackage, isType, toPackage, toType
 
Methods inherited from interface jltools.types.TypeObject
isCanonical, position, restore, typeSystem
 
Methods inherited from interface jltools.util.Copy
copy
 

Method Detail

constructors

public java.util.List constructors()

memberClasses

public java.util.List memberClasses()

memberClassNamed

public MemberClassType memberClassNamed(java.lang.String name)
Returns the member class with the given name, or null.

isTopLevel

public boolean isTopLevel()

isInner

public boolean isInner()

isMember

public boolean isMember()

isLocal

public boolean isLocal()

isAnonymous

public boolean isAnonymous()

toTopLevel

public TopLevelClassType toTopLevel()

toInner

public InnerClassType toInner()

toMember

public MemberClassType toMember()

toLocal

public LocalClassType toLocal()

toAnonymous

public AnonClassType toAnonymous()

package_

public Package package_()

flags

public Flags flags()
This method is here for convenience. Anonymous classes have no access flags. It will return Flags.NONE if invoked on an anonymous class.