Codota Logo
MethodWriter.addSuccessor
Code IndexAdd Codota to your IDE (free)

How to use
addSuccessor
method
in
org.mvel2.asm.MethodWriter

Best Java code snippets using org.mvel2.asm.MethodWriter.addSuccessor (Showing top 6 results out of 315)

origin: io.virtdata/virtdata-lib-realer

private void visitSwitchInsn(final Label dflt, final Label[] labels) {
  // Label currentBlock = this.currentBlock;
  if (currentBlock != null) {
    if (compute == FRAMES) {
      currentBlock.frame.execute(Opcodes.LOOKUPSWITCH, 0, null, null);
      // adds current block successors
      addSuccessor(Edge.NORMAL, dflt);
      dflt.getFirst().status |= Label.TARGET;
      for (int i = 0; i < labels.length; ++i) {
        addSuccessor(Edge.NORMAL, labels[i]);
        labels[i].getFirst().status |= Label.TARGET;
      }
    } else {
      // updates current stack size (max stack size unchanged)
      --stackSize;
      // adds current block successors
      addSuccessor(stackSize, dflt);
      for (int i = 0; i < labels.length; ++i) {
        addSuccessor(stackSize, labels[i]);
      }
    }
    // ends current block
    noSuccessor();
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.mvel

private void visitSwitchInsn(final Label dflt, final Label[] labels) {
  // Label currentBlock = this.currentBlock;
  if (currentBlock != null) {
    if (compute == FRAMES) {
      currentBlock.frame.execute(Opcodes.LOOKUPSWITCH, 0, null, null);
      // adds current ast successors
      addSuccessor(Edge.NORMAL, dflt);
      dflt.getFirst().status |= Label.TARGET;
      for (int i = 0; i < labels.length; ++i) {
        addSuccessor(Edge.NORMAL, labels[i]);
        labels[i].getFirst().status |= Label.TARGET;
      }
    }
    else {
      // updates current stack size (max stack size unchanged)
      --stackSize;
      // adds current ast successors
      addSuccessor(stackSize, dflt);
      for (int i = 0; i < labels.length; ++i) {
        addSuccessor(stackSize, labels[i]);
      }
    }
    // ends current ast
    noSuccessor();
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.mvel

addSuccessor(Edge.NORMAL, label);
addSuccessor(stackSize, label);
origin: io.virtdata/virtdata-lib-realer

addSuccessor(Edge.NORMAL, label);
addSuccessor(stackSize, label);
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.mvel

addSuccessor(Edge.NORMAL, label);
if (opcode != Opcodes.GOTO) {
  jsr = true;
  currentBlock.status |= Label.JSR;
  addSuccessor(stackSize + 1, label);
  addSuccessor(stackSize, label);
origin: io.virtdata/virtdata-lib-realer

addSuccessor(Edge.NORMAL, label);
if (opcode != Opcodes.GOTO) {
  addSuccessor(stackSize + 1, label);
  addSuccessor(stackSize, label);
org.mvel2.asmMethodWriteraddSuccessor

Javadoc

Adds a successor to the #currentBlock ast.

Popular methods of MethodWriter

  • <init>
    Constructs a new MethodWriter.
  • visitLabel
  • visitSwitchInsn
  • endFrame
    Checks if the visit of the current frame #frame is finished, and if yes, write it in the StackMapTab
  • getSize
    Returns the size of the bytecode of this method.
  • noSuccessor
    Ends the current basic ast. This method must be used in the case where the current basic ast does no
  • put
    Puts the bytecode of this method in the given byte vector.
  • startFrame
    Starts the visit of a stack map frame.
  • visitFrame
    Visits a frame that has been computed from scratch.
  • writeFrame
    Compress and writes the current frame #frame in the StackMapTable attribute.
  • writeFrameType
  • writeFrameTypes
    Writes some types of the current frame #frame into the StackMapTableAttribute. This method converts
  • writeFrameType,
  • writeFrameTypes,
  • addSuccessorToCurrentBasicBlock,
  • canCopyMethodAttributes,
  • collectAttributePrototypes,
  • computeAllFrames,
  • computeMaxStackAndLocal,
  • computeMethodInfoSize,
  • endCurrentBasicBlockWithNoSuccessor

Popular in Java

  • Making http post requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • getExternalFilesDir (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now