Interface BeanClass

    • Method Detail

      • getPrototype

        VirtualBean getPrototype()
        Returns:
        the prototype of this BeanClass. Properties added to this prototype will be inherited by all instances of this BeanClass including those created before adding the new property.
      • isSuperclassOf

        default boolean isSuperclassOf​(BeanClass beanClass)
        Parameters:
        beanClass - the BeanClass to check hierarchical relationship with.
        Returns:
        true if this BeanClass is a transitive super-class of the given BeanClass, false otherwise.
      • isSuperclassOf

        default boolean isSuperclassOf​(BeanClass beanClass,
                                       boolean transitive,
                                       boolean equal)
        Parameters:
        beanClass - the BeanClass to check hierarchical relationship with.
        transitive - true to check hierarchy transitive, false otherwise (only check for direct superclass).
        equal - true if equality of this and the given BeanClass will be accepted (returning true), false otherwise.
        Returns:
        true if this BeanClass is a (transitive) super-class of (or equal to) the given BeanClass, false otherwise.
      • isSubclassOf

        default boolean isSubclassOf​(BeanClass beanClass)
        Parameters:
        beanClass - the BeanClass to check hierarchical relationship with.
        Returns:
        true if this BeanClass is a transitive sub-class of (or in other words inherits from) the given BeanClass, false otherwise.
      • isSubclassOf

        default boolean isSubclassOf​(BeanClass beanClass,
                                     boolean transitive,
                                     boolean equal)
        Parameters:
        beanClass - the BeanClass to check hierarchical relationship with.
        transitive - true to check hierarchy transitive, false otherwise (only check for direct subclass).
        equal - true if equality of this and the given BeanClass will be accepted (returning true), false otherwise.
        Returns:
        true if this BeanClass is a (transitive) sub-class of (or equal to) the given BeanClass, false otherwise.