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.36 kB
import ConditionNode from "./ConditionNode.js"; var TryCatchNode; (function (TryCatchNode) { class Class extends ConditionNode.Class { get jp() { return this.scratchData.$jp; } } TryCatchNode.Class = Class; class Builder extends ConditionNode.Builder { constructor(truePath, falsePath, $jp) { super(ConditionNode.Type.TRY_CATCH, truePath, falsePath, $jp); } buildData(data) { return { ...super.buildData(data), }; } buildScratchData(scratchData) { return { ...super.buildScratchData(scratchData), }; } } TryCatchNode.Builder = Builder; TryCatchNode.TypeGuard = { isDataCompatible(data) { if (!ConditionNode.TypeGuard.isDataCompatible(data)) return false; const d = data; if (d.conditionFlowNodeType !== ConditionNode.Type.TRY_CATCH) return false; return true; }, isScratchDataCompatible(scratchData) { if (!ConditionNode.TypeGuard.isScratchDataCompatible(scratchData)) return false; return true; }, }; })(TryCatchNode || (TryCatchNode = {})); export default TryCatchNode; //# sourceMappingURL=TryCatchNode.js.map