Class ResolvedUnionType
java.lang.Object
com.github.javaparser.resolution.types.ResolvedUnionType
- All Implemented Interfaces:
ResolvedType
A union type is defined in java as list of types separates by pipes.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescribe()booleaninthashCode()booleanisAssignableBy(ResolvedType other) This method checks if ThisType t = new OtherType() would compile.booleanIs this a union type (as the ones used in multi catch clauses)?Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ResolvedType
arrayLevel, asArrayType, asConstraintType, asPrimitive, asReferenceType, asTypeParameter, asTypeVariable, asWildcard, erasure, isArray, isConstraint, isInferenceVariable, isNull, isNumericType, isPrimitive, isReference, isReferenceType, isTypeVariable, isVoid, isWildcard, mention, replaceTypeVariables, replaceTypeVariables, solveGenericTypes, toDescriptor
-
Field Details
-
elements
-
-
Constructor Details
-
ResolvedUnionType
-
-
Method Details
-
getCommonAncestor
-
equals
-
hashCode
-
describe
- Specified by:
describein interfaceResolvedType
-
isAssignableBy
Description copied from interface:ResolvedTypeThis method checks if ThisType t = new OtherType() would compile.- Specified by:
isAssignableByin interfaceResolvedType
-
isUnionType
public boolean isUnionType()Description copied from interface:ResolvedTypeIs this a union type (as the ones used in multi catch clauses)?- Specified by:
isUnionTypein interfaceResolvedType
-
asUnionType
- Specified by:
asUnionTypein interfaceResolvedType
-
getElements
-