Package de.fub.bytecode.classfile

Examples of de.fub.bytecode.classfile.Field


      if (signature.equals(DOM_IMPL_SIG))
    signature = classGen.getDOMClassSig();

      // Add a new field to this class
      if (classGen.containsField(name) == null) {
    classGen.addField(new Field(ACC_PUBLIC,
              cpg.addUtf8(name),
              cpg.addUtf8(signature),
              null, cpg.getConstantPool()));

    // Push a reference to "this" for putfield
View Full Code Here


  InstructionList il = methodGen.getInstructionList();

  int[] fieldIndexes = getXSLTC().getNumberFieldIndexes();

  if (fieldIndexes[_level] == -1) {
      Field defaultNode = new Field(ACC_PRIVATE,
            cpg.addUtf8(FieldNames[_level]),
            cpg.addUtf8(NODE_COUNTER_SIG),
            null,
            cpg.getConstantPool());
View Full Code Here

  }
  else {
      String signature = _type.toSignature();
      if (signature.equals(DOM_IMPL_SIG))
    signature = classGen.getDOMClassSig();
      classGen.addField(new Field(ACC_PUBLIC, cpg.addUtf8(name),
          cpg.addUtf8(signature),
          null, cpg.getConstantPool()));
      il.append(classGen.loadTranslet());
      il.append(DUP);
      il.append(new PUSH(cpg, name));
View Full Code Here

            Util.getJCRefType(NODE_ITERATOR_SIG),
            il.getEnd(), null);

  // Add a new private field if this is the main class
  if (!classGen.isExternal()) {
      final Field iterator =
    new Field(ACC_PRIVATE,
        cpg.addUtf8(iteratorName),
        cpg.addUtf8(NODE_ITERATOR_SIG),
        null, cpg.getConstantPool());
      classGen.addField(iterator);
      iteratorIndex = cpg.addFieldref(classGen.getClassName(),
View Full Code Here

             "setStrength", "(I)V");

  // GTM: BCEL Changes:
  // GTM: Chged Field.ACC_PRIVATE --> Constants.ACC_PRIVATE
  //  Chged Field.ACC_STATIC  --> Constants.ACC_STATIC 
  sortRecord.addField(new Field(
        Constants.ACC_PRIVATE | Constants.ACC_STATIC,
        cpg.addUtf8("_compareType"),
        cpg.addUtf8("[I"),
        null, cpg.getConstantPool()));
  // GTM: BCEL Changes:
  // GTM: Chged Field.ACC_PRIVATE --> Constants.ACC_PRIVATE
  //  Chged Field.ACC_STATIC  --> Constants.ACC_STATIC 
  sortRecord.addField(new Field(
        Constants.ACC_PRIVATE | Constants.ACC_STATIC,
        cpg.addUtf8("_sortOrder"),
        cpg.addUtf8("[I"),
        null, cpg.getConstantPool()));
View Full Code Here

  else {
      String signature = _type.toSignature();

      // Global variables are store in class fields
      if (classGen.containsField(name) == null) {
    classGen.addField(new Field(ACC_PUBLIC,
              cpg.addUtf8(name),
              cpg.addUtf8(signature),
              null, cpg.getConstantPool()));

    // Push a reference to "this" for putfield
View Full Code Here

    il.append(_type.STORE(_local.getIndex()));
      }
  }
  else {
      if (classGen.containsField(name) == null) {
    classGen.addField(new Field(ACC_PUBLIC, cpg.addUtf8(name),
              cpg.addUtf8(signature),
              null, cpg.getConstantPool()));
    il.append(classGen.loadTranslet());
    il.append(DUP);
    il.append(new PUSH(cpg, name));
View Full Code Here

            Util.getJCRefType(NODE_ITERATOR_SIG),
            il.getEnd(), null);

  // Add a new private field if this is the main class
  if (!classGen.isExternal()) {
      final Field iterator =
    new Field(ACC_PRIVATE,
        cpg.addUtf8(iteratorName),
        cpg.addUtf8(NODE_ITERATOR_SIG),
        null, cpg.getConstantPool());
      classGen.addField(iterator);
      iteratorIndex = cpg.addFieldref(classGen.getClassName(),
View Full Code Here

  InstructionList il = methodGen.getInstructionList();

  int[] fieldIndexes = getXSLTC().getNumberFieldIndexes();

  if (fieldIndexes[_level] == -1) {
      Field defaultNode = new Field(ACC_PRIVATE,
            cpg.addUtf8(FieldNames[_level]),
            cpg.addUtf8(NODE_COUNTER_SIG),
            null,
            cpg.getConstantPool());
View Full Code Here

TOP

Related Classes of de.fub.bytecode.classfile.Field

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.