@specs-feup/alpakka
Version:
A Smali/APK source-to-source compiler written in Typescript
43 lines • 1.3 kB
JavaScript
import InstructionNode from "./InstructionNode.js";
var ThrowNode;
(function (ThrowNode) {
class Class extends InstructionNode.Class {
get jp() {
return this.scratchData.$jp;
}
}
ThrowNode.Class = Class;
class Builder extends InstructionNode.Builder {
constructor($jp) {
super(InstructionNode.Type.THROW, $jp);
}
buildData(data) {
return {
...super.buildData(data),
};
}
buildScratchData(scratchData) {
return {
...super.buildScratchData(scratchData),
};
}
}
ThrowNode.Builder = Builder;
ThrowNode.TypeGuard = {
isDataCompatible(data) {
if (!InstructionNode.TypeGuard.isDataCompatible(data))
return false;
const d = data;
if (d.instructionFlowNodeType !== InstructionNode.Type.THROW)
return false;
return true;
},
isScratchDataCompatible(scratchData) {
if (!InstructionNode.TypeGuard.isScratchDataCompatible(scratchData))
return false;
return true;
},
};
})(ThrowNode || (ThrowNode = {}));
export default ThrowNode;
//# sourceMappingURL=ThrowNode.js.map