erjang.beam.interpreter
Class Interpreter.Encoder

java.lang.Object
  extended by erjang.beam.interpreter.AbstractInterpreter.Encoder
      extended by erjang.beam.interpreter.Interpreter.Encoder
All Implemented Interfaces:
ModuleVisitor
Enclosing class:
Interpreter

public static class Interpreter.Encoder
extends AbstractInterpreter.Encoder


Constructor Summary
Interpreter.Encoder()
           
 
Method Summary
protected  EModule makeModule(java.lang.String name, char[] code, EObject[] consts, erjang.beam.interpreter.AbstractInterpreter.ValueJumpTable[] value_jump_tables, erjang.beam.interpreter.AbstractInterpreter.ArityJumpTable[] arity_jump_tables, java.util.List<erjang.beam.interpreter.AbstractInterpreter.FunIDWithEntry> exports, java.util.List<erjang.beam.interpreter.AbstractInterpreter.FunIDWithGuardedness> imports)
           
 FunctionVisitor visitFunction(EAtom name, int arity, int startLabel)
          Visit function
 
Methods inherited from class erjang.beam.interpreter.AbstractInterpreter.Encoder
codePos, declareFunction, emit, emit, emitAt, emitAt, emitPlaceholder, encodeArityJumpTable, encodeExtFun_common, encodeExtFun, encodeGuardExtFun, encodeLabel, encodeLiteral, encodeValueJumpTable, nop, registerLabel, toEModule, visitAttribute, visitEnd, visitExport, visitModule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interpreter.Encoder

public Interpreter.Encoder()
Method Detail

makeModule

protected EModule makeModule(java.lang.String name,
                             char[] code,
                             EObject[] consts,
                             erjang.beam.interpreter.AbstractInterpreter.ValueJumpTable[] value_jump_tables,
                             erjang.beam.interpreter.AbstractInterpreter.ArityJumpTable[] arity_jump_tables,
                             java.util.List<erjang.beam.interpreter.AbstractInterpreter.FunIDWithEntry> exports,
                             java.util.List<erjang.beam.interpreter.AbstractInterpreter.FunIDWithGuardedness> imports)
Specified by:
makeModule in class AbstractInterpreter.Encoder

visitFunction

public FunctionVisitor visitFunction(EAtom name,
                                     int arity,
                                     int startLabel)
Description copied from interface: ModuleVisitor
Visit function

Specified by:
visitFunction in interface ModuleVisitor
Specified by:
visitFunction in class AbstractInterpreter.Encoder