public boolean finds(String value) { return getMatcher(value).find(); }
public boolean finds(String value) { return getMatcher(value).find(); }
public boolean finds(String value) { return getMatcher(value).find(); }
public boolean finds(String value) { return getMatcher(value).find(); }
public boolean matches(String value) { if (any) return true; if (literal) return match.equals(value); return getMatcher(value).matches(); }
public boolean matches(String value) { if (any) return true; if (literal) return match.equals(value); return getMatcher(value).matches(); }
public boolean matches(String value) { if (any) return true; if (literal) return match.equals(value); return getMatcher(value).matches(); }
public boolean matches(String value) { if (any) return true; if (literal) { if ((matchFlags & Pattern.CASE_INSENSITIVE) != 0) { return match.equalsIgnoreCase(value); } return match.equals(value); } return getMatcher(value).matches(); }
public boolean matches(String value) { if (any) return true; if (literal) { if ((matchFlags & Pattern.CASE_INSENSITIVE) != 0) { return match.equalsIgnoreCase(value); } return match.equals(value); } return getMatcher(value).matches(); }
public Resource process(String source) { Instructions make = getMakeHeader(); logger.debug("make {}", source); for (Map.Entry<Instruction, Attrs> entry : make.entrySet()) { Instruction instr = entry.getKey(); Matcher m = instr.getMatcher(source); if (m.matches() || instr.isNegated()) { Map<String, String> arguments = replace(m, entry.getValue()); List<MakePlugin> plugins = builder.getPlugins(MakePlugin.class); for (MakePlugin plugin : plugins) { try { Resource resource = plugin.make(builder, source, arguments); if (resource != null) { logger.debug("Made {} from args {} with {}", source, arguments, plugin); return resource; } } catch (Exception e) { builder.exception(e, "Plugin %s generates error when use in making %s with args %s", plugin, source, arguments); } } } } return null; }
public Resource process(String source) { Instructions make = getMakeHeader(); logger.debug("make {}", source); for (Map.Entry<Instruction, Attrs> entry : make.entrySet()) { Instruction instr = entry.getKey(); Matcher m = instr.getMatcher(source); if (m.matches() || instr.isNegated()) { Map<String, String> arguments = replace(m, entry.getValue()); List<MakePlugin> plugins = builder.getPlugins(MakePlugin.class); for (MakePlugin plugin : plugins) { try { Resource resource = plugin.make(builder, source, arguments); if (resource != null) { logger.debug("Made {} from args {} with {}", source, arguments, plugin); return resource; } } catch (Exception e) { builder.exception(e, "Plugin %s generates error when use in making %s with args %s", plugin, source, arguments); } } } } return null; }
public Resource process(String source) { Map<Instruction,Map<String,String>> make = getMakeHeader(); builder.trace("make " + source); for (Map.Entry<Instruction,Map<String,String>> entry : make.entrySet()) { Instruction instr = entry.getKey(); Matcher m = instr.getMatcher(source); if (m.matches() || instr.isNegated()) { Map<String,String> arguments = replace(m, entry.getValue()); List<MakePlugin> plugins = builder.getPlugins(MakePlugin.class); for (MakePlugin plugin : plugins) { try { Resource resource = plugin.make(builder, source, arguments); if (resource != null) { builder.trace("Made " + source + " from args " + arguments + " with " + plugin); return resource; } } catch (Exception e) { builder.error("Plugin " + plugin + " generates error when use in making " + source + " with args " + arguments, e); } } } } return null; }
public Resource process(String source) { Map<Instruction,Map<String,String>> make = getMakeHeader(); builder.trace("make " + source); for (Map.Entry<Instruction,Map<String,String>> entry : make.entrySet()) { Instruction instr = entry.getKey(); Matcher m = instr.getMatcher(source); if (m.matches() || instr.isNegated()) { Map<String,String> arguments = replace(m, entry.getValue()); List<MakePlugin> plugins = builder.getPlugins(MakePlugin.class); for (MakePlugin plugin : plugins) { try { Resource resource = plugin.make(builder, source, arguments); if (resource != null) { builder.trace("Made " + source + " from args " + arguments + " with " + plugin); return resource; } } catch (Exception e) { builder.error("Plugin " + plugin + " generates error when use in making " + source + " with args " + arguments, e); } } } } return null; }
public Resource process(String source) { Map<Instruction,Map<String,String>> make = getMakeHeader(); builder.trace("make " + source); for (Map.Entry<Instruction,Map<String,String>> entry : make.entrySet()) { Instruction instr = entry.getKey(); Matcher m = instr.getMatcher(source); if (m.matches() || instr.isNegated()) { Map<String,String> arguments = replace(m, entry.getValue()); List<MakePlugin> plugins = builder.getPlugins(MakePlugin.class); for (MakePlugin plugin : plugins) { try { Resource resource = plugin.make(builder, source, arguments); if (resource != null) { builder.trace("Made " + source + " from args " + arguments + " with " + plugin); return resource; } } catch (Exception e) { builder.error("Plugin " + plugin + " generates error when use in making " + source + " with args " + arguments, e); } } } } return null; }