test_class.declarator: rawName
test_class.modifier: private
test_class.original_string: private String rawName;
test_class.type: String
test_class.var_name: rawName
test_class.declarator: oids
test_class.modifier: private
test_class.original_string: private String[] oids;
test_class.type: String[]
test_class.var_name: oids
test_class.declarator: expectedInterpolatedRole
test_class.modifier: private
test_class.original_string: private String expectedInterpolatedRole;
test_class.type: String
test_class.var_name: expectedInterpolatedRole
test_class.file: restx-security-basic/src/test/java/restx/security/RolesTest.java
test_class.identifier: RolesTest
test_case.body: @Test
      public void should_roles_interpolation_works() {
          assertThat(Roles.getInterpolatedRoleName(this.rawName, this.oids)).isEqualTo(this.expectedInterpolatedRole);
      }
test_case.class_method_signature: RolesTest.should_roles_interpolation_works()
test_case.full_signature: @Test public void should_roles_interpolation_works()
test_case.identifier: should_roles_interpolation_works
test_case.invocations: isEqualTo assertThat getInterpolatedRoleName
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_roles_interpolation_works()
focal_class.declarator: ROLE_OID_REGEX = Pattern.compile("\\{[^}]+\\}")
focal_class.modifier: private static final
focal_class.original_string: private static final Pattern ROLE_OID_REGEX = Pattern.compile("\\{[^}]+\\}");
focal_class.type: Pattern
focal_class.var_name: ROLE_OID_REGEX
focal_class.file: restx-security-basic/src/main/java/restx/security/Roles.java
focal_class.identifier: Roles
focal_class.class_method_signature: Roles.getInterpolatedRoleName(String rawName, String... oids)
focal_class.full_signature: public static String getInterpolatedRoleName(String rawName, String... oids)
focal_class.identifier: getInterpolatedRoleName
focal_class.modifiers: public static
focal_class.parameters: (String rawName, String... oids)
focal_class.return: String
focal_class.signature: String getInterpolatedRoleName(String rawName, String... oids)
focal_class.class_method_signature: Roles.getInterpolatedRoleNameWithPrefix(String rolePrefix, String rawName, String... oids)
focal_class.full_signature: public static String getInterpolatedRoleNameWithPrefix(String rolePrefix, String rawName, String... oids)
focal_class.identifier: getInterpolatedRoleNameWithPrefix
focal_class.modifiers: public static
focal_class.parameters: (String rolePrefix, String rawName, String... oids)
focal_class.return: String
focal_class.signature: String getInterpolatedRoleNameWithPrefix(String rolePrefix, String rawName, String... oids)
focal_method.body: public static String getInterpolatedRoleName(String rawName, String... oids) {
          StringBuffer interpolatedRoleName = new StringBuffer();
          Matcher matcher = ROLE_OID_REGEX.matcher(rawName);
  
          int i=0;
          while(matcher.find()){
              matcher.appendReplacement(interpolatedRoleName, oids[i]);
              i++;
          }
          matcher.appendTail(interpolatedRoleName);
          return interpolatedRoleName.toString();
      }
focal_method.class_method_signature: Roles.getInterpolatedRoleName(String rawName, String... oids)
focal_method.full_signature: public static String getInterpolatedRoleName(String rawName, String... oids)
focal_method.identifier: getInterpolatedRoleName
focal_method.invocations: matcher find appendReplacement appendTail toString
focal_method.modifiers: public static
focal_method.parameters: (String rawName, String... oids)
focal_method.return: String
focal_method.signature: String getInterpolatedRoleName(String rawName, String... oids)