public class BoundSet.IncorporationTarget
extends java.lang.Object
Constructor and Description |
---|
IncorporationTarget() |
Modifier and Type | Method and Description |
---|---|
BoundSet |
captureConversion(CaptureConversion captureConversion)
Derive a new bound set containing the given capture conversion.
|
BoundSet |
equality(java.lang.reflect.Type first,
java.lang.reflect.Type second)
Derive a new bound set containing the given equality.
|
BoundSet |
falsehood(java.lang.String message)
Derive a new bound set containing falsehood.
|
BoundSet |
subtype(java.lang.reflect.Type subtype,
java.lang.reflect.Type supertype)
Derive a new bound set containing the given subtype.
|
public BoundSet equality(java.lang.reflect.Type first, java.lang.reflect.Type second)
If one or both of the arguments passed are considered inference variables within the enclosing BoundSet, the appropriate equality bound is added and further bounds are inferred as per the Java language specification. Otherwise, the invocation has no effect.
first
- the first of two types whose equality we wish to assertsecond
- the second of two types whose equality we wish to assertpublic BoundSet subtype(java.lang.reflect.Type subtype, java.lang.reflect.Type supertype)
If one or both of the arguments passed are considered inference variables within the enclosing BoundSet, the appropriate subtype bound is added and further bounds are inferred as per the Java language specification. Otherwise, the invocation has no effect.
subtype
- a type which we wish to assert is a subtype of anothersupertype
- a type which we wish to assert is a supertype of anotherpublic BoundSet captureConversion(CaptureConversion captureConversion)
The given capture conversion is added to the enclosing bound set, and further bounds may be inferred as per the Java language specification.
captureConversion
- the capture conversion to be incorporated into the bound setpublic BoundSet falsehood(java.lang.String message)
False is added to the bound set, invalidating it, and an exception is thrown describing the problem.
message
- message detailing the cause of the problem