예제 #1
0
 private String primitiveName() {
   switch (_type.className().charAt(0)) {
     case Type.ARRAY_CHAR:
       return elementType().name() + "[]";
     case Type.CHARACTER_CHAR:
       return "char";
     case Type.BYTE_CHAR:
       return "byte";
     case Type.SHORT_CHAR:
       return "short";
     case Type.INTEGER_CHAR:
       return "int";
     case Type.LONG_CHAR:
       return "long";
     case Type.BOOLEAN_CHAR:
       return "boolean";
     case Type.FLOAT_CHAR:
       return "float";
     case Type.DOUBLE_CHAR:
       return "double";
   }
   throw new IllegalStateException();
 }
예제 #2
0
 public boolean isPrimitive() {
   return _type.isPrimitive();
 }
예제 #3
0
 public TypeRef elementType() {
   return typeRef(_type.elementType());
 }