mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-05-03 15:44:27 +02:00
convenient methods
This commit is contained in:
parent
e7461b9de7
commit
10016e68ad
@ -15,6 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
package com.reandroid.arsc.value;
|
package com.reandroid.arsc.value;
|
||||||
|
|
||||||
|
import com.reandroid.arsc.array.ResValueMapArray;
|
||||||
import com.reandroid.arsc.base.Block;
|
import com.reandroid.arsc.base.Block;
|
||||||
import com.reandroid.arsc.base.BlockCounter;
|
import com.reandroid.arsc.base.BlockCounter;
|
||||||
import com.reandroid.arsc.chunk.PackageBlock;
|
import com.reandroid.arsc.chunk.PackageBlock;
|
||||||
@ -39,6 +40,20 @@
|
|||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ResValue getResValue(){
|
||||||
|
TableEntry<?, ?> tableEntry = getTableEntry();
|
||||||
|
if(tableEntry instanceof ResTableEntry){
|
||||||
|
return ((ResTableEntry)tableEntry).getValue();
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
public ResValueMapArray getResValueMapArray(){
|
||||||
|
TableEntry<?, ?> tableEntry = getTableEntry();
|
||||||
|
if(tableEntry instanceof ResTableMapEntry){
|
||||||
|
return ((ResTableMapEntry)tableEntry).getValue();
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
public SpecFlag getSpecFlag(){
|
public SpecFlag getSpecFlag(){
|
||||||
SpecBlock specBlock = getSpecBlock();
|
SpecBlock specBlock = getSpecBlock();
|
||||||
if(specBlock == null){
|
if(specBlock == null){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user