public class PackageDependencyParserImpl extends Object implements PackageDependencyParser
A PackageDependencyParser
implementation.
Constructor and Description |
---|
PackageDependencyParserImpl(PackageNameParser packageNameParser,
PackageVersionRelationOperatorParser packageVersionRelationOperatorParser,
PackageVersionParser packageVersionParser)
Creates a parser.
|
Modifier and Type | Method and Description |
---|---|
List<PackageDependency> |
parsePackageDependencies(String values,
Context context)
Parses a list of package dependencies.
|
PackageDependency |
parsePackageDependency(String value,
Context context)
Parses a package dependency.
|
public PackageDependencyParserImpl(PackageNameParser packageNameParser, PackageVersionRelationOperatorParser packageVersionRelationOperatorParser, PackageVersionParser packageVersionParser)
Creates a parser.
packageNameParser
- The parser for the package names.packageVersionRelationOperatorParser
- The parser for the relation operator.packageVersionParser
- The parser for the package version.IllegalArgumentException
- If any of the parameters are null
.public PackageDependency parsePackageDependency(String value, Context context) throws ParseException
PackageDependencyParser
Parses a package dependency.
parsePackageDependency
in interface PackageDependencyParser
value
- The value.context
- The context.ParseException
- If an error occurs during the parsing.public List<PackageDependency> parsePackageDependencies(String values, Context context) throws ParseException
PackageDependencyParser
Parses a list of package dependencies.
parsePackageDependencies
in interface PackageDependencyParser
values
- The values.context
- The context.ParseException
- If an error occurs during the parsing.Copyright © 2015–2019. All rights reserved.