java.lang.Object
de.floydkretschmar.fixturize.stategies.constants.metadata.TypeMetadataFactory
All Implemented Interfaces:
MetadataFactory

public class TypeMetadataFactory extends Object implements MetadataFactory
Creates metadata for TypeMirrors.
  • Constructor Details

    • TypeMetadataFactory

      public TypeMetadataFactory(Elements elementUtils)
  • Method Details

    • createMetadataFrom

      public TypeMetadata createMetadataFrom(TypeMirror type)
      Description copied from interface: MetadataFactory
      Creates type metadata for a type. If the type is a declared generic, the metadata will contain generic information according to DeclaredType.getTypeArguments().
      Specified by:
      createMetadataFrom in interface MetadataFactory
      Parameters:
      type - - for which metadata will be generated
      Returns:
      the type metadata
    • createMetadataFrom

      public TypeMetadata createMetadataFrom(TypeMirror type, List<String> genericTypeImplementations)
      Description copied from interface: MetadataFactory
      Creates type metadata for a type using the specified list of class names to use for the generic information.
      Specified by:
      createMetadataFrom in interface MetadataFactory
      Parameters:
      type - - for which metadata will be generated
      genericTypeImplementations - - list of class names defining the concrete implementations for a generic
      Returns:
      the type metadata