UNPKG

@specs-feup/alpakka

Version:

Alpakka is a [LARA Framework](https://github.com/specs-feup/lara-framework) source-to-source compiler for Android's [smali](https://github.com/google/smali) syntax. It enables the analysis and transformation of Android apps through APK files.

43 lines 1.29 kB
import InstructionNode from "./InstructionNode.js"; var GotoNode; (function (GotoNode) { class Class extends InstructionNode.Class { get jp() { return this.scratchData.$jp; } } GotoNode.Class = Class; class Builder extends InstructionNode.Builder { constructor($jp) { super(InstructionNode.Type.GOTO, $jp); } buildData(data) { return { ...super.buildData(data), }; } buildScratchData(scratchData) { return { ...super.buildScratchData(scratchData), }; } } GotoNode.Builder = Builder; GotoNode.TypeGuard = { isDataCompatible(data) { if (!InstructionNode.TypeGuard.isDataCompatible(data)) return false; const d = data; if (d.instructionFlowNodeType !== InstructionNode.Type.GOTO) return false; return true; }, isScratchDataCompatible(scratchData) { if (!InstructionNode.TypeGuard.isScratchDataCompatible(scratchData)) return false; return true; }, }; })(GotoNode || (GotoNode = {})); export default GotoNode; //# sourceMappingURL=GotoNode.js.map