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.
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.util.Copy |
copy |
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.