Lines Matching refs:target
23 * List of (value, target) mappings representing the choices of a
25 * also holds the default target for the switch.
33 * is always one extra element in the target list, to hold the
34 * default target
81 * Gets the indicated target. Asking for the target at {@code size()}
82 * returns the default target.
85 * @return {@code >= 0;} the target
92 * Gets the default target. This is just a shorthand for
95 * @return {@code >= 0;} the default target
103 * end of the list, which holds the default target.
105 * @return {@code non-null;} the target list
121 * Sets the default target. It is only valid to call this method
124 * @param target {@code >= 0;} the absolute (not relative) default target
127 public void setDefaultTarget(int target) {
130 if (target < 0) {
131 throw new IllegalArgumentException("target < 0");
138 targets.add(target);
145 * @param target {@code >= 0;} the absolute (not relative) target address
147 public void add(int value, int target) {
150 if (target < 0) {
151 throw new IllegalArgumentException("target < 0");
155 targets.add(target);
160 * refer to the default target. This is only valid after the instance
161 * is fully populated, including the default target (naturally).
176 int target = targets.get(i);
177 if (target != defaultTarget) {
179 targets.set(at, target);