MCPcopy Index your code
hub / github.com/beanshell/beanshell / isPrimitive

Method isPrimitive

src/bsh/Types.java:695–697  ·  view source on GitHub ↗

Consider BigInteger and BigDecimal as primitives. @param type the class type to inspect @return true if class isPrimitive, or BigInteger, or BigDecimal

(Class<?> type)

Source from the content-addressed store, hash-verified

693 * @param type the class type to inspect
694 * @return true if class isPrimitive, or BigInteger, or BigDecimal */
695 public static boolean isPrimitive(Class<?> type) {
696 return type.isPrimitive() || type == BigInteger.class || type == BigDecimal.class;
697 }
698
699 /** Consider Character as a number type.
700 * @param value the value to inspect.

Callers 10

wrapMethod · 0.45
getDefaultValueMethod · 0.45
castPrimitiveMethod · 0.45
isWrapperTypeMethod · 0.45
castWrapperMethod · 0.45
isJavaBaseAssignableMethod · 0.45
castObjectMethod · 0.45
getTypeMethod · 0.45
getDescriptorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected