public Processor(Processor processor) { this(processor.getProperties0()); this.parent = processor; }
public Processor(Processor processor) { this(processor.getProperties0()); this.parent = processor; }
public void setParent(Processor processor) { this.parent = processor; Properties updated = new UTF8Properties(processor.getProperties0()); updated.putAll(getProperties0()); properties = updated; }
public void setParent(Processor processor) { this.parent = processor; Properties updated = new UTF8Properties(processor.getProperties0()); updated.putAll(getProperties0()); properties = updated; }
/** * Property handling ... */ public Properties getProperties() { if (fixup) { fixup = false; begin(); } fixupMessages = false; return getProperties0(); }
public void setProperties(File base, Properties properties) { doIncludes(base, properties); getProperties0().putAll(properties); }
/** * Property handling ... */ public Properties getProperties() { if (fixup) { fixup = false; begin(); } fixupMessages = false; return getProperties0(); }
public void setProperties(File base, Properties properties) { doIncludes(base, properties); getProperties0().putAll(properties); }
public void setProperties(Properties properties) { doIncludes(getBase(), properties); getProperties0().putAll(properties); mergeProperties(Constants.INIT); // execute macros in -init getProperties0().remove(Constants.INIT); }
/** * Report the details of this processor. Should in general be overridden * * @param table * @throws Exception */ public void report(Map<String, Object> table) throws Exception { table.put("Included Files", getIncluded()); table.put("Base", getBase()); table.put("Properties", getProperties0().entrySet()); }
/** * Return all inherited property keys. The keys are sorted for consistent * ordering. */ public Set<String> getPropertyKeys(boolean inherit) { Set<String> result; if (parent == null || !inherit) { result = new TreeSet<>(); } else { result = parent.getPropertyKeys(inherit); } for (Object o : getProperties0().keySet()) { result.add(o.toString()); } return result; }
/** * Return all inherited property keys. The keys are sorted for consistent * ordering. */ public Set<String> getPropertyKeys(boolean inherit) { Set<String> result; if (parent == null || !inherit) { result = new TreeSet<>(); } else { result = parent.getPropertyKeys(inherit); } for (Object o : getProperties0().keySet()) { result.add(o.toString()); } return result; }
public void setProperties(Properties properties) { doIncludes(getBase(), properties); getProperties0().putAll(properties); mergeProperties(Constants.INIT); // execute macros in -init getProperties0().remove(Constants.INIT); }
/** * Report the details of this processor. Should in general be overridden * * @param table * @throws Exception */ public void report(Map<String, Object> table) throws Exception { table.put("Included Files", getIncluded()); table.put("Base", getBase()); table.put("Properties", getProperties0().entrySet()); }
private Iterable<String> iterable(boolean inherit) { Set<Object> first = getProperties0().keySet(); Iterable<? extends Object> second; if (parent == null || !inherit) { second = Collections.emptyList(); } else { second = parent.iterable(inherit); } Iterable<String> iterable = Iterables.distinct(first, second, o -> (o instanceof String) ? (String) o : null, Objects::nonNull); return iterable; }
private Iterable<String> iterable(boolean inherit) { Set<Object> first = getProperties0().keySet(); Iterable<? extends Object> second; if (parent == null || !inherit) { second = Collections.emptyList(); } else { second = parent.iterable(inherit); } Iterable<String> iterable = Iterables.distinct(first, second, o -> (o instanceof String) ? (String) o : null, Objects::nonNull); return iterable; }
/** * */ public void forceRefresh() { included.clear(); Processor p = getParent(); properties = (p != null) ? new UTF8Properties(p.getProperties0()) : new UTF8Properties(); setProperties(propertiesFile, base); propertiesChanged(); }
/** * */ public void forceRefresh() { included.clear(); Processor p = getParent(); properties = (p != null) ? new UTF8Properties(p.getProperties0()) : new UTF8Properties(); setProperties(propertiesFile, base); propertiesChanged(); }