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

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

Introduction

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

Prototype

char DESC_BYTE

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

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   w  ww . j  a v a  2  s.co  m
        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);
}