Object function ( String arg0 , String arg1 , Class < ? extends Object > arg2 ) { ArrayList < Object > loc0 = CONRAD . getInstancesFromConrad ( arg2 ) ; Object [ ] loc1 = new Object [ loc0 . size ( ) ] ; loc0 . toArray ( loc1 ) ; return chooseObject ( arg0 , arg1 , loc1 , loc1 [ 0 ] ) ; }
queries the user for an object that can be casted onto the class cl . here we parse the source tree and identify all objects that are sub classes of cl . next , the subclasses are created using the default constructor . only objects that can be created this way are listed . very convenient way to ask to user for an instance of a certain class . concode_field_sep PlaceHolder placeHolder concode_field_sep int queryInt concode_elem_sep double[] queryArray concode_elem_sep AnalyticPhantom queryPhantom concode_elem_sep Material queryMaterial concode_elem_sep boolean queryBoolean concode_elem_sep Object chooseObject concode_elem_sep int chooseIndex concode_elem_sep String queryString concode_elem_sep double queryDouble