Example usage for com.google.gwt.core.ext.typeinfo JniConstants DESC_SHORT

List of usage examples for com.google.gwt.core.ext.typeinfo JniConstants DESC_SHORT

Introduction

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

Prototype

char DESC_SHORT

To view the source code for com.google.gwt.core.ext.typeinfo JniConstants DESC_SHORT.

Click Source Link

Usage

From source file:com.google.web.bindery.requestfactory.apt.DescriptorBuilder.java

License:Apache License

@Override
public String visitPrimitive(PrimitiveType x, State state) {
    switch (x.getKind()) {
    case BOOLEAN:
        return String.valueOf(JniConstants.DESC_BOOLEAN);
    case BYTE:/*from  ww  w  .  j  a va  2  s.c  om*/
        return String.valueOf(JniConstants.DESC_BYTE);
    case CHAR:
        return String.valueOf(JniConstants.DESC_CHAR);
    case DOUBLE:
        return String.valueOf(JniConstants.DESC_DOUBLE);
    case FLOAT:
        return String.valueOf(JniConstants.DESC_FLOAT);
    case INT:
        return String.valueOf(JniConstants.DESC_INT);
    case LONG:
        return String.valueOf(JniConstants.DESC_LONG);
    case SHORT:
        return String.valueOf(JniConstants.DESC_SHORT);
    }
    return super.visitPrimitive(x, state);
}