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(); }
public boolean isPrimitive() { return _type.isPrimitive(); }
public TypeRef elementType() { return typeRef(_type.elementType()); }