/** * Adds a value to the table that is at a location yet to be written. * * After this lookup switch has been written then the BranchEnd can be retrieved * from the returned reference. * * @param value The value to add to the lookup table * @return A reference to the BranchEnd that will be created. */ public AtomicReference<BranchEnd> add(int value) { final AtomicReference<BranchEnd> end = new AtomicReference<BranchEnd>(); ValuePair vp = new ValuePair(value, end); values.add(vp); return end; } /**
Collections.sort(values); for (final LookupSwitchBuilder.ValuePair value : values) { writeInt(value.getValue()); currentOffset += 4; if (value.getLocation() != null) { writeInt(value.getLocation().getLocation()); currentOffset += 4; } else { writeInt(0); final BranchEnd ret = new BranchEnd(currentOffset, frame, true, startOffset); value.getBranchEnd().set(ret); currentOffset += 4;
Collections.sort(values); for (final LookupSwitchBuilder.ValuePair value : values) { writeInt(value.getValue()); currentOffset += 4; if (value.getLocation() != null) { writeInt(value.getLocation().getLocation()); currentOffset += 4; } else { writeInt(0); final BranchEnd ret = new BranchEnd(currentOffset, frame, true, startOffset); value.getBranchEnd().set(ret); currentOffset += 4;
Collections.sort(values); for (final LookupSwitchBuilder.ValuePair value : values) { writeInt(value.getValue()); currentOffset += 4; if (value.getLocation() != null) { writeInt(value.getLocation().getLocation()); currentOffset += 4; } else { writeInt(0); final BranchEnd ret = new BranchEnd(currentOffset, frame, true, startOffset); value.getBranchEnd().set(ret); currentOffset += 4;
Collections.sort(values); for (final LookupSwitchBuilder.ValuePair value : values) { writeInt(value.getValue()); currentOffset += 4; if (value.getLocation() != null) { writeInt(value.getLocation().getLocation()); currentOffset += 4; } else { writeInt(0); final BranchEnd ret = new BranchEnd(currentOffset, frame, true, startOffset); value.getBranchEnd().set(ret); currentOffset += 4;
Collections.sort(values); for (final LookupSwitchBuilder.ValuePair value : values) { writeInt(value.getValue()); currentOffset += 4; if (value.getLocation() != null) { writeInt(value.getLocation().getLocation()); currentOffset += 4; } else { writeInt(0); final BranchEnd ret = new BranchEnd(currentOffset, frame, true, startOffset); value.getBranchEnd().set(ret); currentOffset += 4;
/** * Adds a value to the table that is at a location yet to be written. * * After this lookup switch has been written then the BranchEnd can be retrieved * from the returned reference. * * @param value The value to add to the lookup table * @return A reference to the BranchEnd that will be created. */ public AtomicReference<BranchEnd> add(int value) { final AtomicReference<BranchEnd> end = new AtomicReference<BranchEnd>(); ValuePair vp = new ValuePair(value, end); values.add(vp); return end; } /**
/** * Adds a value to the table that is at a location yet to be written. * * After this lookup switch has been written then the BranchEnd can be retrieved * from the returned reference. * * @param value The value to add to the lookup table * @return A reference to the BranchEnd that will be created. */ public AtomicReference<BranchEnd> add(int value) { final AtomicReference<BranchEnd> end = new AtomicReference<BranchEnd>(); ValuePair vp = new ValuePair(value, end); values.add(vp); return end; } /**
/** * Adds a value to the table that is at a location yet to be written. * * After this lookup switch has been written then the BranchEnd can be retrieved * from the returned reference. * * @param value The value to add to the lookup table * @return A reference to the BranchEnd that will be created. */ public AtomicReference<BranchEnd> add(int value) { final AtomicReference<BranchEnd> end = new AtomicReference<BranchEnd>(); ValuePair vp = new ValuePair(value, end); values.add(vp); return end; } /**
/** * Adds a value to the table that is at a location yet to be written. * * After this lookup switch has been written then the BranchEnd can be retrieved * from the returned reference. * * @param value The value to add to the lookup table * @return A reference to the BranchEnd that will be created. */ public AtomicReference<BranchEnd> add(int value) { final AtomicReference<BranchEnd> end = new AtomicReference<BranchEnd>(); ValuePair vp = new ValuePair(value, end); values.add(vp); return end; } /**
/** * Adds a value to the table * * * @param value The value to add to the lookup table */ public LookupSwitchBuilder add(int value, final CodeLocation location) { values.add(new ValuePair(value, location)); return this; }
/** * Adds a value to the table * * * @param value The value to add to the lookup table */ public LookupSwitchBuilder add(int value, final CodeLocation location) { values.add(new ValuePair(value, location)); return this; }
/** * Adds a value to the table * * * @param value The value to add to the lookup table */ public LookupSwitchBuilder add(int value, final CodeLocation location) { values.add(new ValuePair(value, location)); return this; }
/** * Adds a value to the table * * * @param value The value to add to the lookup table */ public LookupSwitchBuilder add(int value, final CodeLocation location) { values.add(new ValuePair(value, location)); return this; }
/** * Adds a value to the table * * * @param value The value to add to the lookup table */ public LookupSwitchBuilder add(int value, final CodeLocation location) { values.add(new ValuePair(value, location)); return this; }