Package erjang.beam.repr

Examples of erjang.beam.repr.ModuleRepr


public class ErjangBeamDisLoader extends erjang.beam.BeamLoader {
  public ErjangBeamDisLoader() { }

  @Override
  public BeamFileData load(File file) throws IOException {
    ModuleRepr mod = BeamLoader.read(file.getAbsolutePath());
    mod.rewrite(new Rewriter());
    return mod;
  }
View Full Code Here


    return mod;
  }

  @Override
  public BeamFileData load(byte[] data) throws IOException {
    ModuleRepr mod = BeamLoader.parse(data);
    mod.rewrite(new Rewriter());
    return mod;
  }
View Full Code Here

  private EBinary module_md5;
    //======================================================================
  public ModuleRepr toModuleRepr() {
    FunctionRepr[] functions = new FunctionRepr[functionReprs.size()];
    functions = functionReprs.toArray(functions);
    return new ModuleRepr(this,
                atom(1), exports,
                (ESeq)attributes, (ESeq)compilation_info,
                functions);
  }
View Full Code Here

TOP

Related Classes of erjang.beam.repr.ModuleRepr

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.