public class CompoundTypeEnvironment extends Object implements TypeEnvironment
TypeEnvironment functions.| 限定符和类型 | 方法和说明 |
|---|---|
Type |
bind(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(Object o) |
int |
hashCode() |
String |
toString() |
public static TypeEnvironment create(TypeEnvironment f, TypeEnvironment g)
public Type bind(Type type)
TypeEnvironmentType 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 在接口中 TypeEnvironmentCopyright © 2020. All rights reserved.