test_class.declarator: stringedType
test_class.modifier: private final
test_class.original_string: private final String stringedType;
test_class.type: String
test_class.var_name: stringedType
test_class.declarator: expectedTypeExpression
test_class.modifier: private final
test_class.original_string: private final String expectedTypeExpression;
test_class.type: String
test_class.var_name: expectedTypeExpression
test_class.declarator: expectedTypeDescription
test_class.modifier: private final
test_class.original_string: private final String expectedTypeDescription;
test_class.type: String
test_class.var_name: expectedTypeDescription
test_class.file: restx-core-annotation-processor/src/test/java/restx/annotations/processor/TypeHelperTest.java
test_class.identifier: TypeHelperTest
test_case.body: @Test
      public void should_produce_type_expression() throws Exception {
          assertThat(TypeHelper.getTypeExpressionFor(this.stringedType)).isEqualTo(this.expectedTypeExpression);
      }
test_case.class_method_signature: TypeHelperTest.should_produce_type_expression()
test_case.full_signature: @Test public void should_produce_type_expression()
test_case.identifier: should_produce_type_expression
test_case.invocations: isEqualTo assertThat getTypeExpressionFor
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_produce_type_expression()
focal_class.declarator: PARSED_TYPES_DELIMITERS = ImmutableList.of(",", "<", ">")
focal_class.modifier: private static
focal_class.original_string: private static ImmutableList<String> PARSED_TYPES_DELIMITERS = ImmutableList.of(",", "<", ">");
focal_class.type: ImmutableList<String>
focal_class.var_name: PARSED_TYPES_DELIMITERS
focal_class.declarator: TYPE_DESCRIPTION_ALIASES = ImmutableMap.of(
              Integer.class.getCanonicalName(), "int",
              Iterable.class.getCanonicalName(), "LIST",
              List.class.getCanonicalName(), "LIST",
              Map.class.getCanonicalName(), "MAP")
focal_class.modifier: private static
focal_class.original_string: private static ImmutableMap<String, String> TYPE_DESCRIPTION_ALIASES = ImmutableMap.of(
              Integer.class.getCanonicalName(), "int",
              Iterable.class.getCanonicalName(), "LIST",
              List.class.getCanonicalName(), "LIST",
              Map.class.getCanonicalName(), "MAP");
focal_class.type: ImmutableMap<String, String>
focal_class.var_name: TYPE_DESCRIPTION_ALIASES
focal_class.declarator: guavaOptionalPattern = Pattern.compile("\\Q" + Optional.class.getName() + "<\\E(.+)>")
focal_class.modifier: private static
focal_class.original_string: private static Pattern guavaOptionalPattern = Pattern.compile("\\Q" + Optional.class.getName() + "<\\E(.+)>");
focal_class.type: Pattern
focal_class.var_name: guavaOptionalPattern
focal_class.declarator: java8OptionalPattern = Pattern.compile("\\Qjava.util.Optional<\\E(.+)>")
focal_class.modifier: private static
focal_class.original_string: private static Pattern java8OptionalPattern = Pattern.compile("\\Qjava.util.Optional<\\E(.+)>");
focal_class.type: Pattern
focal_class.var_name: java8OptionalPattern
focal_class.declarator: RAW_TYPES_STR = Sets.newHashSet("byte", "short", "int", "long", "float", "double", "boolean", "char")
focal_class.modifier: private static
focal_class.original_string: private static Set<String> RAW_TYPES_STR = Sets.newHashSet("byte", "short", "int", "long", "float", "double", "boolean", "char");
focal_class.type: Set<String>
focal_class.var_name: RAW_TYPES_STR
focal_class.file: restx-core-annotation-processor/src/main/java/restx/annotations/processor/TypeHelper.java
focal_class.identifier: TypeHelper
focal_class.class_method_signature: TypeHelper.getTypeExpressionFor(ParsedType currentParsedType)
focal_class.full_signature: static String getTypeExpressionFor(ParsedType currentParsedType)
focal_class.identifier: getTypeExpressionFor
focal_class.modifiers: static
focal_class.parameters: (ParsedType currentParsedType)
focal_class.return: String
focal_class.signature: String getTypeExpressionFor(ParsedType currentParsedType)
focal_class.class_method_signature: TypeHelper.toTypeDescription(ParsedType parsedType)
focal_class.full_signature: static String toTypeDescription(ParsedType parsedType)
focal_class.identifier: toTypeDescription
focal_class.modifiers: static
focal_class.parameters: (ParsedType parsedType)
focal_class.return: String
focal_class.signature: String toTypeDescription(ParsedType parsedType)
focal_class.class_method_signature: TypeHelper.parseParameterizedType(String parameterizedType)
focal_class.full_signature: static ParsedType parseParameterizedType(String parameterizedType)
focal_class.identifier: parseParameterizedType
focal_class.modifiers: static
focal_class.parameters: (String parameterizedType)
focal_class.return: ParsedType
focal_class.signature: ParsedType parseParameterizedType(String parameterizedType)
focal_class.class_method_signature: TypeHelper.toTypeDescription(String type)
focal_class.full_signature: static String toTypeDescription(String type)
focal_class.identifier: toTypeDescription
focal_class.modifiers: static
focal_class.parameters: (String type)
focal_class.return: String
focal_class.signature: String toTypeDescription(String type)
focal_class.class_method_signature: TypeHelper.getTypeExpressionFor(String type)
focal_class.full_signature: static String getTypeExpressionFor(String type)
focal_class.identifier: getTypeExpressionFor
focal_class.modifiers: static
focal_class.parameters: (String type)
focal_class.return: String
focal_class.signature: String getTypeExpressionFor(String type)
focal_class.class_method_signature: TypeHelper.isParameterizedType(String type)
focal_class.full_signature: static boolean isParameterizedType(String type)
focal_class.identifier: isParameterizedType
focal_class.modifiers: static
focal_class.parameters: (String type)
focal_class.return: boolean
focal_class.signature: boolean isParameterizedType(String type)
focal_class.class_method_signature: TypeHelper.rawTypeFrom(String type)
focal_class.full_signature: static String rawTypeFrom(String type)
focal_class.identifier: rawTypeFrom
focal_class.modifiers: static
focal_class.parameters: (String type)
focal_class.return: String
focal_class.signature: String rawTypeFrom(String type)
focal_class.class_method_signature: TypeHelper.getTypeReferenceExpressionFor(String type)
focal_class.full_signature: static String getTypeReferenceExpressionFor(String type)
focal_class.identifier: getTypeReferenceExpressionFor
focal_class.modifiers: static
focal_class.parameters: (String type)
focal_class.return: String
focal_class.signature: String getTypeReferenceExpressionFor(String type)
focal_class.class_method_signature: TypeHelper.optionalMatchingTypeOf(String type)
focal_class.full_signature: public static OptionalMatchingType optionalMatchingTypeOf(String type)
focal_class.identifier: optionalMatchingTypeOf
focal_class.modifiers: public static
focal_class.parameters: (String type)
focal_class.return: OptionalMatchingType
focal_class.signature: OptionalMatchingType optionalMatchingTypeOf(String type)
focal_method.body: static String getTypeExpressionFor(ParsedType currentParsedType) {
          if(currentParsedType.parameters.isEmpty()) { // We're on a raw type
              return String.format("%s.class", currentParsedType.className);
          } else { // We're on a parameterized type
              return String.format("Types.newParameterizedType(%s.class, %s)",
                      currentParsedType.className,
                      FluentIterable.from(currentParsedType.parameters)
                          .transform(new Function<ParsedType, String>() {
                              @Override
                              public String apply(ParsedType param) {
                                  return getTypeExpressionFor(param);
                              }
                          }).join(Joiner.on(", "))
                      );
          }
      }
focal_method.class_method_signature: TypeHelper.getTypeExpressionFor(ParsedType currentParsedType)
focal_method.full_signature: static String getTypeExpressionFor(ParsedType currentParsedType)
focal_method.identifier: getTypeExpressionFor
focal_method.invocations: isEmpty format format join transform from getTypeExpressionFor on
focal_method.modifiers: static
focal_method.parameters: (ParsedType currentParsedType)
focal_method.return: String
focal_method.signature: String getTypeExpressionFor(ParsedType currentParsedType)