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

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

Introduction

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

Prototype

char DESC_LONG

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

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 v  a 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);
}