Interface PojoRawTypeModel<T>

    • Method Detail

      • annotations

        Stream<Annotation> annotations()
        Returns:
        All annotations on this specific type (non-inherited annotations from supertype are excluded).
      • mainConstructor

        PojoConstructorModel<T> mainConstructor()
        Returns:
        The main constructor of this type. The main constructor only exists if this type defines a single constructor.
        Throws:
        SearchException - If there is no main constructor for this type.
      • constructor

        PojoConstructorModel<T> constructor​(Class<?>... parameterTypes)
        Parameters:
        parameterTypes - The type of parameters to the returned constructor.
        Returns:
        The constructor of this type whose parameters have the given parameterTypes.
        Throws:
        SearchException - If there is no constructor with parameters of the given types.
      • cast

        PojoTypeModel<? extends T> cast​(PojoTypeModel<?> other)
        Parameters:
        other - The type to cast to this type.
        Returns:
        A new type model, representing the given type cast to this type. If casting is not possible, returns this. If casting is possible, the returned type model will retain as much contextual type information as possible (type arguments, ...), so casting List<Integer> to Collection for example would return Collection<Integer>.