FileDocCategorySizeDatePackage
CodeEnv.javaAPI DocGlassfish v2 API2821Fri May 04 22:34:28 BST 2007com.sun.jdo.api.persistence.enhancer.classfile

CodeEnv

public class CodeEnv extends Object
Environment in which to decode the attributes of a CodeAttribute.

Fields Summary
private ConstantPool
constantPool
private Hashtable
targets
Constructors Summary
CodeEnv(ConstantPool constantPool)


    
    this.constantPool = constantPool;
  
Methods Summary
final InsnTargetfindTarget(int offset)

    Integer off = new Integer(offset);
    return (InsnTarget)targets.get(off);
  
final InsnTargetgetTarget(int offset)

    Integer off = new Integer(offset);
    InsnTarget targ = (InsnTarget)targets.get(off);
    if (targ == null) {
      targ = new InsnTarget(offset);
      targets.put(off, targ);
    }
    return targ;
  
final ConstantPoolpool()

    return constantPool;