Tabnine Logo
ISTORE
Code IndexAdd Tabnine to your IDE (free)

How to use
ISTORE
in
org.apache.bcel.generic

Best Java code snippets using org.apache.bcel.generic.ISTORE (Showing top 20 results out of 315)

origin: xalan/xalan

  public Instruction STORE(int slot) {
  return new ISTORE(slot);
  }
}
origin: xalan/xalan

!match[3].hasTargeters() &&
iload1.getIndex() == iload2.getIndex() &&
iload2.getIndex() == istore.getIndex())
origin: xalan/xalan

public Instruction STORE(int slot) {
return new ISTORE(slot);
}
origin: contra/JMD

private InstructionHandle findIStore(InstructionHandle start, int idx) {
  InstructionHandle ih = start;
  while (ih != null) {
    if (ih.getInstruction() instanceof ISTORE) {
      if (((ISTORE) ih.getInstruction()).getIndex() == idx) {
        return ih;
      }
    }
    ih = ih.getNext();
  }
  return null;
}
origin: xalan/xalan

public Instruction STORE(int slot) {
return new ISTORE(slot);
}
origin: bcel/bcel

/** Checks if the constraints of operands of the said instruction(s) are satisfied. */
public void visitISTORE(ISTORE o){
  int idx = o.getIndex();
  if (idx < 0){
    constraintViolated(o, "Index '"+idx+"' must be non-negative.");
  }
  else{
    int maxminus1 =  max_locals()-1;
    if (idx > maxminus1){
      constraintViolated(o, "Index '"+idx+"' must not be greater than max_locals-1 '"+maxminus1+"'.");
    }
  }
}

origin: xalan/xalan

public Instruction storeCurrentNode() {
return _istoreCurrent != null
  ? _istoreCurrent
  : (_istoreCurrent = new ISTORE(getLocalIndex("current")));
}
origin: org.apache.bcel/bcel

/** Checks if the constraints of operands of the said instruction(s) are satisfied. */
@Override
public void visitISTORE(final ISTORE o) {
  final int idx = o.getIndex();
  if (idx < 0) {
    constraintViolated(o, "Index '"+idx+"' must be non-negative.");
  }
  else{
    final int maxminus1 =  max_locals()-1;
    if (idx > maxminus1) {
      constraintViolated(o, "Index '"+idx+"' must not be greater than max_locals-1 '"+maxminus1+"'.");
    }
  }
}
origin: xalan/xalan

public MatchGenerator(int access_flags, Type return_type, 
     Type[] arg_types, String[] arg_names, 
     String method_name, String class_name,
     InstructionList il, ConstantPoolGen cp) {
super(access_flags, return_type, arg_types, arg_names, method_name, 
   class_name, il, cp);

_iloadCurrent = new ILOAD(CURRENT_INDEX);
_istoreCurrent = new ISTORE(CURRENT_INDEX);
}
origin: org.apache.bcel/bcel

/** Symbolically executes the corresponding Java Virtual Machine instruction. */
@Override
public void visitISTORE(final ISTORE o) {
  locals().set(o.getIndex(), stack().pop());
}
/** Symbolically executes the corresponding Java Virtual Machine instruction. */
origin: xalan/xalan

/**
 * Helper method to generate an instance of a subclass of
 * {@link StoreInstruction} based on the specified {@link Type} that will
 * store a value in the specified local variable
 * @param index the JVM stack frame index of the variable that is to be
 * stored
 * @param type the {@link Type} of the variable
 * @return the generated {@link StoredInstruction}
 */
private static Instruction storeLocal(int index, Type type) {
  if (type == Type.BOOLEAN) {
    return new ISTORE(index);
  } else if (type == Type.INT) {
    return new ISTORE(index);
  } else if (type == Type.SHORT) {
    return new ISTORE(index);
  } else if (type == Type.LONG) {
    return new LSTORE(index);
  } else if (type == Type.BYTE) {
    return new ISTORE(index);
  } else if (type == Type.CHAR) {
    return new ISTORE(index);
  } else if (type == Type.FLOAT) {
    return new FSTORE(index);
  } else if (type == Type.DOUBLE) {
    return new DSTORE(index);
  } else {
    return new ASTORE(index);
  }
}
origin: bcel/bcel

/** Symbolically executes the corresponding Java Virtual Machine instruction. */ 
public void visitISTORE(ISTORE o){
  locals().set(o.getIndex(), stack().pop());
}
/** Symbolically executes the corresponding Java Virtual Machine instruction. */ 
origin: xalan/xalan

public TestGenerator(int access_flags, Type return_type,
     Type[] arg_types, String[] arg_names,
     String method_name, String class_name,
     InstructionList il, ConstantPoolGen cp) {
super(access_flags, return_type, arg_types, arg_names, method_name, 
   class_name, il, cp);

_iloadCurrent  = new ILOAD(CURRENT_NODE_INDEX);
_istoreCurrent = new ISTORE(CURRENT_NODE_INDEX);
_iloadContext  = new ILOAD(CONTEXT_NODE_INDEX);
_istoreContext  = new ILOAD(CONTEXT_NODE_INDEX);
_astoreIterator = new ASTORE(ITERATOR_INDEX);
_aloadIterator  = new ALOAD(ITERATOR_INDEX);
}
origin: contra/JMD

InstructionHandle iStoreHandle = finder.getInstructionList().getInstructionHandles()[1];
ISTORE iStore = (ISTORE) iStoreHandle.getInstruction();
assert idx == iStore.getIndex() && idx == mGen.getMaxLocals() - 1 : "expected " + idx
    + " found " + iStore.getIndex();
GETSTATIC gstatCtrlField = (GETSTATIC) iStoreHandle.getPrev().getInstruction();
String className = gstatCtrlField.getName(cg.getConstantPool());
origin: xalan/xalan

il.append(new INVOKEINTERFACE(gitr, 1));
  il.append(toplevel.nextNode());
current.setStart(il.append(new ISTORE(current.getIndex())));
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan

!match[3].hasTargeters() &&
iload1.getIndex() == iload2.getIndex() &&
iload2.getIndex() == istore.getIndex())
origin: xalan/xalan

public CompareGenerator(int access_flags, Type return_type,
      Type[] arg_types, String[] arg_names,
      String method_name, String class_name,
      InstructionList il, ConstantPoolGen cp) {
super(access_flags, return_type, arg_types, arg_names, method_name, 
   class_name, il, cp);

_iloadCurrent = new ILOAD(CURRENT_INDEX);
_istoreCurrent = new ISTORE(CURRENT_INDEX);
_aloadDom = new ALOAD(DOM_INDEX);
_iloadLast = new ILOAD(LAST_INDEX);
LocalVariableGen iterator =
  addLocalVariable("iterator",
       Util.getJCRefType(Constants.NODE_ITERATOR_SIG),
       null, null);
ITERATOR_INDEX = iterator.getIndex();
_aloadIterator = new ALOAD(ITERATOR_INDEX);
_astoreIterator = new ASTORE(ITERATOR_INDEX);
il.append(new ACONST_NULL());
il.append(storeIterator());
}
origin: xalan/xalan

current.setStart(mainIL.append(new ISTORE(_currentIndex)));
origin: xalan/xalan

ilLoop.append(methodGen.nextNode());
ilLoop.append(DUP);
ilLoop.append(new ISTORE(_currentIndex));
origin: xalan/xalan

             null, null);
predicateValueTemp.setStart(
    il.append(new ISTORE(predicateValueTemp.getIndex())));
org.apache.bcel.genericISTORE

Javadoc

ISTORE - Store int from stack into local variable
Stack: ..., value -> ... 

Most used methods

  • <init>
    Store int into local variable
  • getIndex

Popular in Java

  • Start an intent from android
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • addToBackStack (FragmentTransaction)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now