public class IdentityTypeEnvironment extends Object implements TypeEnvironment
Type
for itself.Modifier and Type | Field and Description |
---|---|
static TypeEnvironment |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
Type |
bind(Type type)
Binds as many generic components of the given type as possible in this
context.
|
String |
toString() |
public static final TypeEnvironment INSTANCE
public Type bind(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
Copyright © 2017 JBoss by Red Hat. All rights reserved.