class TypesSet extends collection.TypesSet
An efficient representation of a set of types if some types are actually upper type bounds and hence already represent sets of types.
Thread Safety
This class is not thread safe.
- Alphabetic
- By Inheritance
- TypesSet
- TypesSet
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new TypesSet(classHierarchy: ClassHierarchy)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def ++<:=(tpes: Traversable[ObjectType]): Unit
- def ++=(tpes: Traversable[ObjectType]): Unit
-
def
+<:=(tpe: ObjectType): Unit
Adds the given upper type bound to this
TypesSetunless a supertype of the given type is already added as an upper type bound.Adds the given upper type bound to this
TypesSetunless a supertype of the given type is already added as an upper type bound.All subtypes – whether concrete or upper types bounds – are removed.
- def +=(tpe: ObjectType): Unit
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- final val classHierarchy: ClassHierarchy
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
concreteTypes: Set[ObjectType]
The set of concrete types which are not subtypes of any type which is returned by
upperTypeBounds. -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
equals(other: Any): Boolean
- Definition Classes
- TypesSet → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
foreach[U](f: (ObjectType, Boolean) ⇒ U): Unit
- f
A call back function will be called for each type stored in the set along with the information if type represents an upper type bound (
true) or refers to a concrete class/interface type (the second parameter is thenfalse).
- Definition Classes
- TypesSet
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
lazy val
hashCode: Int
- Definition Classes
- TypesSet → AnyRef → Any
-
def
isEmpty: Boolean
Returns
trueif this set is empty. -
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nonEmpty: Boolean
Returns
trueif this set contains at least one type. -
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
size: Int
The number of types explicitly stored in the set.
The number of types explicitly stored in the set. This number is independent of the number of represented types. E.g., if
java.lang.Objectis stored in this set, then the size of this set is 1 even though it represents all known types.- Definition Classes
- TypesSet
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
var
theConcreteTypes: Set[ObjectType]
- Attributes
- protected[this]
-
var
theUpperTypeBounds: Set[ObjectType]
- Attributes
- protected[this]
- def toImmutableTypesSet: immutable.TypesSet
-
def
toString(): String
- Definition Classes
- TypesSet → AnyRef → Any
-
def
types: (Set[ObjectType], Set[ObjectType])
Returns a pair where the first set contains all concrete types and the second set contains all upper type bounds.
Returns a pair where the first set contains all concrete types and the second set contains all upper type bounds.
- Definition Classes
- TypesSet
- final def upperTypeBounds: Set[ObjectType]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )