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

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

Best Java code snippets using org.apache.bcel.generic.PUTFIELD (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: org.apache.bcel/bcel

@Override
public int consumeStack( final ConstantPoolGen cpg ) {
  return getFieldSize(cpg) + 1;
}
origin: bcel/bcel

String field_name = o.getFieldName(cpg);
JavaClass jc = Repository.lookupClass(o.getClassType(cpg).getClassName());
Field[] fields = jc.getFields();
Field f = null;
  ObjectType classtype = o.getClassType(cpg);
  ObjectType curr = new ObjectType(mg.getClassName());
origin: org.apache.bcel/bcel

final String field_name = o.getFieldName(cpg);
  if (field.getName().equals(field_name)) {
     final Type f_type = Type.getType(field.getSignature());
     final Type o_type = o.getType(cpg);
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: bcel/bcel

public int consumeStack(ConstantPoolGen cpg) { return getFieldSize(cpg) + 1; }
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);
 }
}
org.apache.bcel.genericPUTFIELD

Javadoc

PUTFIELD - Put field in object
Stack: ..., objectref, value -> ...
OR
Stack: ..., objectref, value.word1, value.word2 -> ...

Most used methods

  • <init>
  • getFieldName
  • getFieldSize
  • getClassType
  • getType

Popular in Java

  • Reactive rest calls using spring rest template
  • startActivity (Activity)
  • scheduleAtFixedRate (Timer)
  • getSystemService (Context)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JTable (javax.swing)
  • Top Vim 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