예제 #1
0
 public MethodMemberNode firstMethod() {
   for (AbstractNode n : this) {
     if (n instanceof ReferenceNode) {
       if (n.insn() instanceof MethodInsnNode) return (MethodMemberNode) n;
     }
   }
   return null;
 }
예제 #2
0
 public FieldMemberNode firstField() {
   for (AbstractNode n : this) {
     if (n instanceof ReferenceNode) {
       if (n.insn() instanceof FieldInsnNode) return (FieldMemberNode) n;
     }
   }
   return null;
 }