test_class.declarator: resolver
test_class.modifier: private
test_class.original_string: private MavenDependencyResolver resolver;
test_class.type: MavenDependencyResolver
test_class.var_name: resolver
test_class.declarator: addonFilter = new Predicate<Dependency>()
     {
        @Override
        public boolean accept(Dependency dependency)
        {
           return "forge-addon".equals(dependency.getCoordinate().getClassifier());
        }
     }
test_class.modifier: private
test_class.original_string: private Predicate<Dependency> addonFilter = new Predicate<Dependency>()
     {
        @Override
        public boolean accept(Dependency dependency)
        {
           return "forge-addon".equals(dependency.getCoordinate().getClassifier());
        }
     };
test_class.type: Predicate<Dependency>
test_class.var_name: addonFilter
test_class.file: maven/impl/src/test/java/org/jboss/forge/addon/maven/dependencies/MavenDependencyResolverTest.java
test_class.identifier: MavenDependencyResolverTest
test_case.body: @Test
     public void testResolveVersionsDependency() throws Exception
     {
        DependencyQuery query = DependencyQueryBuilder.create(CoordinateBuilder
                 .create("org.jboss.forge:resources-api"));
        List<Coordinate> versions = resolver.resolveVersions(query);
        Assert.assertNotNull(versions);
        Assert.assertFalse(versions.isEmpty());
     }
test_case.class_method_signature: MavenDependencyResolverTest.testResolveVersionsDependency()
test_case.full_signature: @Test public void testResolveVersionsDependency()
test_case.identifier: testResolveVersionsDependency
test_case.invocations: create create resolveVersions assertNotNull assertFalse isEmpty
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testResolveVersionsDependency()
focal_class.declarator: container = new MavenContainer()
focal_class.modifier: private final
focal_class.original_string: private final MavenContainer container = new MavenContainer();
focal_class.type: MavenContainer
focal_class.var_name: container
focal_class.declarator: resourceFactory
focal_class.modifier: private
focal_class.original_string: private ResourceFactory resourceFactory;
focal_class.type: ResourceFactory
focal_class.var_name: resourceFactory
focal_class.file: maven/impl/src/main/java/org/jboss/forge/addon/maven/dependencies/MavenDependencyResolver.java
focal_class.identifier: MavenDependencyResolver
focal_class.interfaces: implements DependencyResolver
focal_class.class_method_signature: MavenDependencyResolver.MavenDependencyResolver()
focal_class.full_signature: public  MavenDependencyResolver()
focal_class.identifier: MavenDependencyResolver
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  MavenDependencyResolver()
focal_class.class_method_signature: MavenDependencyResolver.MavenDependencyResolver(ResourceFactory resourceFactory)
focal_class.full_signature: public  MavenDependencyResolver(ResourceFactory resourceFactory)
focal_class.identifier: MavenDependencyResolver
focal_class.modifiers: public
focal_class.parameters: (ResourceFactory resourceFactory)
focal_class.signature:  MavenDependencyResolver(ResourceFactory resourceFactory)
focal_class.class_method_signature: MavenDependencyResolver.resolveDependencies(DependencyQuery query)
focal_class.full_signature: @Override public Set<Dependency> resolveDependencies(DependencyQuery query)
focal_class.identifier: resolveDependencies
focal_class.modifiers: @Override public
focal_class.parameters: (DependencyQuery query)
focal_class.return: Set<Dependency>
focal_class.signature: Set<Dependency> resolveDependencies(DependencyQuery query)
focal_class.class_method_signature: MavenDependencyResolver.resolveVersions(DependencyQuery query)
focal_class.full_signature: @Override public List<Coordinate> resolveVersions(DependencyQuery query)
focal_class.identifier: resolveVersions
focal_class.modifiers: @Override public
focal_class.parameters: (DependencyQuery query)
focal_class.return: List<Coordinate>
focal_class.signature: List<Coordinate> resolveVersions(DependencyQuery query)
focal_class.class_method_signature: MavenDependencyResolver.getVersions(DependencyQuery query)
focal_class.full_signature:  VersionRangeResult getVersions(DependencyQuery query)
focal_class.identifier: getVersions
focal_class.parameters: (DependencyQuery query)
focal_class.return: VersionRangeResult
focal_class.signature: VersionRangeResult getVersions(DependencyQuery query)
focal_class.class_method_signature: MavenDependencyResolver.resolveArtifact(DependencyQuery query)
focal_class.full_signature: @Override public Dependency resolveArtifact(DependencyQuery query)
focal_class.identifier: resolveArtifact
focal_class.modifiers: @Override public
focal_class.parameters: (DependencyQuery query)
focal_class.return: Dependency
focal_class.signature: Dependency resolveArtifact(DependencyQuery query)
focal_class.class_method_signature: MavenDependencyResolver.resolveDependencyHierarchy(final DependencyQuery query)
focal_class.full_signature: @Override public org.jboss.forge.addon.dependencies.DependencyNode resolveDependencyHierarchy(final DependencyQuery query)
focal_class.identifier: resolveDependencyHierarchy
focal_class.modifiers: @Override public
focal_class.parameters: (final DependencyQuery query)
focal_class.return: org.jboss.forge.addon.dependencies.DependencyNode
focal_class.signature: org.jboss.forge.addon.dependencies.DependencyNode resolveDependencyHierarchy(final DependencyQuery query)
focal_class.class_method_signature: MavenDependencyResolver.resolveDependencyMetadata(final DependencyQuery query)
focal_class.full_signature: @Override public DependencyMetadata resolveDependencyMetadata(final DependencyQuery query)
focal_class.identifier: resolveDependencyMetadata
focal_class.modifiers: @Override public
focal_class.parameters: (final DependencyQuery query)
focal_class.return: DependencyMetadata
focal_class.signature: DependencyMetadata resolveDependencyMetadata(final DependencyQuery query)
focal_class.class_method_signature: MavenDependencyResolver.getResourceFactory()
focal_class.full_signature: private ResourceFactory getResourceFactory()
focal_class.identifier: getResourceFactory
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: ResourceFactory
focal_class.signature: ResourceFactory getResourceFactory()
focal_method.body: @Override
     public List<Coordinate> resolveVersions(DependencyQuery query)
     {
        VersionRangeResult r = getVersions(query);
        List<Coordinate> result = new ArrayList<>();
        Predicate<Dependency> filter = query.getDependencyFilter();
        for (Version v : r.getVersions())
        {
           CoordinateBuilder coord = CoordinateBuilder.create(query.getCoordinate()).setVersion(v.toString());
           DependencyBuilder versionedDep = DependencyBuilder.create().setCoordinate(coord);
           if (filter == null || filter.accept(versionedDep))
           {
              result.add(coord);
           }
        }
        return result;
     }
focal_method.class_method_signature: MavenDependencyResolver.resolveVersions(DependencyQuery query)
focal_method.full_signature: @Override public List<Coordinate> resolveVersions(DependencyQuery query)
focal_method.identifier: resolveVersions
focal_method.invocations: getVersions getDependencyFilter getVersions setVersion create getCoordinate toString setCoordinate create accept add
focal_method.modifiers: @Override public
focal_method.parameters: (DependencyQuery query)
focal_method.return: List<Coordinate>
focal_method.signature: List<Coordinate> resolveVersions(DependencyQuery query)