
net.dongliu.apk.parser.struct.resource.ResourceMapEntry Maven / Gradle / Ivy
package net.dongliu.apk.parser.struct.resource;
/**
* @author dongliu.
*/
public class ResourceMapEntry extends ResourceEntry {
// Resource identifier of the parent mapping, or 0 if there is none.
//ResTable_ref specifies the parent Resource, if any, of this Resource.
// struct ResTable_ref { uint32_t ident; };
public long parent;
// Number of name/value pairs that follow for FLAG_COMPLEX. uint32_t
public long count;
public ResourceTableMap[] resourceTableMaps;
public ResourceMapEntry(ResourceEntry resourceEntry) {
this.size = resourceEntry.size;
this.flags = resourceEntry.flags;
this.key = resourceEntry.key;
}
@Override
public String toString() {
if (resourceTableMaps.length > 0) {
return resourceTableMaps[0].toString();
} else {
return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy