public class CompoundTypeEnvironment extends java.lang.Object implements TypeEnvironment
TypeEnvironment
functions.Modifier and Type | Method and Description |
---|---|
java.lang.reflect.Type |
bind(java.lang.reflect.Type type)
Binds as many generic components of the given type as possible in this
context.
|
static TypeEnvironment |
create(TypeEnvironment f,
TypeEnvironment g) |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
toString() |
public static TypeEnvironment create(TypeEnvironment f, TypeEnvironment g)
public java.lang.reflect.Type bind(java.lang.reflect.Type type)
TypeEnvironment
Type
is a Class
,
then it's guaranteed to be a regular Java Class
. In all
other cases, this method might return a custom implementation of some
interface that extends Type
. Be sure not to mix these
objects with Java's implementations of Type
to avoid
potential identity problems.
This class does not support bindings involving inner classes or
upper/lower bounds.bind
in interface TypeEnvironment
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object