public static ClassNode make ( String name ) { if ( name == null || name . length ( ) == 0 ) return DYNAMIC_TYPE ; for ( int i = 0 ; i < primitiveClassNames . length ; i ++ ) { if ( primitiveClassNames [ i ] . equals ( name ) ) return types [ i ] ; } for ( int i = 0 ; i < classes . length ; i ++ ) { String cname = classes [ i ] . getName ( ) ; if ( name . equals ( cname ) ) return types [ i ] ; } return makeWithoutCaching ( name ) ; }
Creates a ClassNode using a given class . If the name is one of the predefined ClassNodes then the corresponding ClassNode instance will be returned . If the name is null or of length 0 the dynamic type is returned