public class ResolvedIntersectionType extends Object implements ResolvedType
| Constructor and Description |
|---|
ResolvedIntersectionType(Collection<ResolvedType> elements) |
| Modifier and Type | Method and Description |
|---|---|
String |
describe() |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isAssignableBy(ResolvedType other)
This method checks if ThisType t = new OtherType() would compile.
|
ResolvedType |
replaceTypeVariables(ResolvedTypeParameterDeclaration tp,
ResolvedType replaced,
Map<ResolvedTypeParameterDeclaration,ResolvedType> inferredTypes)
Replace all variables referring to the given TypeParameter with the given value.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitarrayLevel, asArrayType, asConstraintType, asPrimitive, asReferenceType, asTypeParameter, asTypeVariable, asUnionType, asWildcard, erasure, isArray, isConstraint, isInferenceVariable, isNull, isNumericType, isPrimitive, isReference, isReferenceType, isTypeVariable, isUnionType, isVoid, isWildcard, mention, replaceTypeVariables, solveGenericTypes, toDescriptorpublic ResolvedIntersectionType(Collection<ResolvedType> elements)
public String describe()
describe in interface ResolvedTypepublic boolean isAssignableBy(ResolvedType other)
ResolvedTypeisAssignableBy in interface ResolvedTypepublic ResolvedType replaceTypeVariables(ResolvedTypeParameterDeclaration tp, ResolvedType replaced, Map<ResolvedTypeParameterDeclaration,ResolvedType> inferredTypes)
ResolvedTypereplaceTypeVariables in interface ResolvedTypeCopyright © 2007–2023. All rights reserved.