Example usage for com.google.gwt.dev.javac.typemodel JRawType getBaseType

List of usage examples for com.google.gwt.dev.javac.typemodel JRawType getBaseType

Introduction

In this page you can find the example usage for com.google.gwt.dev.javac.typemodel JRawType getBaseType.

Prototype

JGenericType getBaseType();

Source Link

Usage

From source file:com.guit.rebind.binder.GuitBinderGenerator.java

License:Apache License

private Object getModificationTime(JClassType type) {
    if (type instanceof JRealClassType) {
        JRealClassType sourceRealType = (JRealClassType) type;
        return sourceRealType.getLastModifiedTime();
    } else if (type instanceof JRawType) {
        JRawType r = (JRawType) type;
        return r.getBaseType().getLastModifiedTime();
    } else {/*from  w w  w .j  av  a 2  s  . co m*/
        throw new RuntimeException(type.getQualifiedSourceName() + " " + type.getClass().getCanonicalName());
    }
}