Class ResolvedUnionType

  • All Implemented Interfaces:
    ResolvedType

    public class ResolvedUnionType
    extends java.lang.Object
    implements ResolvedType
    A union type is defined in java as list of types separates by pipes.
    • Field Detail

    • Constructor Detail

      • ResolvedUnionType

        public ResolvedUnionType​(java.util.List<ResolvedType> elements)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • isUnionType

        public boolean isUnionType()
        Description copied from interface: ResolvedType
        Is this a union type (as the ones used in multi catch clauses)?
        Specified by:
        isUnionType in interface ResolvedType