MCPcopy Create free account
hub / github.com/beanshell/beanshell / getType

Method getType

src/bsh/Primitive.java:196–207  ·  view source on GitHub ↗

Get the corresponding Java primitive TYPE class for this Primitive. @return the primitive TYPE class type of the value or Void.TYPE for Primitive.VOID or null value for type of Primitive.NULL

()

Source from the content-addressed store, hash-verified

194 Primitive.VOID or null value for type of Primitive.NULL
195 */
196 public Class getType()
197 {
198 if ( this == Primitive.VOID )
199 return Void.TYPE;
200
201 // NULL return null as type... we currently use null type to indicate
202 // loose typing throughout bsh.
203 if ( this == Primitive.NULL )
204 return null;
205
206 return unboxType( value.getClass() );
207 }
208
209 /**
210 Perform a binary operation on two Primitives or wrapper types.

Callers 2

castToTypeMethod · 0.95
unaryOperationMethod · 0.45

Calls 2

unboxTypeMethod · 0.95
getClassMethod · 0.80

Tested by

no test coverage detected