@Test public void testSPDXParsing4() { final LicenseInformation licenseInformation = LicenseSupport.fromSPDXExpression("(MIT OR BSD) AND (APACHE-2.0 OR GPL-2.0-or-later)"); assertThat(licenseInformation.getLicenses().size()) .isEqualTo(4); LicenseStatement licenseStatement = (LicenseStatement) licenseInformation; assertThat(licenseStatement.getOp()) .isEqualTo(LicenseOperator.AND); final LicenseInformation licenseInformation1 = LicenseSupport.fromSPDXExpression(licenseInformation.evaluate()); assertThat(licenseInformation) .isEqualTo(licenseInformation1); }
public static LicenseInformation fromSPDXExpression(String spdxExpressionString) { SpdxExpression spdxExpression = SpdxExpression.parse(spdxExpressionString); return fromSPDXExpression(spdxExpression); }
LicenseSupport { public static LicenseInformation fromSPDXExpression(String spdxExpressionString) { SpdxExpression spdxExpression = SpdxExpression.parse(spdxExpressionString); return fromSPDXExpression(spdxExpression); } }
LicenseSupport { public static LicenseInformation fromSPDXExpression(String spdxExpressionString) { SpdxExpression spdxExpression = SpdxExpression.parse(spdxExpressionString); return fromSPDXExpression(spdxExpression); }  }
LicenseSupport { public static LicenseInformation fromSPDXExpression(String spdxExpressionString) { SpdxExpression spdxExpression = SpdxExpression.parse(spdxExpressionString); return fromSPDXExpression(spdxExpression); }  static LicenseInformation mapLicenses(Collection<String> licenses); static LicenseInformation mapLicenses(Collection<String> licenses, LicenseOperator operator); static LicenseInformation fromSPDXExpression(String spdxExpressionString); static LicenseInformation fromSPDXExpression(SpdxExpression spdxExpression); static LicenseInformation parseSpdxExpression(String expression); static LicenseInformation fromSpdxLicenseReferenceExpression(SpdxLicenseReferenceExpression spdxLicenseReferenceExpression); static LicenseInformation fromSpdxLicenseIdExpression(SpdxLicenseIdExpression spdxLicenseIdExpression); static LicenseInformation fromSPDXCompoundExpression(SpdxCompoundExpression spdxCompoundExpression, LicenseStatement license); }
LicenseSupport { public static LicenseInformation fromSPDXExpression(String spdxExpressionString) { SpdxExpression spdxExpression = SpdxExpression.parse(spdxExpressionString); return fromSPDXExpression(spdxExpression); }  static LicenseInformation mapLicenses(Collection<String> licenses); static LicenseInformation mapLicenses(Collection<String> licenses, LicenseOperator operator); static LicenseInformation fromSPDXExpression(String spdxExpressionString); static LicenseInformation fromSPDXExpression(SpdxExpression spdxExpression); static LicenseInformation parseSpdxExpression(String expression); static LicenseInformation fromSpdxLicenseReferenceExpression(SpdxLicenseReferenceExpression spdxLicenseReferenceExpression); static LicenseInformation fromSpdxLicenseIdExpression(SpdxLicenseIdExpression spdxLicenseIdExpression); static LicenseInformation fromSPDXCompoundExpression(SpdxCompoundExpression spdxCompoundExpression, LicenseStatement license);  }