Examples of ConstantValueAttribute


Examples of net.sf.rej.java.attribute.ConstantValueAttribute

  public void setNameIndex(int nameIndex) {
    this.nameIndex = nameIndex;
  }
 
  public ConstantPoolInfo getConstant() {
    ConstantValueAttribute attr = this.attributes.getConstantValueAttribute();
    if (attr != null) {
      int index = attr.getConstantIndex();
      ConstantPoolInfo cpi = this.pool.get(index);
      return cpi;
    }
   
    return null;
View Full Code Here

Examples of org.apache.harmony.pack200.bytecode.ConstantValueAttribute

                    // be e.g. KIB or KIH
                    if (type.equals("B") || type.equals("H"))
                        type = "I";
                    Object value = layout.getValue(result, type, cpBands.getConstantPool());
                    fieldAttributes[i][j]
                            .add(new ConstantValueAttribute(value));
                    debug("Processed value " + value + " for ConstantValue");
                }
            }
        }
        debug("unimplemented field_Signature_RS");
View Full Code Here

Examples of org.apache.harmony.pack200.bytecode.ConstantValueAttribute

                            || type.equals("C") || type.equals("Z"))
                        type = "I";
                    Object value = constantValueLayout.getValue(result, type,
                            cpBands.getConstantPool());
                    fieldAttributes[i][j]
                            .add(new ConstantValueAttribute(value));
                    constantValueIndex++;
                }
                if (signatureLayout.matches(flag)) {
                    // we've got a signature attribute
                    long result = fieldSignatureRS[signatureIndex];
View Full Code Here

Examples of org.apache.harmony.pack200.bytecode.ConstantValueAttribute

                    if (type.equals("B") || type.equals("H"))
                        type = "I";
                    Object value = layout.getValue(result, type, cpBands
                            .getConstantPool());
                    methodAttributes[i][j]
                            .add(new ConstantValueAttribute(value));
                    index++;
                }
            }
        }
    }
View Full Code Here

Examples of org.apache.harmony.pack200.bytecode.ConstantValueAttribute

            }
            if (signatureLayout.matches(flag)) {
                long result = classSignature[signatureIndex];
                Object value = signatureLayout.getValue(result, cpBands
                        .getConstantPool());
                classAttributes[i].add(new ConstantValueAttribute(value));
                signatureIndex++;
            }
            if (innerClassLayout.matches(flag)) {
                // Just create the tuples for now because the attributes are
                // decided at the end when creating class constant pools
View Full Code Here

Examples of org.apache.harmony.pack200.bytecode.ConstantValueAttribute

                            || type.equals("C") || type.equals("Z"))
                        type = "I";
                    Object value = constantValueLayout.getValue(result, type,
                            cpBands.getConstantPool());
                    fieldAttributes[i][j]
                            .add(new ConstantValueAttribute(value));
                    constantValueIndex++;
                }
                if (signatureLayout.matches(flag)) {
                    // we've got a signature attribute
                    long result = fieldSignatureRS[signatureIndex];
View Full Code Here

Examples of org.apache.harmony.pack200.bytecode.ConstantValueAttribute

                    if (type.equals("B") || type.equals("H"))
                        type = "I";
                    Object value = methodSignatureLayout.getValue(result, type, cpBands
                            .getConstantPool());
                    methodAttributes[i][j]
                            .add(new ConstantValueAttribute(value));
                    methodSignatureIndex++;
                }
                // Non-predefined attributes
                for (int k = 0; k < otherLayouts.length; k++) {
                    if(otherLayouts[k] != null && otherLayouts[k].matches(flag)) {
View Full Code Here

Examples of org.apache.harmony.pack200.bytecode.ConstantValueAttribute

            }
            if (signatureLayout.matches(flag)) {
                long result = classSignature[signatureIndex];
                Object value = signatureLayout.getValue(result, cpBands
                        .getConstantPool());
                classAttributes[i].add(new ConstantValueAttribute(value));
                signatureIndex++;
            }
            if (innerClassLayout.matches(flag)) {
                // Just create the tuples for now because the attributes are
                // decided at the end when creating class constant pools
View Full Code Here

Examples of org.apache.harmony.pack200.bytecode.ConstantValueAttribute

          // be e.g. KIB or KIH
          if (type.equals("B") || type.equals("H"))
            type = "I";
          Object value = layout.getValue(result, type, this);
          fieldAttributes[i][j]
              .add(new ConstantValueAttribute(value));
          debug("Processed value " + value + " for ConstantValue");
        }
      }
    }
    debug("unimplemented field_Signature_RS");
View Full Code Here

Examples of org.apache.harmony.unpack200.bytecode.ConstantValueAttribute

                            || type.equals("C") || type.equals("Z"))
                        type = "I";
                    ClassFileEntry value = constantValueLayout.getValue(result,
                            type, cpBands.getConstantPool());
                    fieldAttributes[i][j]
                            .add(new ConstantValueAttribute(value));
                    constantValueIndex++;
                }
                if (signatureLayout.matches(flag)) {
                    // we've got a signature attribute
                    long result = fieldSignatureRS[signatureIndex];
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.