Example usage for com.google.gwt.core.ext.typeinfo JWildcardType getUpperBound

List of usage examples for com.google.gwt.core.ext.typeinfo JWildcardType getUpperBound

Introduction

In this page you can find the example usage for com.google.gwt.core.ext.typeinfo JWildcardType getUpperBound.

Prototype

JClassType getUpperBound();

Source Link

Usage

From source file:com.kk_electronic.gwt.rebind.RemoteServiceGenerator.java

License:Open Source License

private void writeTypeInfo(SourceWriter sw, JType type) {
    JWildcardType w = type.isWildcard();
    if (w != null) {
        type = w.getUpperBound();
    }//w w w.j a  v  a  2  s.c  o  m
    sw.print(type.getQualifiedSourceName() + ".class");
    sw.print(",");
    JParameterizedType x = type.isParameterized();
    if (x != null) {
        for (JClassType nestedType : x.getTypeArgs()) {
            writeTypeInfo(sw, nestedType);
        }
    }
}