Class PropertySubstitute

    • Field Detail

      • targetType

        protected Class<?> targetType
      • parameters

        protected Class<?>[] parameters
    • Constructor Detail

      • PropertySubstitute

        public PropertySubstitute​(String name,
                                  Class<?> type,
                                  String readMethod,
                                  String writeMethod,
                                  Class<?>... params)
      • PropertySubstitute

        public PropertySubstitute​(String name,
                                  Class<?> type,
                                  Class<?>... params)
    • Method Detail

      • setActualTypeArguments

        public void setActualTypeArguments​(Class<?>... args)
      • getAnnotations

        public List<Annotation> getAnnotations()
        Description copied from class: Property
        Returns the annotations that are present on this property or empty List if there're no annotations.
        Specified by:
        getAnnotations in class Property
        Returns:
        the annotations that are present on this property or empty List if there're no annotations
      • getAnnotation

        public <A extends Annotation> A getAnnotation​(Class<A> annotationType)
        Description copied from class: Property
        Returns property's annotation for the given type or null if it's not present.
        Specified by:
        getAnnotation in class Property
        Type Parameters:
        A - class of the annotation
        Parameters:
        annotationType - the type of the annotation to be returned
        Returns:
        property's annotation for the given type or null if it's not present
      • setTargetType

        public void setTargetType​(Class<?> targetType)
      • setDelegate

        public void setDelegate​(Property delegate)