Vector function ( Unit arg0 ) { Vector loc0 = new Vector ( ) ; Vector loc1 = UnitLibrary . getLibrary ( ) ; for ( int loc2 = 0 ; loc2 < loc1 . size ( ) ; loc2 ++ ) { Unit loc3 = ( Unit ) ( loc1 . elementAt ( loc2 ) ) ; if ( loc3 . hasSameType ( arg0 ) ) { loc0 . add ( loc3 ) ; } } return loc0 ; }
search library for all units with type equal to this one . concode_field_sep int _numCats concode_elem_sep String _name concode_elem_sep UParser _parser concode_elem_sep Vector _unitsLibrary concode_elem_sep String _uExpr concode_elem_sep boolean _debug concode_elem_sep Unit Identity concode_field_sep Vector getLibrary concode_elem_sep void addToLibrary concode_elem_sep Unit getClosestUnit concode_elem_sep String getName concode_elem_sep Unit getBaseUnit concode_elem_sep UParser getParser concode_elem_sep Unit getUnitByName concode_elem_sep int getNumCategories concode_elem_sep String getUExpr concode_elem_sep Unit getUnit