public String getProperty(String key) { return getProperty(key, null); }
public String getProperty(String key) { return getProperty(key, null); }
public boolean isFailOk() { String v = getProperty(Analyzer.FAIL_OK, null); return v != null && v.equalsIgnoreCase("true"); }
public String _def(String args[]) { if (args.length != 2) throw new RuntimeException("Need a value for the ${def;<value>} macro"); return domain.getProperty(args[1], ""); }
public boolean isFailOk() { String v = getProperty(Analyzer.FAIL_OK, null); return v != null && v.equalsIgnoreCase("true"); }
Map<String, Map<String, String>> getClauses(String header) { return parseHeader(getProperty(header)); }
Map<String, Map<String, String>> getClauses(String header) { return parseHeader(getProperty(header)); }
protected void begin() { if (isTrue(getProperty(PEDANTIC))) setPedantic(true); }
protected void begin() { if (isTrue(getProperty(PEDANTIC))) setPedantic(true); }
/** * Return a list of plugins. Plugins are defined with the -plugin command. * They are class names, optionally associated with attributes. Plugins can * implement the Plugin interface to see these attributes. * * Any object can be a plugin. * * @return */ protected synchronized Set<Object> getPlugins() { if (this.plugins != null) return this.plugins; missingCommand = new HashSet<String>(); Set<Object> list = new LinkedHashSet<Object>(); // The owner of the plugin is always in there. list.add(this); setTypeSpecificPlugins(list); if (parent != null) list.addAll(parent.getPlugins()); // We only use plugins now when they are defined on our level // and not if it is in our parent. We inherit from our parent // through the previous block. if (properties.containsKey(PLUGIN)) { String spe = getProperty(PLUGIN); if (spe.equals(NONE)) return new LinkedHashSet<Object>(); loadPlugins(list, spe); } return this.plugins = list; }
String version(Version version, String mask) { if (version == null) { String v = domain.getProperty("@"); if (v == null) { domain
return parent.getProperty(varname); else return null;
String spe = getProperty(Analyzer.PLUGIN, DEFAULT_PLUGINS); Map<String, Map<String, String>> plugins = parseHeader(spe); List<Object> list = new ArrayList<Object>();