com.google.gwt.user.rebind.rpc
Class TypeConstrainer

java.lang.Object
  extended by com.google.gwt.user.rebind.rpc.TypeConstrainer

public class TypeConstrainer
extends java.lang.Object

This class defines the method constrainTypeBy(JClassType, JClassType).


Constructor Summary
TypeConstrainer(TypeOracle typeOracle)
           
 
Method Summary
 JClassType constrainTypeBy(JClassType subType, JClassType superType)
          Return a subtype of subType that includes all values in both subType and superType.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeConstrainer

public TypeConstrainer(TypeOracle typeOracle)
Method Detail

constrainTypeBy

public JClassType constrainTypeBy(JClassType subType,
                                  JClassType superType)
Return a subtype of 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.