if (!spec.instanceMatches(resources[i].getName(), resources[i].getId())) { continue;
if (!spec.instanceMatches(resources[i].getName(), resources[i].getId())) { continue;
void matchSpec(StatSpec spec, List matchedValues) { if (spec.typeMatches(this.type.getName())) { if (spec.instanceMatches(this.getName(), this.getId())) { for (int statIdx=0; statIdx < values.length; statIdx++) { if (values[statIdx] != null) { if (spec.statMatches(values[statIdx].getDescriptor().getName())) { matchedValues.add(values[statIdx]); } } } } } }
final Iterator iter = resources.iterator(); iter.hasNext();) { final StatArchiveReader.ResourceInst ri = (StatArchiveReader.ResourceInst) iter.next(); final String resourceName = ri.getName(); assertNotNull(resourceName);
final Iterator iter = resources.iterator(); iter.hasNext();) { final StatArchiveReader.ResourceInst ri = (StatArchiveReader.ResourceInst) iter.next(); final String resourceName = ri.getName(); assertNotNull(resourceName);
Iterator iter = resources.iterator(); iter.hasNext();) { StatArchiveReader.ResourceInst ri = (StatArchiveReader.ResourceInst) iter.next(); String resourceName = ri.getName(); assertNotNull(resourceName);
final String statsName = ri.getName(); assertNotNull(statsName); assertEquals("st1_1", statsName);
final String statsName = ri.getName(); assertNotNull(statsName); assertEquals("st1_1", statsName);
final String statsName = ri.getName(); assertNotNull(statsName); assertEquals("st1_1", statsName);
final String statsName = ri.getName(); assertNotNull(statsName); assertEquals("st1_1", statsName);
final String statsName = ri.getName(); assertNotNull(statsName); assertEquals("st1_1", statsName);
final String statsName = ri.getName(); assertNotNull(statsName); assertEquals("st1_1", statsName);
boolean loadStat(StatDescriptor stat, ResourceInst resource) { ResourceType type = resource.getType(); if (!resource.isLoaded() || !type.isLoaded() || !stat.isLoaded()) { return false; } if (filters == null || filters.length == 0) { return true; } else { String textId = resource.getName(); long numericId = resource.getId(); for (int i=0; i < filters.length; i++) { if (filters[i].statMatches(stat.getName()) && filters[i].typeMatches(type.getName()) && filters[i].instanceMatches(textId, numericId)) { return true; } } return false; } } private void readResourceTypeToken() throws IOException {
boolean loadStat(StatDescriptor stat, ResourceInst resource) { ResourceType type = resource.getType(); if (!resource.isLoaded() || !type.isLoaded() || !stat.isLoaded()) { return false; } if (filters == null || filters.length == 0) { return true; } else { String textId = resource.getName(); long numericId = resource.getId(); for (int i=0; i < filters.length; i++) { if (filters[i].statMatches(stat.getName()) && filters[i].typeMatches(type.getName()) && filters[i].instanceMatches(textId, numericId)) { return true; } } return false; } } private void readResourceTypeToken() throws IOException {
void matchSpec(StatSpec spec, List matchedValues) { if (spec.typeMatches(this.type.getName())) { if (spec.instanceMatches(this.getName(), this.getId())) { for (int statIdx=0; statIdx < values.length; statIdx++) { if (values[statIdx] != null) { if (spec.statMatches(values[statIdx].getDescriptor().getName())) { matchedValues.add(values[statIdx]); } } } } } }