jltools.types
Interface Type

All Superinterfaces:
java.lang.Cloneable, Copy, Qualifier, java.io.Serializable, TypeObject
All Known Subinterfaces:
AnonClassType, ArrayType, ClassType, InnerClassType, JifClassType, JifInstType, JifParsedPolyType, JifPolyType, LabeledType, LoadedClassType, LocalClassType, MemberClassType, NamedType, NullType, ParsedAnonClassType, ParsedClassType, ParsedInnerClassType, ParsedLocalClassType, ParsedMemberClassType, ParsedTopLevelClassType, ParsedType, PrimitiveType, ReferenceType, TopLevelClassType, UnknownType
All Known Implementing Classes:
Type_c

public interface Type
extends Qualifier

A Type is the base type of all classes which represent types.


Method Summary
 ArrayType arrayOf()
           
 ArrayType arrayOf(int dims)
           
 boolean descendsFrom(Type t)
           
 boolean isArray()
           
 boolean isAssignableSubtype(Type t)
           
 boolean isBoolean()
           
 boolean isByte()
           
 boolean isCastValid(Type t)
           
 boolean isChar()
           
 boolean isClass()
           
 boolean isDouble()
           
 boolean isFloat()
           
 boolean isImplicitCastValid(Type t)
           
 boolean isInt()
           
 boolean isIntOrLess()
           
 boolean isLong()
           
 boolean isLongOrLess()
           
 boolean isNull()
           
 boolean isNumeric()
           
 boolean isPrimitive()
           
 boolean isReference()
           
 boolean isSame(Type t)
           
 boolean isShort()
           
 boolean isSubtype(Type t)
           
 boolean isThrowable()
           
 boolean isUncheckedException()
           
 boolean isVoid()
           
 ArrayType toArray()
           
 ClassType toClass()
           
 NullType toNull()
           
 PrimitiveType toPrimitive()
           
 ReferenceType toReference()
           
 java.lang.String translate(Context c)
           
 
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

translate

public java.lang.String translate(Context c)

arrayOf

public ArrayType arrayOf()

arrayOf

public ArrayType arrayOf(int dims)

toClass

public ClassType toClass()

toNull

public NullType toNull()

toReference

public ReferenceType toReference()

toPrimitive

public PrimitiveType toPrimitive()

toArray

public ArrayType toArray()

isSame

public boolean isSame(Type t)

isSubtype

public boolean isSubtype(Type t)

descendsFrom

public boolean descendsFrom(Type t)

isAssignableSubtype

public boolean isAssignableSubtype(Type t)

isCastValid

public boolean isCastValid(Type t)

isImplicitCastValid

public boolean isImplicitCastValid(Type t)

isPrimitive

public boolean isPrimitive()

isVoid

public boolean isVoid()

isBoolean

public boolean isBoolean()

isChar

public boolean isChar()

isByte

public boolean isByte()

isShort

public boolean isShort()

isInt

public boolean isInt()

isLong

public boolean isLong()

isFloat

public boolean isFloat()

isDouble

public boolean isDouble()

isIntOrLess

public boolean isIntOrLess()

isLongOrLess

public boolean isLongOrLess()

isNumeric

public boolean isNumeric()

isReference

public boolean isReference()

isNull

public boolean isNull()

isArray

public boolean isArray()

isClass

public boolean isClass()

isThrowable

public boolean isThrowable()

isUncheckedException

public boolean isUncheckedException()