public class JavaIntersectionTypeInstance extends java.lang.Object implements JavaTypeInstance
| Modifier and Type | Field and Description |
|---|---|
private int |
id |
private java.util.List<JavaTypeInstance> |
parts |
private static int |
sid |
| Constructor and Description |
|---|
JavaIntersectionTypeInstance(java.util.List<JavaTypeInstance> parts) |
private final java.util.List<JavaTypeInstance> parts
private final int id
private static int sid
public JavaIntersectionTypeInstance(java.util.List<JavaTypeInstance> parts)
JavaIntersectionTypeInstance withPart(JavaTypeInstance part)
public JavaAnnotatedTypeInstance getAnnotatedInstance()
getAnnotatedInstance in interface JavaTypeInstancepublic StackType getStackType()
getStackType in interface JavaTypeInstancepublic boolean isComplexType()
isComplexType in interface JavaTypeInstancepublic boolean isUsableType()
isUsableType in interface JavaTypeInstancepublic RawJavaType getRawTypeOfSimpleType()
getRawTypeOfSimpleType in interface JavaTypeInstancepublic JavaTypeInstance removeAnArrayIndirection()
removeAnArrayIndirection in interface JavaTypeInstancepublic JavaTypeInstance getArrayStrippedType()
getArrayStrippedType in interface JavaTypeInstancepublic JavaTypeInstance getDeGenerifiedType()
getDeGenerifiedType in interface JavaTypeInstancepublic int getNumArrayDimensions()
getNumArrayDimensions in interface JavaTypeInstancepublic java.lang.String getRawName()
getRawName in interface JavaTypeInstancepublic java.lang.String getRawName(IllegalIdentifierDump iid)
getRawName in interface JavaTypeInstancepublic InnerClassInfo getInnerClassHereInfo()
getInnerClassHereInfo in interface JavaTypeInstancepublic BindingSuperContainer getBindingSupers()
getBindingSupers in interface JavaTypeInstancepublic boolean implicitlyCastsTo(JavaTypeInstance other, GenericTypeBinder gtb)
implicitlyCastsTo in interface JavaTypeInstancepublic boolean impreciseCanCastTo(JavaTypeInstance other, GenericTypeBinder gtb)
impreciseCanCastTo in interface JavaTypeInstancepublic boolean correctCanCastTo(JavaTypeInstance other, GenericTypeBinder gtb)
correctCanCastTo in interface JavaTypeInstancepublic java.lang.String suggestVarName()
suggestVarName in interface JavaTypeInstancepublic void dumpInto(Dumper d, TypeUsageInformation typeUsageInformation, TypeContext typeContext)
dumpInto in interface JavaTypeInstancepublic void collectInto(TypeUsageCollector typeUsageCollector)
collectInto in interface JavaTypeInstancepublic boolean isObject()
isObject in interface JavaTypeInstancepublic boolean isRaw()
isRaw in interface JavaTypeInstancepublic JavaGenericRefTypeInstance asGenericRefInstance(JavaTypeInstance other)
asGenericRefInstance in interface JavaTypeInstancepublic JavaTypeInstance deObfuscate(ObfuscationTypeMap obfuscationTypeMap)
deObfuscate in interface JavaTypeInstancepublic JavaTypeInstance directImplOf(JavaTypeInstance other)
directImplOf in interface JavaTypeInstancepublic java.lang.String toString()
toString in class java.lang.Object