test_class.declarator: xmlExampleString
test_class.modifier: private
test_class.original_string: private String   xmlExampleString;
test_class.type: String
test_class.var_name: xmlExampleString
test_class.declarator: xmlExampleDocument
test_class.modifier: private
test_class.original_string: private Document xmlExampleDocument;
test_class.type: Document
test_class.var_name: xmlExampleDocument
test_class.declarator: xmlExampleElement
test_class.modifier: private
test_class.original_string: private Element  xmlExampleElement;
test_class.type: Element
test_class.var_name: xmlExampleElement
test_class.declarator: xmlDatesString
test_class.modifier: private
test_class.original_string: private String   xmlDatesString;
test_class.type: String
test_class.var_name: xmlDatesString
test_class.declarator: xmlDatesDocument
test_class.modifier: private
test_class.original_string: private Document xmlDatesDocument;
test_class.type: Document
test_class.var_name: xmlDatesDocument
test_class.declarator: xmlDatesElement
test_class.modifier: @SuppressWarnings("unused")
      private
test_class.original_string: @SuppressWarnings("unused")
      private Element  xmlDatesElement;
test_class.type: Element
test_class.var_name: xmlDatesElement
test_class.declarator: xmlNamespacesString
test_class.modifier: private
test_class.original_string: private String   xmlNamespacesString;
test_class.type: String
test_class.var_name: xmlNamespacesString
test_class.declarator: xmlNamespacesDocument
test_class.modifier: private
test_class.original_string: private Document xmlNamespacesDocument;
test_class.type: Document
test_class.var_name: xmlNamespacesDocument
test_class.declarator: xmlNamespacesElement
test_class.modifier: @SuppressWarnings("unused")
      private
test_class.original_string: @SuppressWarnings("unused")
      private Element  xmlNamespacesElement;
test_class.type: Element
test_class.var_name: xmlNamespacesElement
test_class.declarator: totalElements
test_class.modifier: private
test_class.original_string: private int      totalElements;
test_class.type: int
test_class.var_name: totalElements
test_class.declarator: xPath
test_class.modifier: private
test_class.original_string: private XPath    xPath;
test_class.type: XPath
test_class.var_name: xPath
test_class.file: jOOX-java-6/src/test/java/org/joox/JOOXTest.java
test_class.identifier: JOOXTest
test_case.body: @Test
      public void testAttrFilter() throws Exception {
          assertEquals(35, $.find().filter(attr(null)).size());
          assertEquals(35, $.find().filter(attr("")).size());
          assertEquals(35, $.find().filter(attr(null, "1", "2")).size());
          assertEquals(35, $.find().filter(attr("", "1", "2")).size());
          assertEquals(
              $.xpath("/document//*[not(@*)]").size(),
              $.find().filter(attr(null)).size());
  
          assertEquals(9, $.find().filter(attr("id")).size());
          assertEquals(
              $.find("book, dvd"),
              $.find().filter(attr("id")));
  
          assertEquals(3, $.find().filter(attr("id", "1")).size());
          assertEquals(
              $.find("book[id='1']"),
              $.find().filter(attr("id", "1")));
  
          assertEquals(5, $.find().filter(attr("id", "1", "2")).size());
          assertEquals(
              $.find("book[id='1'], book[id='2']"),
              $.find().filter(attr("id", "1", "2")));
      }
test_case.class_method_signature: JOOXTest.testAttrFilter()
test_case.full_signature: @Test public void testAttrFilter()
test_case.identifier: testAttrFilter
test_case.invocations: assertEquals size filter find attr assertEquals size filter find attr assertEquals size filter find attr assertEquals size filter find attr assertEquals size xpath size filter find attr assertEquals size filter find attr assertEquals find filter find attr assertEquals size filter find attr assertEquals find filter find attr assertEquals size filter find attr assertEquals find filter find attr
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAttrFilter()
focal_class.declarator: TRUE_VALUES
focal_class.modifier: private static final
focal_class.original_string: private static final Set<String> TRUE_VALUES;
focal_class.type: Set<String>
focal_class.var_name: TRUE_VALUES
focal_class.declarator: FALSE_VALUES
focal_class.modifier: private static final
focal_class.original_string: private static final Set<String> FALSE_VALUES;
focal_class.type: Set<String>
focal_class.var_name: FALSE_VALUES
focal_class.declarator: NONE = new FastFilter() {
          @Override
          public boolean filter(Context context) {
              return false;
          }
      }
focal_class.modifier: private static final
focal_class.original_string: private static final FastFilter NONE = new FastFilter() {
          @Override
          public boolean filter(Context context) {
              return false;
          }
      };
focal_class.type: FastFilter
focal_class.var_name: NONE
focal_class.declarator: ALL = new FastFilter() {
          @Override
          public boolean filter(Context context) {
              return true;
          }
      }
focal_class.modifier: private static final
focal_class.original_string: private static final FastFilter ALL = new FastFilter() {
          @Override
          public boolean filter(Context context) {
              return true;
          }
      };
focal_class.type: FastFilter
focal_class.var_name: ALL
focal_class.declarator: EVEN = new FastFilter() {
          @Override
          public boolean filter(Context context) {
              return context.elementIndex() % 2 == 0;
          }
      }
focal_class.modifier: private static final
focal_class.original_string: private static final FastFilter EVEN = new FastFilter() {
          @Override
          public boolean filter(Context context) {
              return context.elementIndex() % 2 == 0;
          }
      };
focal_class.type: FastFilter
focal_class.var_name: EVEN
focal_class.declarator: ODD = new FastFilter() {
          @Override
          public boolean filter(Context context) {
              return context.elementIndex() % 2 != 0;
          }
      }
focal_class.modifier: private static final
focal_class.original_string: private static final FastFilter ODD = new FastFilter() {
          @Override
          public boolean filter(Context context) {
              return context.elementIndex() % 2 != 0;
          }
      };
focal_class.type: FastFilter
focal_class.var_name: ODD
focal_class.declarator: LEAF = new FastFilter() {
          @Override
          public boolean filter(Context context) {
              NodeList children = context.element().getChildNodes();
  
              for (int i = 0;;i++) {
                  Node item = children.item(i);
  
                  if (item == null)
                      return true;
                  else if (item.getNodeType() == Node.ELEMENT_NODE)
                      return false;
              }
          }
      }
focal_class.modifier: private static final
focal_class.original_string: private static final FastFilter LEAF = new FastFilter() {
          @Override
          public boolean filter(Context context) {
              NodeList children = context.element().getChildNodes();
  
              for (int i = 0;;i++) {
                  Node item = children.item(i);
  
                  if (item == null)
                      return true;
                  else if (item.getNodeType() == Node.ELEMENT_NODE)
                      return false;
              }
          }
      };
focal_class.type: FastFilter
focal_class.var_name: LEAF
focal_class.file: jOOX-java-6/src/main/java/org/joox/JOOX.java
focal_class.identifier: JOOX
focal_class.class_method_signature: JOOX.Match()
focal_class.full_signature: public static  Match()
focal_class.identifier: Match
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.signature:  Match()
focal_class.class_method_signature: JOOX.Match(Object object)
focal_class.full_signature: public static  Match(Object object)
focal_class.identifier: Match
focal_class.modifiers: public static
focal_class.parameters: (Object object)
focal_class.signature:  Match(Object object)
focal_class.class_method_signature: JOOX.Match(String name)
focal_class.full_signature: public static  Match(String name)
focal_class.identifier: Match
focal_class.modifiers: public static
focal_class.parameters: (String name)
focal_class.signature:  Match(String name)
focal_class.class_method_signature: JOOX.Match(String name, String content)
focal_class.full_signature: public static  Match(String name, String content)
focal_class.identifier: Match
focal_class.modifiers: public static
focal_class.parameters: (String name, String content)
focal_class.signature:  Match(String name, String content)
focal_class.class_method_signature: JOOX.Match(String name, Element... content)
focal_class.full_signature: public static  Match(String name, Element... content)
focal_class.identifier: Match
focal_class.modifiers: public static
focal_class.parameters: (String name, Element... content)
focal_class.signature:  Match(String name, Element... content)
focal_class.class_method_signature: JOOX.Match(String name, Match... content)
focal_class.full_signature: public static  Match(String name, Match... content)
focal_class.identifier: Match
focal_class.modifiers: public static
focal_class.parameters: (String name, Match... content)
focal_class.signature:  Match(String name, Match... content)
focal_class.class_method_signature: JOOX.Match(Document document)
focal_class.full_signature: public static  Match(Document document)
focal_class.identifier: Match
focal_class.modifiers: public static
focal_class.parameters: (Document document)
focal_class.signature:  Match(Document document)
focal_class.class_method_signature: JOOX.Match(Element element)
focal_class.full_signature: public static  Match(Element element)
focal_class.identifier: Match
focal_class.modifiers: public static
focal_class.parameters: (Element element)
focal_class.signature:  Match(Element element)
focal_class.class_method_signature: JOOX.Match(Node node)
focal_class.full_signature: public static  Match(Node node)
focal_class.identifier: Match
focal_class.modifiers: public static
focal_class.parameters: (Node node)
focal_class.signature:  Match(Node node)
focal_class.class_method_signature: JOOX.Match(NodeList list)
focal_class.full_signature: public static  Match(NodeList list)
focal_class.identifier: Match
focal_class.modifiers: public static
focal_class.parameters: (NodeList list)
focal_class.signature:  Match(NodeList list)
focal_class.class_method_signature: JOOX.Match(Context context)
focal_class.full_signature: public static  Match(Context context)
focal_class.identifier: Match
focal_class.modifiers: public static
focal_class.parameters: (Context context)
focal_class.signature:  Match(Context context)
focal_class.class_method_signature: JOOX.Match(Match match)
focal_class.full_signature: public static  Match(Match match)
focal_class.identifier: Match
focal_class.modifiers: public static
focal_class.parameters: (Match match)
focal_class.signature:  Match(Match match)
focal_class.class_method_signature: JOOX.Match(URL url)
focal_class.full_signature: public static  Match(URL url)
focal_class.identifier: Match
focal_class.modifiers: public static
focal_class.parameters: (URL url)
focal_class.signature:  Match(URL url)
focal_class.class_method_signature: JOOX.Match(URI uri)
focal_class.full_signature: public static  Match(URI uri)
focal_class.identifier: Match
focal_class.modifiers: public static
focal_class.parameters: (URI uri)
focal_class.signature:  Match(URI uri)
focal_class.class_method_signature: JOOX.Match(File file)
focal_class.full_signature: public static  Match(File file)
focal_class.identifier: Match
focal_class.modifiers: public static
focal_class.parameters: (File file)
focal_class.signature:  Match(File file)
focal_class.class_method_signature: JOOX.Match(InputStream stream)
focal_class.full_signature: public static  Match(InputStream stream)
focal_class.identifier: Match
focal_class.modifiers: public static
focal_class.parameters: (InputStream stream)
focal_class.signature:  Match(InputStream stream)
focal_class.class_method_signature: JOOX.Match(Reader reader)
focal_class.full_signature: public static  Match(Reader reader)
focal_class.identifier: Match
focal_class.modifiers: public static
focal_class.parameters: (Reader reader)
focal_class.signature:  Match(Reader reader)
focal_class.class_method_signature: JOOX.Match(InputSource source)
focal_class.full_signature: public static  Match(InputSource source)
focal_class.identifier: Match
focal_class.modifiers: public static
focal_class.parameters: (InputSource source)
focal_class.signature:  Match(InputSource source)
focal_class.class_method_signature: JOOX.none()
focal_class.full_signature: public static FastFilter none()
focal_class.identifier: none
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: FastFilter
focal_class.signature: FastFilter none()
focal_class.class_method_signature: JOOX.all()
focal_class.full_signature: public static FastFilter all()
focal_class.identifier: all
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: FastFilter
focal_class.signature: FastFilter all()
focal_class.class_method_signature: JOOX.even()
focal_class.full_signature: public static FastFilter even()
focal_class.identifier: even
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: FastFilter
focal_class.signature: FastFilter even()
focal_class.class_method_signature: JOOX.odd()
focal_class.full_signature: public static FastFilter odd()
focal_class.identifier: odd
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: FastFilter
focal_class.signature: FastFilter odd()
focal_class.class_method_signature: JOOX.leaf()
focal_class.full_signature: public static FastFilter leaf()
focal_class.identifier: leaf
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: FastFilter
focal_class.signature: FastFilter leaf()
focal_class.class_method_signature: JOOX.at(final int... indexes)
focal_class.full_signature: public static FastFilter at(final int... indexes)
focal_class.identifier: at
focal_class.modifiers: public static
focal_class.parameters: (final int... indexes)
focal_class.return: FastFilter
focal_class.signature: FastFilter at(final int... indexes)
focal_class.class_method_signature: JOOX.selector(final String selector)
focal_class.full_signature: public static Filter selector(final String selector)
focal_class.identifier: selector
focal_class.modifiers: public static
focal_class.parameters: (final String selector)
focal_class.return: Filter
focal_class.signature: Filter selector(final String selector)
focal_class.class_method_signature: JOOX.tag(final String tagName)
focal_class.full_signature: public static FastFilter tag(final String tagName)
focal_class.identifier: tag
focal_class.modifiers: public static
focal_class.parameters: (final String tagName)
focal_class.return: FastFilter
focal_class.signature: FastFilter tag(final String tagName)
focal_class.class_method_signature: JOOX.tag(final String tagName, final boolean ignoreNamespace)
focal_class.full_signature: public static FastFilter tag(final String tagName, final boolean ignoreNamespace)
focal_class.identifier: tag
focal_class.modifiers: public static
focal_class.parameters: (final String tagName, final boolean ignoreNamespace)
focal_class.return: FastFilter
focal_class.signature: FastFilter tag(final String tagName, final boolean ignoreNamespace)
focal_class.class_method_signature: JOOX.namespacePrefix(final String namespacePrefix)
focal_class.full_signature: public static FastFilter namespacePrefix(final String namespacePrefix)
focal_class.identifier: namespacePrefix
focal_class.modifiers: public static
focal_class.parameters: (final String namespacePrefix)
focal_class.return: FastFilter
focal_class.signature: FastFilter namespacePrefix(final String namespacePrefix)
focal_class.class_method_signature: JOOX.namespaceURI(final String namespaceURI)
focal_class.full_signature: public static FastFilter namespaceURI(final String namespaceURI)
focal_class.identifier: namespaceURI
focal_class.modifiers: public static
focal_class.parameters: (final String namespaceURI)
focal_class.return: FastFilter
focal_class.signature: FastFilter namespaceURI(final String namespaceURI)
focal_class.class_method_signature: JOOX.matchText(final String regex)
focal_class.full_signature: public static FastFilter matchText(final String regex)
focal_class.identifier: matchText
focal_class.modifiers: public static
focal_class.parameters: (final String regex)
focal_class.return: FastFilter
focal_class.signature: FastFilter matchText(final String regex)
focal_class.class_method_signature: JOOX.matchAttr(final String name, final String valueRegex)
focal_class.full_signature: public static FastFilter matchAttr(final String name, final String valueRegex)
focal_class.identifier: matchAttr
focal_class.modifiers: public static
focal_class.parameters: (final String name, final String valueRegex)
focal_class.return: FastFilter
focal_class.signature: FastFilter matchAttr(final String name, final String valueRegex)
focal_class.class_method_signature: JOOX.matchTag(final String regex)
focal_class.full_signature: public static FastFilter matchTag(final String regex)
focal_class.identifier: matchTag
focal_class.modifiers: public static
focal_class.parameters: (final String regex)
focal_class.return: FastFilter
focal_class.signature: FastFilter matchTag(final String regex)
focal_class.class_method_signature: JOOX.matchTag(final String regex, final boolean ignoreNamespace)
focal_class.full_signature: public static FastFilter matchTag(final String regex, final boolean ignoreNamespace)
focal_class.identifier: matchTag
focal_class.modifiers: public static
focal_class.parameters: (final String regex, final boolean ignoreNamespace)
focal_class.return: FastFilter
focal_class.signature: FastFilter matchTag(final String regex, final boolean ignoreNamespace)
focal_class.class_method_signature: JOOX.attr(final String name)
focal_class.full_signature: public static FastFilter attr(final String name)
focal_class.identifier: attr
focal_class.modifiers: public static
focal_class.parameters: (final String name)
focal_class.return: FastFilter
focal_class.signature: FastFilter attr(final String name)
focal_class.class_method_signature: JOOX.attr(final String name, final String... values)
focal_class.full_signature: public static FastFilter attr(final String name, final String... values)
focal_class.identifier: attr
focal_class.modifiers: public static
focal_class.parameters: (final String name, final String... values)
focal_class.return: FastFilter
focal_class.signature: FastFilter attr(final String name, final String... values)
focal_class.class_method_signature: JOOX.and(final Filter... filters)
focal_class.full_signature: public static Filter and(final Filter... filters)
focal_class.identifier: and
focal_class.modifiers: public static
focal_class.parameters: (final Filter... filters)
focal_class.return: Filter
focal_class.signature: Filter and(final Filter... filters)
focal_class.class_method_signature: JOOX.or(final Filter... filters)
focal_class.full_signature: public static Filter or(final Filter... filters)
focal_class.identifier: or
focal_class.modifiers: public static
focal_class.parameters: (final Filter... filters)
focal_class.return: Filter
focal_class.signature: Filter or(final Filter... filters)
focal_class.class_method_signature: JOOX.not(final Filter filter)
focal_class.full_signature: public static Filter not(final Filter filter)
focal_class.identifier: not
focal_class.modifiers: public static
focal_class.parameters: (final Filter filter)
focal_class.return: Filter
focal_class.signature: Filter not(final Filter filter)
focal_class.class_method_signature: JOOX.ids(String... ids)
focal_class.full_signature: public static FastFilter ids(String... ids)
focal_class.identifier: ids
focal_class.modifiers: public static
focal_class.parameters: (String... ids)
focal_class.return: FastFilter
focal_class.signature: FastFilter ids(String... ids)
focal_class.class_method_signature: JOOX.content(final String value)
focal_class.full_signature: public static Content content(final String value)
focal_class.identifier: content
focal_class.modifiers: public static
focal_class.parameters: (final String value)
focal_class.return: Content
focal_class.signature: Content content(final String value)
focal_class.class_method_signature: JOOX.content(final Object value)
focal_class.full_signature: public static Content content(final Object value)
focal_class.identifier: content
focal_class.modifiers: public static
focal_class.parameters: (final Object value)
focal_class.return: Content
focal_class.signature: Content content(final Object value)
focal_class.class_method_signature: JOOX.ids()
focal_class.full_signature: public static Mapper<String> ids()
focal_class.identifier: ids
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Mapper<String>
focal_class.signature: Mapper<String> ids()
focal_class.class_method_signature: JOOX.attrs(final String attributeName)
focal_class.full_signature: public static Mapper<String> attrs(final String attributeName)
focal_class.identifier: attrs
focal_class.modifiers: public static
focal_class.parameters: (final String attributeName)
focal_class.return: Mapper<String>
focal_class.signature: Mapper<String> attrs(final String attributeName)
focal_class.class_method_signature: JOOX.paths()
focal_class.full_signature: public static Mapper<String> paths()
focal_class.identifier: paths
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Mapper<String>
focal_class.signature: Mapper<String> paths()
focal_class.class_method_signature: JOOX.chain(final Each... each)
focal_class.full_signature: public static Each chain(final Each... each)
focal_class.identifier: chain
focal_class.modifiers: public static
focal_class.parameters: (final Each... each)
focal_class.return: Each
focal_class.signature: Each chain(final Each... each)
focal_class.class_method_signature: JOOX.chain(final Iterable<? extends Each> each)
focal_class.full_signature: public static Each chain(final Iterable<? extends Each> each)
focal_class.identifier: chain
focal_class.modifiers: public static
focal_class.parameters: (final Iterable<? extends Each> each)
focal_class.return: Each
focal_class.signature: Each chain(final Iterable<? extends Each> each)
focal_class.class_method_signature: JOOX.iterable(NodeList elements)
focal_class.full_signature: public static Iterable<Element> iterable(NodeList elements)
focal_class.identifier: iterable
focal_class.modifiers: public static
focal_class.parameters: (NodeList elements)
focal_class.return: Iterable<Element>
focal_class.signature: Iterable<Element> iterable(NodeList elements)
focal_class.class_method_signature: JOOX.iterator(NodeList elements)
focal_class.full_signature: public static Iterator<Element> iterator(NodeList elements)
focal_class.identifier: iterator
focal_class.modifiers: public static
focal_class.parameters: (NodeList elements)
focal_class.return: Iterator<Element>
focal_class.signature: Iterator<Element> iterator(NodeList elements)
focal_class.class_method_signature: JOOX.list(NodeList elements)
focal_class.full_signature: public static List<Element> list(NodeList elements)
focal_class.identifier: list
focal_class.modifiers: public static
focal_class.parameters: (NodeList elements)
focal_class.return: List<Element>
focal_class.signature: List<Element> list(NodeList elements)
focal_class.class_method_signature: JOOX.builder()
focal_class.full_signature: public static DocumentBuilder builder()
focal_class.identifier: builder
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: DocumentBuilder
focal_class.signature: DocumentBuilder builder()
focal_class.class_method_signature: JOOX.convert(String value, Class<T> type)
focal_class.full_signature: @SuppressWarnings("unchecked") public static T convert(String value, Class<T> type)
focal_class.identifier: convert
focal_class.modifiers: @SuppressWarnings("unchecked") public static
focal_class.parameters: (String value, Class<T> type)
focal_class.return: T
focal_class.signature: T convert(String value, Class<T> type)
focal_class.class_method_signature: JOOX.convert(List<String> values, Class<T> type)
focal_class.full_signature: public static List<T> convert(List<String> values, Class<T> type)
focal_class.identifier: convert
focal_class.modifiers: public static
focal_class.parameters: (List<String> values, Class<T> type)
focal_class.return: List<T>
focal_class.signature: List<T> convert(List<String> values, Class<T> type)
focal_method.body: public static FastFilter attr(final String name) {
          if (name == null || name.equals(""))
              return new FastFilter() {
                  @Override
                  public boolean filter(Context context) {
                      return context.element().getAttributes().getLength() == 0;
                  }
              };
          else
              return new FastFilter() {
                  @Override
                  public boolean filter(Context context) {
                      return $(context).attr(name) != null;
                  }
              };
      }
focal_method.class_method_signature: JOOX.attr(final String name)
focal_method.full_signature: public static FastFilter attr(final String name)
focal_method.identifier: attr
focal_method.invocations: equals getLength getAttributes element attr
focal_method.modifiers: public static
focal_method.parameters: (final String name)
focal_method.return: FastFilter
focal_method.signature: FastFilter attr(final String name)