Codota Logo
Matcher.writeXML
Code IndexAdd Codota to your IDE (free)

How to use
writeXML
method
in
edu.umd.cs.findbugs.filter.Matcher

Best Java code snippets using edu.umd.cs.findbugs.filter.Matcher.writeXML (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: spotbugs/spotbugs

public void writeChildrenXML(XMLOutput xmlOutput) throws IOException {
  for (Matcher m : children) {
    m.writeXML(xmlOutput, false);
  }
}
origin: spotbugs/spotbugs

public void writeBodyAsXML(XMLOutput xmlOutput) throws IOException {
  Iterator<Matcher> i = childIterator();
  while (i.hasNext()) {
    Matcher child = i.next();
    child.writeXML(xmlOutput, disabled.containsKey(child));
  }
}
origin: spotbugs/spotbugs

@Override
public void writeXML(XMLOutput xmlOutput, boolean disabled)  throws IOException {
  if(childIterator().hasNext()) {
    xmlOutput.startTag("Not");
    if (disabled) {
      xmlOutput.addAttribute("disabled","true");
    }
    Matcher invertedMatcher = childIterator().next();
    xmlOutput.stopTag(false);
    invertedMatcher.writeXML(xmlOutput, disabled);
    xmlOutput.closeTag("Not");
  }
}
origin: spotbugs/spotbugs

public void writeEnabledMatchersAsXML(@WillClose OutputStream out) throws IOException {
  XMLOutput xmlOutput = new OutputStreamXMLOutput(out);
  try {
    xmlOutput.beginDocument();
    xmlOutput.openTag("FindBugsFilter");
    Iterator<Matcher> i = childIterator();
    while (i.hasNext()) {
      Matcher child = i.next();
      if (!disabled.containsKey(child)) {
        child.writeXML(xmlOutput, false);
      }
    }
    xmlOutput.closeTag("FindBugsFilter");
  } finally {
    xmlOutput.finish();
  }
}
origin: spotbugs/spotbugs

@Override
public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException {
  if (numberChildren() == 1) {
    childIterator().next().writeXML(xmlOutput, false);
    return;
  }
  xmlOutput.startTag("Or");
  if (disabled) {
    xmlOutput.addAttribute("disabled", "true");
  }
  xmlOutput.stopTag(false);
  writeChildrenXML(xmlOutput);
  xmlOutput.closeTag("Or");
}
origin: spotbugs/spotbugs

@Override
public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException {
  if (numberChildren() == 1) {
    // System.out.println("One child: " + this);
    childIterator().next().writeXML(xmlOutput, disabled);
    return;
  }
  xmlOutput.startTag("And");
  if (disabled) {
    xmlOutput.addAttribute("disabled", "true");
  }
  xmlOutput.stopTag(false);
  super.writeChildrenXML(xmlOutput);
  xmlOutput.closeTag("And");
}
origin: com.google.code.findbugs/findbugs

public void writeChildrenXML(XMLOutput xmlOutput) throws IOException {
  for (Matcher m : children) {
    m.writeXML(xmlOutput, false);
  }
}
origin: com.google.code.findbugs/findbugs

public void writeBodyAsXML(XMLOutput xmlOutput) throws IOException {
  Iterator<Matcher> i = childIterator();
  while (i.hasNext()) {
    Matcher child = i.next();
    child.writeXML(xmlOutput, disabled.containsKey(child));
  }
}
origin: com.google.code.findbugs/findbugs

@Override
public void writeXML(XMLOutput xmlOutput, boolean disabled)  throws IOException {
  if(childIterator().hasNext()) {
    xmlOutput.startTag("Not");
    if (disabled) {
      xmlOutput.addAttribute("disabled","true");
    }
    Matcher invertedMatcher = childIterator().next();
    xmlOutput.stopTag(false);
    invertedMatcher.writeXML(xmlOutput, disabled);
    xmlOutput.closeTag("Not");
  }
}
origin: com.google.code.findbugs/findbugs

public void writeEnabledMatchersAsXML(@WillClose OutputStream out) throws IOException {
  XMLOutput xmlOutput = new OutputStreamXMLOutput(out);
  try {
    xmlOutput.beginDocument();
    xmlOutput.openTag("FindBugsFilter");
    Iterator<Matcher> i = childIterator();
    while (i.hasNext()) {
      Matcher child = i.next();
      if (!disabled.containsKey(child)) {
        child.writeXML(xmlOutput, false);
      }
    }
    xmlOutput.closeTag("FindBugsFilter");
  } finally {
    xmlOutput.finish();
  }
}
origin: com.google.code.findbugs/findbugs

@Override
public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException {
  if (numberChildren() == 1) {
    childIterator().next().writeXML(xmlOutput, false);
    return;
  }
  xmlOutput.startTag("Or");
  if (disabled) {
    xmlOutput.addAttribute("disabled", "true");
  }
  xmlOutput.stopTag(false);
  writeChildrenXML(xmlOutput);
  xmlOutput.closeTag("Or");
}
origin: com.google.code.findbugs/findbugs

@Override
public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException {
  if (numberChildren() == 1) {
    // System.out.println("One child: " + this);
    childIterator().next().writeXML(xmlOutput, disabled);
    return;
  }
  xmlOutput.startTag("And");
  if (disabled) {
    xmlOutput.addAttribute("disabled", "true");
  }
  xmlOutput.stopTag(false);
  super.writeChildrenXML(xmlOutput);
  xmlOutput.closeTag("And");
}
edu.umd.cs.findbugs.filterMatcherwriteXML

Popular methods of Matcher

  • match
    Determine whether or not the given BugInstance has the feature this Matcher tests for.

Popular in Java

  • Making http post requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JPanel (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Runner (org.openjdk.jmh.runner)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now