public class TypeConstrainer extends Object
constrainTypeBy(JClassType, JClassType)
.Constructor and Description |
---|
TypeConstrainer(com.google.gwt.core.ext.typeinfo.TypeOracle typeOracle) |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.core.ext.typeinfo.JClassType |
constrainTypeBy(com.google.gwt.core.ext.typeinfo.JClassType subType,
com.google.gwt.core.ext.typeinfo.JClassType superType)
Return a subtype of
subType that includes all values in both
subType and superType . |
public TypeConstrainer(com.google.gwt.core.ext.typeinfo.TypeOracle typeOracle)
public com.google.gwt.core.ext.typeinfo.JClassType constrainTypeBy(com.google.gwt.core.ext.typeinfo.JClassType subType, com.google.gwt.core.ext.typeinfo.JClassType superType)
subType
that includes all values in both
subType
and superType
. The returned type must
have the same base type as subType
. If there are definitely no
such values, return null
.Copyright © 2016. All rights reserved.