Package iu.type

Class ElementBase

java.lang.Object
iu.type.ElementBase
All Implemented Interfaces:
IuAnnotatedElement
Direct Known Subclasses:
AnnotatedElementBase, PropertyFacade, TypeFacade

abstract sealed class ElementBase extends Object implements IuAnnotatedElement permits AnnotatedElementBase<E>, TypeFacade<D,T>, PropertyFacade<D,T>
Provides initialization behavior for type facade elements.
  • Constructor Details

  • Method Details

    • checkSealed

      void checkSealed() throws IllegalStateException
      Checks to verify the element is sealed.

      All public methods should invoke this method to verify immutability before attempting lookups.

      Throws:
      IllegalStateException - if the element is not sealed.
    • postInit

      void postInit(Runnable run)
      May be invoked within a base constructor to defer part of initialization until after the facade instance is fully formed.
      Parameters:
      run - initialization segment to run after all facade elements are populated
    • seal

      void seal()
      Should be called at the end of all concrete subclass constructors.