Example #1
0
 private void commit() {
   for (ClassNode c : classes) {
     for (MethodNode m : c.methods()) {
       m.releaseGraph();
       m.editor().commit();
     }
     c.editor.commit();
     c.info.commit();
   }
 }
Example #2
0
  public FieldNode field(MemberRef ref) {

    for (ClassNode c : classes()) {
      if (ref.declaringClass().equals(Type.getType("L" + c.name() + ";"))) {
        for (FieldNode f : c.fields()) {
          if (ref.nameAndType().equals(f.editor.nameAndType())) {
            return f;
          }
        }
      }
    }
    return null;
  }
Example #3
0
 public void accept(NodeVisitor visitor) {
   visitor.visitApplication(this);
   for (ClassNode c : classes) {
     c.accept(visitor);
   }
 }