public class TypeVariableType extends AbstractType implements ITypeVariableType
EMPTY_ARRAY, EMPTY_TYPE_ARRAY, EMPTY_TYPE_LIST| Constructor and Description |
|---|
TypeVariableType(IType ownersType,
IGenericTypeVariable typeVar) |
TypeVariableType(ITypeVariableDefinition typeVarDef,
boolean forFunction) |
getLiteralMetaType, getMetaType, getTheRefclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompile, getLiteralMetaType, getMetaType, getSourceFiles, isCompilable, isDynamicpublic TypeVariableType(ITypeVariableDefinition typeVarDef, boolean forFunction)
public TypeVariableType(IType ownersType, IGenericTypeVariable typeVar)
public ITypeVariableDefinition getTypeVarDef()
getTypeVarDef in interface ITypeVariableTypepublic String getDisplayName()
getDisplayName in interface ITypepublic String getRelativeName()
getRelativeName in interface ITypepublic String getNameWithEnclosingType()
getNameWithEnclosingType in interface ITypeVariableTypepublic String getNameWithBoundingType()
public String getNamespace()
getNamespace in interface ITypepublic ITypeLoader getTypeLoader()
getTypeLoader in interface ITypepublic IType getBoundingType()
getBoundingType in interface ITypeVariableTypepublic boolean isInterface()
isInterface in interface ITypepublic IType[] getInterfaces()
getInterfaces in interface ITypepublic IType getSupertype()
getSupertype in interface ITypepublic IType getEnclosingType()
getEnclosingType in interface ITypepublic IType getGenericType()
getGenericType in interface ITypepublic boolean isParameterizedType()
isParameterizedType in interface ITypepublic boolean isGenericType()
isGenericType in interface ITypepublic GenericTypeVariable[] getGenericTypeVariables()
getGenericTypeVariables in interface ITypepublic IType getParameterizedType(IType... ofType)
getParameterizedType in interface ITypepublic IType[] getTypeParameters()
getTypeParameters in interface ITypepublic Set<IType> getAllTypesInHierarchy()
getAllTypesInHierarchy in interface ITypepublic boolean isPrimitive()
isPrimitive in interface ITypepublic IType getArrayType()
getArrayType in interface ITypepublic Object makeArrayInstance(int iLength)
makeArrayInstance in interface ITypepublic Object getArrayComponent(Object array, int iIndex) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
getArrayComponent in interface ITypeIllegalArgumentExceptionArrayIndexOutOfBoundsExceptionpublic void setArrayComponent(Object array, int iIndex, Object value) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
setArrayComponent in interface ITypeIllegalArgumentExceptionArrayIndexOutOfBoundsExceptionpublic int getArrayLength(Object array) throws IllegalArgumentException
getArrayLength in interface ITypeIllegalArgumentExceptionpublic IType getComponentType()
getComponentType in interface ITypepublic boolean isAssignableFrom(IType type)
For example:
function foo( t: T, s: S ) { t = s // illegal, T and S may not have the same type at runtime t = "hello" // illegal, T may not be a String var x: T = t // ok, x and t are both of type T }
isAssignableFrom in interface ITypepublic boolean equals(Object obj)
public ITypeInfo getTypeInfo()
getTypeInfo in interface ITypepublic void unloadTypeInfo()
unloadTypeInfo in interface ITypepublic Object readResolve() throws ObjectStreamException
readResolve in interface ITypeObjectStreamExceptionpublic int getModifiers()
getModifiers in interface ITypepublic boolean isAbstract()
isAbstract in interface ITypepublic boolean isFunctionStatement()
isFunctionStatement in interface ITypeVariableTypepublic boolean isDiscarded()
isDiscarded in interface ITypepublic void setDiscarded(boolean bDiscarded)
setDiscarded in interface ITypepublic boolean isCompoundType()
isCompoundType in interface ITypepublic Set<IType> getCompoundTypeComponents()
getCompoundTypeComponents in interface ITypeCopyright © 2017. All rights reserved.