public class LazyType extends Object implements ResolvedType
Constructor and Description |
---|
LazyType(Function<Void,ResolvedType> provider) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asConstraintType, asUnionType, erasure, isConstraint, isInferenceVariable, isNumericType, isUnionType, mention, solveGenericTypes, toDescriptor
public LazyType(Function<Void,ResolvedType> provider)
public boolean isArray()
isArray
in interface ResolvedType
public int arrayLevel()
arrayLevel
in interface ResolvedType
public boolean isPrimitive()
ResolvedType
isPrimitive
in interface ResolvedType
public boolean isNull()
ResolvedType
isNull
in interface ResolvedType
public boolean isReference()
ResolvedType
isReference
in interface ResolvedType
public boolean isReferenceType()
ResolvedType
isReferenceType
in interface ResolvedType
public boolean isVoid()
isVoid
in interface ResolvedType
public boolean isTypeVariable()
isTypeVariable
in interface ResolvedType
public boolean isWildcard()
isWildcard
in interface ResolvedType
public ResolvedArrayType asArrayType()
asArrayType
in interface ResolvedType
public ResolvedReferenceType asReferenceType()
asReferenceType
in interface ResolvedType
public ResolvedTypeParameterDeclaration asTypeParameter()
asTypeParameter
in interface ResolvedType
public ResolvedTypeVariable asTypeVariable()
asTypeVariable
in interface ResolvedType
public ResolvedPrimitiveType asPrimitive()
asPrimitive
in interface ResolvedType
public ResolvedWildcard asWildcard()
asWildcard
in interface ResolvedType
public String describe()
describe
in interface ResolvedType
public ResolvedType replaceTypeVariables(ResolvedTypeParameterDeclaration tp, ResolvedType replaced, Map<ResolvedTypeParameterDeclaration,ResolvedType> inferredTypes)
ResolvedType
replaceTypeVariables
in interface ResolvedType
public ResolvedType replaceTypeVariables(ResolvedTypeParameterDeclaration tp, ResolvedType replaced)
ResolvedType
ResolvedType.replaceTypeVariables(ResolvedTypeParameterDeclaration, ResolvedType, Map)
but ignores the inferred values.replaceTypeVariables
in interface ResolvedType
public boolean isAssignableBy(ResolvedType other)
ResolvedType
isAssignableBy
in interface ResolvedType
Copyright © 2007–2023. All rights reserved.