public Instructions(Collection<String> other) { if (other != null) for (String s : other) { put(new Instruction(s), null); } }
public Instructions(Collection<String> other) { if (other != null) for (String s : other) { put(new Instruction(s), null); } }
public Instructions(Collection<String> other) { if (other != null) for (String s : other) { put(new Instruction(s), null); } }
public Instructions(Collection<String> other) { if (other != null) for (String s : other) { put(new Instruction(s), null); } }
public Instructions(Collection<String> other) { if (other != null) for (String s : other) { put(new Instruction(s), null); } }
public void appendIfAbsent(Parameters other) { Set<String> present = keySet().stream() .map(Instruction::getInput) .collect(toSet()); for (Map.Entry<String, Attrs> e : other.entrySet()) { String k = e.getKey(); if (present.contains(k)) continue; put(new Instruction(k), e.getValue()); } }
public void append(Parameters other) { for (Map.Entry<String,Attrs> e : other.entrySet()) { put(new Instruction(e.getKey()), e.getValue()); } }
public void append(Parameters other) { for (Map.Entry<String,Attrs> e : other.entrySet()) { put(new Instruction(e.getKey()), e.getValue()); } }
public void append(Parameters other) { for (Map.Entry<String, Attrs> e : other.entrySet()) { put(new Instruction(e.getKey()), e.getValue()); } }
public void appendIfAbsent(Parameters other) { Set<String> present = keySet().stream() .map(Instruction::getInput) .collect(toSet()); for (Map.Entry<String, Attrs> e : other.entrySet()) { String k = e.getKey(); if (present.contains(k)) continue; put(new Instruction(k), e.getValue()); } }
public void append(Parameters other) { for (Map.Entry<String,Attrs> e : other.entrySet()) { put(new Instruction(e.getKey()), e.getValue()); } }
public void append(Parameters other) { for (Map.Entry<String, Attrs> e : other.entrySet()) { put(new Instruction(e.getKey()), e.getValue()); } }
Instructions getMakeHeader() { if (make == null) { make = new Instructions(); builder.getMergedParameters(Constants.MAKE) .forEach((k, v) -> make.put(Instruction.legacy(k), v)); } return make; } }
Instructions getMakeHeader() { if (make == null) { make = new Instructions(); builder.getMergedParameters(Constants.MAKE) .forEach((k, v) -> make.put(Instruction.legacy(k), v)); } return make; } }
/** * Move errors and warnings to their proper place by scanning the fixup * messages property. */ private void fixupMessages() { if (fixupMessages) return; fixupMessages = true; Parameters fixup = getMergedParameters(Constants.FIXUPMESSAGES); if (fixup.isEmpty()) return; Instructions instrs = new Instructions(); fixup.forEach((k, v) -> instrs.put(Instruction.legacy(k), v)); doFixup(instrs, errors, warnings, FIXUPMESSAGES_IS_ERROR); doFixup(instrs, warnings, errors, FIXUPMESSAGES_IS_WARNING); }
/** * Move errors and warnings to their proper place by scanning the fixup * messages property. */ private void fixupMessages() { if (fixupMessages) return; fixupMessages = true; Parameters fixup = getMergedParameters(Constants.FIXUPMESSAGES); if (fixup.isEmpty()) return; Instructions instrs = new Instructions(); fixup.forEach((k, v) -> instrs.put(Instruction.legacy(k), v)); doFixup(instrs, errors, warnings, FIXUPMESSAGES_IS_ERROR); doFixup(instrs, warnings, errors, FIXUPMESSAGES_IS_WARNING); }