public LocalContained[] _contents(DefinitionKind limit_type, boolean exclude_inherited) { int target = limit_type.value(); Collection found; if (target == DefinitionKind._dk_all) found = cont; else { found = new ArrayList(); for (int i = 0; i < cont.size(); ++i) { LocalContained val = (LocalContained) cont.get(i); if (target == val.def_kind().value()) { if (!exclude_inherited || val.defined_in() == delegateFor) found.add(val); } } } LocalContained[] res = new LocalContained[found.size()]; res = (LocalContained[]) found.toArray(res); return res; }
public LocalContained[] _contents(DefinitionKind limit_type, boolean exclude_inherited) { int target = limit_type.value(); Collection found; if (target == DefinitionKind._dk_all) found = cont; else { found = new ArrayList(); for (int i = 0; i < cont.size(); ++i) { LocalContained val = (LocalContained) cont.get(i); if (target == val.def_kind().value()) { if (!exclude_inherited || val.defined_in() == delegateFor) found.add(val); } } } LocalContained[] res = new LocalContained[found.size()]; res = (LocalContained[]) found.toArray(res); return res; }
public LocalContained[] _contents(DefinitionKind limit_type, boolean exclude_inherited) { int target = limit_type.value(); Collection found; if (target == DefinitionKind._dk_all) found = cont; else { found = new ArrayList(); for (int i = 0; i < cont.size(); ++i) { LocalContained val = (LocalContained) cont.get(i); if (target == val.def_kind().value()) { if (!exclude_inherited || val.defined_in() == delegateFor) found.add(val); } } } LocalContained[] res = new LocalContained[found.size()]; res = (LocalContained[]) found.toArray(res); return res; }