Ejemplo n.º 1
0
  /** Applies the given stack map frame visitor to all stack map frames. */
  public void stackMapFramesAccept(
      Clazz clazz,
      Method method,
      CodeAttribute codeAttribute,
      StackMapFrameVisitor stackMapFrameVisitor) {
    for (int index = 0; index < u2stackMapFramesCount; index++) {
      FullFrame stackMapFrame = stackMapFrames[index];

      // We don't need double dispatching here, since there is only one
      // type of StackMapFrame.
      stackMapFrameVisitor.visitFullFrame(
          clazz, method, codeAttribute, stackMapFrame.getOffsetDelta(), stackMapFrame);
    }
  }
Ejemplo n.º 2
0
 public void visitFullFrame(
     Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, FullFrame fullFrame) {
   // Mark the constant pool entries referenced by the verification types.
   fullFrame.variablesAccept(clazz, method, codeAttribute, offset, this);
   fullFrame.stackAccept(clazz, method, codeAttribute, offset, this);
 }