0.0.22 • Published 10 years ago

jvm-cfg v0.0.22

Weekly downloads
1
License
GPL-2.0
Repository
github
Last release
10 years ago

jvm-cfg

A control flow graph framework made for jvm.js

npm.io npm.io

import { Jar } from 'jvm';
import { BlockBuilder, FlowGraph } from 'jvm-cfg';
import * as _ from 'lodash';

Jar.unpack(this.jarFile)
  .then((jar) => {
    for (let [name, classInfo] of jar) {
      _.each(classInfo.methods, (method) => {
        let blocks = BlockBuilder.blocksFor(method.instructions);
        let graph = FlowGraph.fromBlocks(blocks);
        // interact with graph
      });
    }
  }).catch((err) => console.log(err));
0.0.22

10 years ago

0.0.21

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago