@Test void isPrimitive() { assertAll( () -> assertThat(type("byte").isPrimitive()) .isTrue(), () -> assertThat(type("void").isPrimitive()) .isFalse(), () -> assertThat(type("byte").isPrimitive(Type.Primitives.BYTE)) .isTrue(), () -> assertThat(type("byte").isPrimitive(Type.Primitives.INT)) .isFalse(), () -> assertThat(type("void").isPrimitive(Type.Primitives.BYTE)) .isFalse() ); }
@Override public boolean isPrimitive() { return typeBinding.isPrimitive() && !isVoid(); }
JType implements Type, Type.ArrayType { @Override public boolean isPrimitive() { return typeBinding.isPrimitive() && !isVoid(); } }
JType implements Type, Type.ArrayType { @Override public boolean isPrimitive() { return typeBinding.isPrimitive() && !isVoid(); } JType(JSema sema, ITypeBinding typeBinding); }
JType implements Type, Type.ArrayType { @Override public boolean isPrimitive() { return typeBinding.isPrimitive() && !isVoid(); } JType(JSema sema, ITypeBinding typeBinding); @Override boolean is(String fullyQualifiedName); @Override boolean isSubtypeOf(String fullyQualifiedName); @Override boolean isSubtypeOf(Type superType); @Override boolean isArray(); @Override boolean isClass(); @Override boolean isVoid(); @Override boolean isPrimitive(); @Override boolean isPrimitive(Primitives primitive); @Override boolean isUnknown(); @Override boolean isNumerical(); @Override String fullyQualifiedName(); @Override String name(); @Override String toString(); @Override Symbol.TypeSymbol symbol(); @Override Type erasure(); @Override Type elementType(); @Override boolean equals(Object obj); @Override int hashCode(); @Override boolean isParameterized(); @Override List<Type> typeArguments(); }
JType implements Type, Type.ArrayType { @Override public boolean isPrimitive() { return typeBinding.isPrimitive() && !isVoid(); } JType(JSema sema, ITypeBinding typeBinding); @Override boolean is(String fullyQualifiedName); @Override boolean isSubtypeOf(String fullyQualifiedName); @Override boolean isSubtypeOf(Type superType); @Override boolean isArray(); @Override boolean isClass(); @Override boolean isVoid(); @Override boolean isPrimitive(); @Override boolean isPrimitive(Primitives primitive); @Override boolean isUnknown(); @Override boolean isNumerical(); @Override String fullyQualifiedName(); @Override String name(); @Override String toString(); @Override Symbol.TypeSymbol symbol(); @Override Type erasure(); @Override Type elementType(); @Override boolean equals(Object obj); @Override int hashCode(); @Override boolean isParameterized(); @Override List<Type> typeArguments();  }