public void reset() { super.reset(); this.descriptorIndex = 0; this.referenceKind = 0; this.referenceIndex = 0; this.bootstrapMethodAttributeIndex = 0; } }
ConstantPoolEntry constantPoolEntry = new ConstantPoolEntry(); constantPoolEntry.reset(); int kind = getEntryKind(index); constantPoolEntry.setKind(kind); switch(kind) { case IConstantPoolConstant.CONSTANT_Class : constantPoolEntry.setClassInfoNameIndex(u2At(this.classFileBytes, 1, this.constantPoolOffset[index])); constantPoolEntry.setClassInfoName(getUtf8ValueAt(constantPoolEntry.getClassInfoNameIndex())); break; case IConstantPoolConstant.CONSTANT_Double : constantPoolEntry.setDoubleValue(doubleAt(this.classFileBytes, 1, this.constantPoolOffset[index])); break; case IConstantPoolConstant.CONSTANT_Fieldref : constantPoolEntry.setClassIndex(u2At(this.classFileBytes, 1, this.constantPoolOffset[index])); int declaringClassIndex = u2At(this.classFileBytes, 1, this.constantPoolOffset[constantPoolEntry.getClassIndex()]); constantPoolEntry.setClassName(getUtf8ValueAt(declaringClassIndex)); constantPoolEntry.setNameAndTypeIndex(u2At(this.classFileBytes, 3, this.constantPoolOffset[index])); int fieldNameIndex = u2At(this.classFileBytes, 1, this.constantPoolOffset[constantPoolEntry.getNameAndTypeIndex()]); int fieldDescriptorIndex = u2At(this.classFileBytes, 3, this.constantPoolOffset[constantPoolEntry.getNameAndTypeIndex()]); constantPoolEntry.setFieldName(getUtf8ValueAt(fieldNameIndex)); constantPoolEntry.setFieldDescriptor(getUtf8ValueAt(fieldDescriptorIndex)); break; case IConstantPoolConstant.CONSTANT_Methodref : case IConstantPoolConstant.CONSTANT_InterfaceMethodref : constantPoolEntry.setClassIndex(u2At(this.classFileBytes, 1, this.constantPoolOffset[index])); declaringClassIndex = u2At(this.classFileBytes, 1, this.constantPoolOffset[constantPoolEntry.getClassIndex()]); constantPoolEntry.setClassName(getUtf8ValueAt(declaringClassIndex)); constantPoolEntry.setNameAndTypeIndex(u2At(this.classFileBytes, 3, this.constantPoolOffset[index])); int methodNameIndex = u2At(this.classFileBytes, 1, this.constantPoolOffset[constantPoolEntry.getNameAndTypeIndex()]);
switch(kind) { case IConstantPoolConstant.CONSTANT_Class : constantPoolEntry = new ConstantPoolEntry(); constantPoolEntry.reset(); constantPoolEntry.setKind(kind); constantPoolEntry.setClassInfoNameIndex(u2At(this.classFileBytes, 1, this.constantPoolOffset[index])); constantPoolEntry.setClassInfoName(getUtf8ValueAt(constantPoolEntry.getClassInfoNameIndex())); break; case IConstantPoolConstant.CONSTANT_Double : constantPoolEntry = new ConstantPoolEntry(); constantPoolEntry.reset(); constantPoolEntry.setKind(kind); constantPoolEntry.setDoubleValue(doubleAt(this.classFileBytes, 1, this.constantPoolOffset[index])); break; case IConstantPoolConstant.CONSTANT_Fieldref : constantPoolEntry = new ConstantPoolEntry(); constantPoolEntry.reset(); constantPoolEntry.setKind(kind); constantPoolEntry.reset(); constantPoolEntry.setKind(kind); constantPoolEntry.setClassIndex(u2At(this.classFileBytes, 1, this.constantPoolOffset[index])); int declaringClassIndex = u2At(this.classFileBytes, 1, this.constantPoolOffset[constantPoolEntry.getClassIndex()]); constantPoolEntry.setClassName(getUtf8ValueAt(declaringClassIndex)); constantPoolEntry.setNameAndTypeIndex(u2At(this.classFileBytes, 3, this.constantPoolOffset[index])); int fieldNameIndex = u2At(this.classFileBytes, 1, this.constantPoolOffset[constantPoolEntry.getNameAndTypeIndex()]); int fieldDescriptorIndex = u2At(this.classFileBytes, 3, this.constantPoolOffset[constantPoolEntry.getNameAndTypeIndex()]); constantPoolEntry.setFieldName(getUtf8ValueAt(fieldNameIndex)); constantPoolEntry.setFieldDescriptor(getUtf8ValueAt(fieldDescriptorIndex)); break;
switch(kind) { case IConstantPoolConstant.CONSTANT_Class : constantPoolEntry = new ConstantPoolEntry(); constantPoolEntry.reset(); constantPoolEntry.setKind(kind); constantPoolEntry.setClassInfoNameIndex(u2At(this.classFileBytes, 1, this.constantPoolOffset[index])); constantPoolEntry.setClassInfoName(getUtf8ValueAt(constantPoolEntry.getClassInfoNameIndex())); break; case IConstantPoolConstant.CONSTANT_Double : constantPoolEntry = new ConstantPoolEntry(); constantPoolEntry.reset(); constantPoolEntry.setKind(kind); constantPoolEntry.setDoubleValue(doubleAt(this.classFileBytes, 1, this.constantPoolOffset[index])); break; case IConstantPoolConstant.CONSTANT_Fieldref : constantPoolEntry = new ConstantPoolEntry(); constantPoolEntry.reset(); constantPoolEntry.setKind(kind); constantPoolEntry.reset(); constantPoolEntry.setKind(kind); constantPoolEntry.setClassIndex(u2At(this.classFileBytes, 1, this.constantPoolOffset[index])); int declaringClassIndex = u2At(this.classFileBytes, 1, this.constantPoolOffset[constantPoolEntry.getClassIndex()]); constantPoolEntry.setClassName(getUtf8ValueAt(declaringClassIndex)); constantPoolEntry.setNameAndTypeIndex(u2At(this.classFileBytes, 3, this.constantPoolOffset[index])); int fieldNameIndex = u2At(this.classFileBytes, 1, this.constantPoolOffset[constantPoolEntry.getNameAndTypeIndex()]); int fieldDescriptorIndex = u2At(this.classFileBytes, 3, this.constantPoolOffset[constantPoolEntry.getNameAndTypeIndex()]); constantPoolEntry.setFieldName(getUtf8ValueAt(fieldNameIndex)); constantPoolEntry.setFieldDescriptor(getUtf8ValueAt(fieldDescriptorIndex)); break;
public void reset() { super.reset(); this.descriptorIndex = 0; this.referenceKind = 0; this.referenceIndex = 0; this.bootstrapMethodAttributeIndex = 0; } }
switch(kind) { case IConstantPoolConstant.CONSTANT_Class : constantPoolEntry = new ConstantPoolEntry(); constantPoolEntry.reset(); constantPoolEntry.setKind(kind); constantPoolEntry.setClassInfoNameIndex(u2At(this.classFileBytes, 1, this.constantPoolOffset[index])); constantPoolEntry.setClassInfoName(getUtf8ValueAt(constantPoolEntry.getClassInfoNameIndex())); break; case IConstantPoolConstant.CONSTANT_Double : constantPoolEntry = new ConstantPoolEntry(); constantPoolEntry.reset(); constantPoolEntry.setKind(kind); constantPoolEntry.setDoubleValue(doubleAt(this.classFileBytes, 1, this.constantPoolOffset[index])); break; case IConstantPoolConstant.CONSTANT_Fieldref : constantPoolEntry = new ConstantPoolEntry(); constantPoolEntry.reset(); constantPoolEntry.setKind(kind); constantPoolEntry.reset(); constantPoolEntry.setKind(kind); constantPoolEntry.setClassIndex(u2At(this.classFileBytes, 1, this.constantPoolOffset[index])); int declaringClassIndex = u2At(this.classFileBytes, 1, this.constantPoolOffset[constantPoolEntry.getClassIndex()]); constantPoolEntry.setClassName(getUtf8ValueAt(declaringClassIndex)); constantPoolEntry.setNameAndTypeIndex(u2At(this.classFileBytes, 3, this.constantPoolOffset[index])); int fieldNameIndex = u2At(this.classFileBytes, 1, this.constantPoolOffset[constantPoolEntry.getNameAndTypeIndex()]); int fieldDescriptorIndex = u2At(this.classFileBytes, 3, this.constantPoolOffset[constantPoolEntry.getNameAndTypeIndex()]); constantPoolEntry.setFieldName(getUtf8ValueAt(fieldNameIndex)); constantPoolEntry.setFieldDescriptor(getUtf8ValueAt(fieldDescriptorIndex)); break;
public void reset() { super.reset(); this.descriptorIndex = 0; this.referenceKind = 0; this.referenceIndex = 0; this.bootstrapMethodAttributeIndex = 0; } }
switch(kind) { case IConstantPoolConstant.CONSTANT_Class : constantPoolEntry = new ConstantPoolEntry(); constantPoolEntry.reset(); constantPoolEntry.setKind(kind); constantPoolEntry.setClassInfoNameIndex(u2At(this.classFileBytes, 1, this.constantPoolOffset[index])); constantPoolEntry.setClassInfoName(getUtf8ValueAt(constantPoolEntry.getClassInfoNameIndex())); break; case IConstantPoolConstant.CONSTANT_Double : constantPoolEntry = new ConstantPoolEntry(); constantPoolEntry.reset(); constantPoolEntry.setKind(kind); constantPoolEntry.setDoubleValue(doubleAt(this.classFileBytes, 1, this.constantPoolOffset[index])); break; case IConstantPoolConstant.CONSTANT_Fieldref : constantPoolEntry = new ConstantPoolEntry(); constantPoolEntry.reset(); constantPoolEntry.setKind(kind); constantPoolEntry.reset(); constantPoolEntry.setKind(kind); constantPoolEntry.setClassIndex(u2At(this.classFileBytes, 1, this.constantPoolOffset[index])); int declaringClassIndex = u2At(this.classFileBytes, 1, this.constantPoolOffset[constantPoolEntry.getClassIndex()]); constantPoolEntry.setClassName(getUtf8ValueAt(declaringClassIndex)); constantPoolEntry.setNameAndTypeIndex(u2At(this.classFileBytes, 3, this.constantPoolOffset[index])); int fieldNameIndex = u2At(this.classFileBytes, 1, this.constantPoolOffset[constantPoolEntry.getNameAndTypeIndex()]); int fieldDescriptorIndex = u2At(this.classFileBytes, 3, this.constantPoolOffset[constantPoolEntry.getNameAndTypeIndex()]); constantPoolEntry.setFieldName(getUtf8ValueAt(fieldNameIndex)); constantPoolEntry.setFieldDescriptor(getUtf8ValueAt(fieldDescriptorIndex)); break;
public void reset() { super.reset(); this.descriptorIndex = 0; this.referenceKind = 0; this.referenceIndex = 0; this.bootstrapMethodAttributeIndex = 0; } }
switch(kind) { case IConstantPoolConstant.CONSTANT_Class : constantPoolEntry = new ConstantPoolEntry(); constantPoolEntry.reset(); constantPoolEntry.setKind(kind); constantPoolEntry.setClassInfoNameIndex(u2At(this.classFileBytes, 1, this.constantPoolOffset[index])); constantPoolEntry.setClassInfoName(getUtf8ValueAt(constantPoolEntry.getClassInfoNameIndex())); break; case IConstantPoolConstant.CONSTANT_Double : constantPoolEntry = new ConstantPoolEntry(); constantPoolEntry.reset(); constantPoolEntry.setKind(kind); constantPoolEntry.setDoubleValue(doubleAt(this.classFileBytes, 1, this.constantPoolOffset[index])); break; case IConstantPoolConstant.CONSTANT_Fieldref : constantPoolEntry = new ConstantPoolEntry(); constantPoolEntry.reset(); constantPoolEntry.setKind(kind); constantPoolEntry.reset(); constantPoolEntry.setKind(kind); constantPoolEntry.setClassIndex(u2At(this.classFileBytes, 1, this.constantPoolOffset[index])); int declaringClassIndex = u2At(this.classFileBytes, 1, this.constantPoolOffset[constantPoolEntry.getClassIndex()]); constantPoolEntry.setClassName(getUtf8ValueAt(declaringClassIndex)); constantPoolEntry.setNameAndTypeIndex(u2At(this.classFileBytes, 3, this.constantPoolOffset[index])); int fieldNameIndex = u2At(this.classFileBytes, 1, this.constantPoolOffset[constantPoolEntry.getNameAndTypeIndex()]); int fieldDescriptorIndex = u2At(this.classFileBytes, 3, this.constantPoolOffset[constantPoolEntry.getNameAndTypeIndex()]); constantPoolEntry.setFieldName(getUtf8ValueAt(fieldNameIndex)); constantPoolEntry.setFieldDescriptor(getUtf8ValueAt(fieldDescriptorIndex)); break;
public void reset() { super.reset(); this.descriptorIndex = 0; this.referenceKind = 0; this.referenceIndex = 0; this.bootstrapMethodAttributeIndex = 0; this.moduleIndex = 0; this.moduleName = null; this.packageIndex = 0; this.packageName = null; } }
switch(kind) { case IConstantPoolConstant.CONSTANT_Class : constantPoolEntry = new ConstantPoolEntry(); constantPoolEntry.reset(); constantPoolEntry.setKind(kind); constantPoolEntry.setClassInfoNameIndex(u2At(this.classFileBytes, 1, this.constantPoolOffset[index])); constantPoolEntry.setClassInfoName(getUtf8ValueAt(constantPoolEntry.getClassInfoNameIndex())); break; case IConstantPoolConstant.CONSTANT_Double : constantPoolEntry = new ConstantPoolEntry(); constantPoolEntry.reset(); constantPoolEntry.setKind(kind); constantPoolEntry.setDoubleValue(doubleAt(this.classFileBytes, 1, this.constantPoolOffset[index])); break; case IConstantPoolConstant.CONSTANT_Fieldref : constantPoolEntry = new ConstantPoolEntry(); constantPoolEntry.reset(); constantPoolEntry.setKind(kind); constantPoolEntry.reset(); constantPoolEntry.setKind(kind); constantPoolEntry.setClassIndex(u2At(this.classFileBytes, 1, this.constantPoolOffset[index])); int declaringClassIndex = u2At(this.classFileBytes, 1, this.constantPoolOffset[constantPoolEntry.getClassIndex()]); constantPoolEntry.setClassName(getUtf8ValueAt(declaringClassIndex)); constantPoolEntry.setNameAndTypeIndex(u2At(this.classFileBytes, 3, this.constantPoolOffset[index])); int fieldNameIndex = u2At(this.classFileBytes, 1, this.constantPoolOffset[constantPoolEntry.getNameAndTypeIndex()]); int fieldDescriptorIndex = u2At(this.classFileBytes, 3, this.constantPoolOffset[constantPoolEntry.getNameAndTypeIndex()]); constantPoolEntry.setFieldName(getUtf8ValueAt(fieldNameIndex)); constantPoolEntry.setFieldDescriptor(getUtf8ValueAt(fieldDescriptorIndex)); break;
@Override public void reset() { super.reset(); this.descriptorIndex = 0; this.referenceKind = 0; this.referenceIndex = 0; this.bootstrapMethodAttributeIndex = 0; this.moduleIndex = 0; this.moduleName = null; this.packageIndex = 0; this.packageName = null; } }