/** * Interns the given constant in the appropriate section of this * instance, or do nothing if the given constant isn't the sort * that should be interned. * * @param cst {@code non-null;} constant to possibly intern */ /*package*/ void internIfAppropriate(Constant cst) { if (cst instanceof CstString) { stringIds.intern((CstString) cst); } else if (cst instanceof CstType) { typeIds.intern((CstType) cst); } else if (cst instanceof CstBaseMethodRef) { methodIds.intern((CstBaseMethodRef) cst); } else if (cst instanceof CstFieldRef) { fieldIds.intern((CstFieldRef) cst); } else if (cst instanceof CstEnumRef) { fieldIds.intern(((CstEnumRef) cst).getFieldRef()); } else if (cst == null) { throw new NullPointerException("cst == null"); } }
/** * Interns the given constant in the appropriate section of this * instance, or do nothing if the given constant isn't the sort * that should be interned. * * @param cst {@code non-null;} constant to possibly intern */ /*package*/ void internIfAppropriate(Constant cst) { if (cst instanceof CstString) { stringIds.intern((CstString) cst); } else if (cst instanceof CstType) { typeIds.intern((CstType) cst); } else if (cst instanceof CstBaseMethodRef) { methodIds.intern((CstBaseMethodRef) cst); } else if (cst instanceof CstFieldRef) { fieldIds.intern((CstFieldRef) cst); } else if (cst instanceof CstEnumRef) { fieldIds.intern(((CstEnumRef) cst).getFieldRef()); } else if (cst == null) { throw new NullPointerException("cst == null"); } }
/** * Interns the given constant in the appropriate section of this * instance, or do nothing if the given constant isn't the sort * that should be interned. * * @param cst {@code non-null;} constant to possibly intern */ /*package*/ void internIfAppropriate(Constant cst) { if (cst instanceof CstString) { stringIds.intern((CstString) cst); } else if (cst instanceof CstType) { typeIds.intern((CstType) cst); } else if (cst instanceof CstBaseMethodRef) { methodIds.intern((CstBaseMethodRef) cst); } else if (cst instanceof CstFieldRef) { fieldIds.intern((CstFieldRef) cst); } else if (cst instanceof CstEnumRef) { fieldIds.intern(((CstEnumRef) cst).getFieldRef()); } else if (cst == null) { throw new NullPointerException("cst == null"); } }
/** * Interns the given constant in the appropriate section of this * instance, or do nothing if the given constant isn't the sort * that should be interned. * * @param cst {@code non-null;} constant to possibly intern */ /*package*/ void internIfAppropriate(Constant cst) { if (cst instanceof CstString) { stringIds.intern((CstString) cst); } else if (cst instanceof CstType) { typeIds.intern((CstType) cst); } else if (cst instanceof CstBaseMethodRef) { methodIds.intern((CstBaseMethodRef) cst); } else if (cst instanceof CstFieldRef) { fieldIds.intern((CstFieldRef) cst); } else if (cst instanceof CstEnumRef) { fieldIds.intern(((CstEnumRef) cst).getFieldRef()); } else if (cst == null) { throw new NullPointerException("cst == null"); } }
/** * Interns the given constant in the appropriate section of this * instance, or do nothing if the given constant isn't the sort * that should be interned. * * @param cst {@code non-null;} constant to possibly intern */ /*package*/ void internIfAppropriate(Constant cst) { if (cst instanceof CstString) { stringIds.intern((CstString) cst); } else if (cst instanceof CstType) { typeIds.intern((CstType) cst); } else if (cst instanceof CstBaseMethodRef) { methodIds.intern((CstBaseMethodRef) cst); } else if (cst instanceof CstFieldRef) { fieldIds.intern((CstFieldRef) cst); } else if (cst instanceof CstEnumRef) { fieldIds.intern(((CstEnumRef) cst).getFieldRef()); } else if (cst == null) { throw new NullPointerException("cst == null"); } }
/** * Interns the given constant in the appropriate section of this * instance, or do nothing if the given constant isn't the sort * that should be interned. * * @param cst {@code non-null;} constant to possibly intern */ /*package*/ void internIfAppropriate(Constant cst) { if (cst instanceof CstString) { stringIds.intern((CstString) cst); } else if (cst instanceof CstType) { typeIds.intern((CstType) cst); } else if (cst instanceof CstBaseMethodRef) { methodIds.intern((CstBaseMethodRef) cst); } else if (cst instanceof CstFieldRef) { fieldIds.intern((CstFieldRef) cst); } else if (cst instanceof CstEnumRef) { fieldIds.intern(((CstEnumRef) cst).getFieldRef()); } else if (cst == null) { throw new NullPointerException("cst == null"); } }
/** * Interns the given constant in the appropriate section of this * instance, or do nothing if the given constant isn't the sort * that should be interned. * * @param cst {@code non-null;} constant to possibly intern */ /*package*/ void internIfAppropriate(Constant cst) { if (cst instanceof CstString) { stringIds.intern((CstString) cst); } else if (cst instanceof CstUtf8) { stringIds.intern((CstUtf8) cst); } else if (cst instanceof CstType) { typeIds.intern((CstType) cst); } else if (cst instanceof CstBaseMethodRef) { methodIds.intern((CstBaseMethodRef) cst); } else if (cst instanceof CstFieldRef) { fieldIds.intern((CstFieldRef) cst); } else if (cst instanceof CstEnumRef) { fieldIds.intern(((CstEnumRef) cst).getFieldRef()); } else if (cst == null) { throw new NullPointerException("cst == null"); } }
/** * Interns the given constant in the appropriate section of this * instance, or do nothing if the given constant isn't the sort * that should be interned. * * @param cst {@code non-null;} constant to possibly intern */ /*package*/ void internIfAppropriate(Constant cst) { if (cst == null) { throw new NullPointerException("cst == null"); } if (cst instanceof CstString) { stringIds.intern((CstString) cst); } else if (cst instanceof CstType) { typeIds.intern((CstType) cst); } else if (cst instanceof CstBaseMethodRef) { methodIds.intern((CstBaseMethodRef) cst); } else if (cst instanceof CstFieldRef) { fieldIds.intern((CstFieldRef) cst); } else if (cst instanceof CstEnumRef) { fieldIds.intern(((CstEnumRef) cst).getFieldRef()); } else if (cst instanceof CstProtoRef) { protoIds.intern(((CstProtoRef) cst).getPrototype()); } else if (cst instanceof CstMethodHandle) { methodHandles.intern((CstMethodHandle) cst); } }
return fieldIds.get(cst); } else if (cst instanceof CstEnumRef) { return fieldIds.intern(((CstEnumRef) cst).getFieldRef()); } else if (cst instanceof CstProtoRef) { return protoIds.get(cst);
fieldIdsSection.intern((CstFieldRef) constant); } else if (constant instanceof CstEnumRef) { fieldIdsSection.intern(((CstEnumRef) constant).getFieldRef());
fieldIdsSection.intern((CstFieldRef) constant); } else if (constant instanceof CstEnumRef) { fieldIdsSection.intern(((CstEnumRef) constant).getFieldRef());
fieldIdsSection.intern((CstFieldRef) constant); } else if (constant instanceof CstEnumRef) { fieldIdsSection.intern(((CstEnumRef) constant).getFieldRef());
CstFieldRef fieldRef = ((CstEnumRef) cst).getFieldRef(); int index = file.getFieldIds().indexOf(fieldRef); EncodedValueCodec.writeUnsignedIntegralValue(out, type, (long) index);
CstFieldRef fieldRef = ((CstEnumRef) cst).getFieldRef(); int index = file.getFieldIds().indexOf(fieldRef); EncodedValueCodec.writeUnsignedIntegralValue(out, type, (long) index);
CstFieldRef fieldRef = ((CstEnumRef) cst).getFieldRef(); int index = file.getFieldIds().indexOf(fieldRef); writeUnsignedIntegralValue(type, (long) index);
CstFieldRef fieldRef = ((CstEnumRef) cst).getFieldRef(); int index = file.getFieldIds().indexOf(fieldRef); writeUnsignedIntegralValue(type, (long) index);
CstFieldRef fieldRef = ((CstEnumRef) cst).getFieldRef(); int index = file.getFieldIds().indexOf(fieldRef); EncodedValueCodec.writeUnsignedIntegralValue(out, type, (long) index);
CstFieldRef fieldRef = ((CstEnumRef) cst).getFieldRef(); int index = file.getFieldIds().indexOf(fieldRef); writeUnsignedIntegralValue(type, (long) index);
CstFieldRef fieldRef = ((CstEnumRef) cst).getFieldRef(); int index = file.getFieldIds().indexOf(fieldRef); writeUnsignedIntegralValue(type, (long) index);
fieldIdsSection.intern((CstFieldRef) constant); } else if (constant instanceof CstEnumRef) { fieldIdsSection.intern(((CstEnumRef) constant).getFieldRef()); } else if (constant instanceof CstMethodHandle) { methodHandlesSection.intern((CstMethodHandle) constant);