public class ResolvedUnionType extends Object implements ResolvedType
| Constructor and Description |
|---|
ResolvedUnionType(List<ResolvedType> elements) |
| Modifier and Type | Method and Description |
|---|---|
ResolvedUnionType |
asUnionType() |
String |
describe() |
boolean |
equals(Object o) |
Optional<ResolvedReferenceType> |
getCommonAncestor() |
int |
hashCode() |
boolean |
isAssignableBy(ResolvedType other)
This method checks if ThisType t = new OtherType() would compile.
|
boolean |
isUnionType()
Is this a union type (as the ones used in multi catch clauses)?
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitarrayLevel, asArrayType, asConstraintType, asPrimitive, asReferenceType, asTypeParameter, asTypeVariable, asWildcard, isArray, isConstraint, isNull, isPrimitive, isReference, isReferenceType, isTypeVariable, isVoid, isWildcard, mention, replaceTypeVariables, replaceTypeVariablespublic ResolvedUnionType(List<ResolvedType> elements)
public Optional<ResolvedReferenceType> getCommonAncestor()
public String describe()
describe in interface ResolvedTypepublic boolean isAssignableBy(ResolvedType other)
ResolvedTypeisAssignableBy in interface ResolvedTypepublic boolean isUnionType()
ResolvedTypeisUnionType in interface ResolvedTypepublic ResolvedUnionType asUnionType()
asUnionType in interface ResolvedTypeCopyright © 2007–2020. All rights reserved.