Tabnine Logo
PUTFIELD.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.bcel.generic.PUTFIELD
constructor

Best Java code snippets using org.apache.bcel.generic.PUTFIELD.<init> (Showing top 20 results out of 315)

origin: xalan/xalan

  il.append(DUP);
  il.append(new PUSH(cpg, _version));
  il.append(new PUTFIELD(field));
  il.append(DUP);
  il.append(new PUSH(cpg, _method));
  il.append(new PUTFIELD(field));
  il.append(DUP);
  il.append(new PUSH(cpg, _encoding));
  il.append(new PUTFIELD(field));
  il.append(DUP);
  il.append(new PUSH(cpg, _omitHeader));
  il.append(new PUTFIELD(field));
  il.append(DUP);
  il.append(new PUSH(cpg, _standalone));
  il.append(new PUTFIELD(field));
il.append(DUP);
il.append(new PUSH(cpg, _doctypeSystem));
il.append(new PUTFIELD(field));
field = cpg.addFieldref(TRANSLET_CLASS,"_doctypePublic",STRING_SIG);
il.append(DUP);
il.append(new PUSH(cpg, _doctypePublic));
il.append(new PUTFIELD(field));
  il.append(DUP);
origin: xalan/xalan

                    STATIC_NAMES_ARRAY_FIELD,
                    NAMES_INDEX_SIG)));
il.append(new PUTFIELD(cpg.addFieldref(TRANSLET_CLASS,
                    NAMES_INDEX,
                    NAMES_INDEX_SIG)));
                    STATIC_URIS_ARRAY_FIELD,
                    URIS_INDEX_SIG)));
il.append(new PUTFIELD(cpg.addFieldref(TRANSLET_CLASS,
                    URIS_INDEX,
                    URIS_INDEX_SIG)));
                    STATIC_TYPES_ARRAY_FIELD,
                    TYPES_INDEX_SIG)));
il.append(new PUTFIELD(cpg.addFieldref(TRANSLET_CLASS,
                    TYPES_INDEX,
                    TYPES_INDEX_SIG)));
                    STATIC_NAMESPACE_ARRAY_FIELD,
                    NAMESPACE_INDEX_SIG)));
il.append(new PUTFIELD(cpg.addFieldref(TRANSLET_CLASS,
                    NAMESPACE_INDEX,
                    NAMESPACE_INDEX_SIG)));
il.append(classGen.loadTranslet());
  il.append(new PUSH(cpg, AbstractTranslet.CURRENT_TRANSLET_VERSION));
il.append(new PUTFIELD(cpg.addFieldref(TRANSLET_CLASS,
                    TRANSLET_VERSION_INDEX,
                    TRANSLET_VERSION_INDEX_SIG)));
origin: xalan/xalan

il.append(new PUTFIELD(
  cpg.addFieldref(_className, var.getEscapedName(), 
  varType.toSignature())));
origin: xalan/xalan

  oldMethCopyInIL.append(
    loadLocal(oldLocalVarIndex, varType));
oldMethCopyInIL.append(new PUTFIELD(fieldRef));
newMethCopyOutIL.append(
    loadLocal(newLocalVarIndex, varType));
newMethCopyOutIL.append(new PUTFIELD(fieldRef));
origin: xalan/xalan

il.append(new PUTFIELD(cpg.addFieldref(classGen.getClassName(),
            name, signature)));
origin: spotbugs/spotbugs

  replacement = new PUTFIELD(index);
} else {
  replacement = new GETFIELD(index);
origin: xalan/xalan

il.append(new PUTFIELD(
cpg.addFieldref(sortRecordClass,
  var.getEscapedName(), varType.toSignature())));
origin: xalan/xalan

il.append(new PUTFIELD(
  cpg.addFieldref(sortRecordFactoryClass, var.getEscapedName(), 
    var.getType().toSignature())));
origin: xalan/xalan

il.append(new PUTFIELD(
  cpg.addFieldref(_className, var.getEscapedName(), 
  varType.toSignature())));
origin: xalan/xalan

il.append(new PUTFIELD(fieldIndexes[_level]));
final BranchHandle ifBlock2 = il.append(new GOTO(null));
origin: xalan/xalan

  il.append(new CHECKCAST(cpg.addClass(className)));
il.append(new PUTFIELD(cpg.addFieldref(classGen.getClassName(),
            name, signature)));
origin: xalan/xalan

il.append(new PUTFIELD(domField));
origin: xalan/xalan

  il.append(new PUTFIELD(iteratorIndex));
  ifBlock.setTarget(il.append(NOP));
} else {
origin: bcel/bcel

public PUTFIELD createPutField(String class_name, String name, Type t) {
 return new PUTFIELD(cp.addFieldref(class_name, name, t.getSignature()));
}
origin: org.apache.bcel/bcel

public PUTFIELD createPutField( final String class_name, final String name, final Type t ) {
  return new PUTFIELD(cp.addFieldref(class_name, name, t.getSignature()));
}
origin: bcel/bcel

/** Create a field instruction.
 *
 * @param class_name name of the accessed class
 * @param name name of the referenced field
 * @param type  type of field
 * @param kind how to access, i.e., GETFIELD, PUTFIELD, GETSTATIC, PUTSTATIC
 * @see Constants
 */
public FieldInstruction createFieldAccess(String class_name, String name, Type type, short kind) {
 int    index;
 String signature  = type.getSignature();
 index = cp.addFieldref(class_name, name, signature);
 switch(kind) {
 case Constants.GETFIELD:  return new GETFIELD(index);
 case Constants.PUTFIELD:  return new PUTFIELD(index);
 case Constants.GETSTATIC: return new GETSTATIC(index);
 case Constants.PUTSTATIC: return new PUTSTATIC(index);
 default:
  throw new RuntimeException("Oops: Unknown getfield kind:" + kind);
 }
}
origin: org.apache.bcel/bcel

/** Create a field instruction.
 *
 * @param class_name name of the accessed class
 * @param name name of the referenced field
 * @param type  type of field
 * @param kind how to access, i.e., GETFIELD, PUTFIELD, GETSTATIC, PUTSTATIC
 * @see Const
 */
public FieldInstruction createFieldAccess( final String class_name, final String name, final Type type, final short kind ) {
  int index;
  final String signature = type.getSignature();
  index = cp.addFieldref(class_name, name, signature);
  switch (kind) {
    case Const.GETFIELD:
      return new GETFIELD(index);
    case Const.PUTFIELD:
      return new PUTFIELD(index);
    case Const.GETSTATIC:
      return new GETSTATIC(index);
    case Const.PUTSTATIC:
      return new PUTSTATIC(index);
    default:
      throw new RuntimeException("Oops: Unknown getfield kind:" + kind);
  }
}
origin: org.apache.yoko/yoko-rmi-impl

static void emitOneArgConstructor(ClassGen stubClass, FieldGen handlerField) {
  String stubClassName = stubClass.getClassName();
  ConstantPoolGen cp = stubClass.getConstantPool();
  InstructionList il = new InstructionList();
  Type[] args = new Type[] { handlerField.getType() };
  MethodGen mg = new MethodGen(Constants.ACC_PUBLIC, Type.VOID, args,
      null, "<init>", stubClassName, il, cp);
  InstructionFactory fac = new InstructionFactory(stubClass, cp);
  // call super-constructor
  il.append(InstructionFactory.createThis());
  il.append(fac.createInvoke(stubClass.getSuperclassName(), "<init>",
      Type.VOID, Type.NO_ARGS, Constants.INVOKESPECIAL));
  // push this again...
  il.append(InstructionFactory.createThis());
  // push the handler
  il.append(InstructionFactory.createLoad(handlerField.getType(), 1));
  // put handlerField
  il.append(new PUTFIELD(cp.addFieldref(stubClassName, handlerField
      .getName(), handlerField.getSignature())));
  // return
  il.append(InstructionConstants.RETURN);
  // compute stack and locals...
  mg.setMaxStack();
  mg.setMaxLocals();
  stubClass.addMethod(mg.getMethod());
}
origin: org.apache.yoko/yoko-rmi-impl

static void emitInitializerConstructor(ClassGen stubClass,
    FieldGen handlerField, FieldGen initializerField) {
  String stubClassName = stubClass.getClassName();
  ConstantPoolGen cp = stubClass.getConstantPool();
  InstructionList il = new InstructionList();
  MethodGen mg = new MethodGen(Constants.ACC_PUBLIC, Type.VOID,
      Type.NO_ARGS, null, "<init>", stubClassName, il, cp);
  InstructionFactory fac = new InstructionFactory(stubClass, cp);
  // call super-constructor
  il.append(InstructionFactory.createThis());
  il.append(fac.createInvoke(stubClass.getSuperclassName(), "<init>",
      Type.VOID, Type.NO_ARGS, Constants.INVOKESPECIAL));
  // push "this"
  il.append(InstructionFactory.createThis());
  // get static initializer
  il.append(fac.createGetStatic(stubClassName,
      initializerField.getName(), initializerField.getType()));
  emitInvoke(il, fac, getStubHandlerRef);
  // checkCast
  il.append(fac.createCast(Type.OBJECT, handlerField.getType()));
  // put handlerField
  il.append(new PUTFIELD(cp.addFieldref(stubClassName, handlerField
      .getName(), handlerField.getSignature())));
  // return
  il.append(InstructionConstants.RETURN);
  // compute stack and locals...
  mg.setMaxStack();
  mg.setMaxLocals();
  stubClass.addMethod(mg.getMethod());
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan

il.append(new PUTFIELD(fieldIndexes[_level]));
final BranchHandle ifBlock2 = il.append(new GOTO(null));
org.apache.bcel.genericPUTFIELD<init>

Javadoc

Empty constructor needed for Instruction.readInstruction. Not to be used otherwise.

Popular methods of PUTFIELD

  • getFieldName
  • getFieldSize
  • getClassType
  • getType

Popular in Java

  • Finding current android device location
  • getSystemService (Context)
  • getSharedPreferences (Context)
  • getSupportFragmentManager (FragmentActivity)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Best IntelliJ plugins
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