@Test public void testJvmType() { assertEquals("B", UnsignedPrimitiveTypeUsage.UBYTE.jvmType().getSignature()); assertEquals("S", UnsignedPrimitiveTypeUsage.USHORT.jvmType().getSignature()); assertEquals("I", UnsignedPrimitiveTypeUsage.UINT.jvmType().getSignature()); assertEquals("J", UnsignedPrimitiveTypeUsage.ULONG.jvmType().getSignature()); assertEquals("F", UnsignedPrimitiveTypeUsage.UFLOAT.jvmType().getSignature()); assertEquals("D", UnsignedPrimitiveTypeUsage.UDOUBLE.jvmType().getSignature()); }
@Override public JvmType jvmType() { return correspondingPrimitiveTypeUsage.jvmType(); }
UnsignedPrimitiveTypeUsage implements TypeUsage { @Override public JvmType jvmType() { return correspondingPrimitiveTypeUsage.jvmType(); } }
UnsignedPrimitiveTypeUsage implements TypeUsage { @Override public JvmType jvmType() { return correspondingPrimitiveTypeUsage.jvmType(); } private  UnsignedPrimitiveTypeUsage(String name, PrimitiveTypeUsage correspondingPrimitiveTypeUsage); private  UnsignedPrimitiveTypeUsage(String name, PrimitiveTypeUsage correspondingPrimitiveTypeUsage,
                                       List<UnsignedPrimitiveTypeUsage> promotionTypes); }
UnsignedPrimitiveTypeUsage implements TypeUsage { @Override public JvmType jvmType() { return correspondingPrimitiveTypeUsage.jvmType(); } private  UnsignedPrimitiveTypeUsage(String name, PrimitiveTypeUsage correspondingPrimitiveTypeUsage); private  UnsignedPrimitiveTypeUsage(String name, PrimitiveTypeUsage correspondingPrimitiveTypeUsage,
                                       List<UnsignedPrimitiveTypeUsage> promotionTypes); @Override boolean isPrimitive(); @Override PrimitiveTypeUsage asPrimitiveTypeUsage(); @Override TypeUsage replaceTypeVariables(Map<String, T> typeParams); @Override boolean sameType(TypeUsage other); @Override JvmType jvmType(); @Override boolean canBeAssignedTo(TypeUsage type); @Override String toString(); static Optional<UnsignedPrimitiveTypeUsage> findByName(String typeName); static UnsignedPrimitiveTypeUsage getByName(String typeName); @Override boolean hasInstanceField(String fieldName, Symbol instance); @Override Symbol getInstanceField(String fieldName, Symbol instance); @Override String describe(); @Override Optional<Invokable> getMethod(String method, boolean staticContext); }
UnsignedPrimitiveTypeUsage implements TypeUsage { @Override public JvmType jvmType() { return correspondingPrimitiveTypeUsage.jvmType(); } private  UnsignedPrimitiveTypeUsage(String name, PrimitiveTypeUsage correspondingPrimitiveTypeUsage); private  UnsignedPrimitiveTypeUsage(String name, PrimitiveTypeUsage correspondingPrimitiveTypeUsage,
                                       List<UnsignedPrimitiveTypeUsage> promotionTypes); @Override boolean isPrimitive(); @Override PrimitiveTypeUsage asPrimitiveTypeUsage(); @Override TypeUsage replaceTypeVariables(Map<String, T> typeParams); @Override boolean sameType(TypeUsage other); @Override JvmType jvmType(); @Override boolean canBeAssignedTo(TypeUsage type); @Override String toString(); static Optional<UnsignedPrimitiveTypeUsage> findByName(String typeName); static UnsignedPrimitiveTypeUsage getByName(String typeName); @Override boolean hasInstanceField(String fieldName, Symbol instance); @Override Symbol getInstanceField(String fieldName, Symbol instance); @Override String describe(); @Override Optional<Invokable> getMethod(String method, boolean staticContext); static UnsignedPrimitiveTypeUsage ULONG; static UnsignedPrimitiveTypeUsage UINT; static UnsignedPrimitiveTypeUsage USHORT; static UnsignedPrimitiveTypeUsage UBYTE; static UnsignedPrimitiveTypeUsage UDOUBLE; static UnsignedPrimitiveTypeUsage UFLOAT; static ImmutableList<UnsignedPrimitiveTypeUsage> ALL; }