Class EGModule

  • All Implemented Interfaces:
    Serializable, Cloneable, XThing

    public class EGModule
    extends JavaModule
    The module for the basic. This sets the namespace and an alias (for people using the old module system). It is charged with creating new instances of itself and holds module level documentation.

    Created by Jeff Gaynor
    on 4/2/20 at 8:09 AM

    See Also:
    Serialized Form
    • Constructor Detail

      • EGModule

        public EGModule()
      • EGModule

        protected EGModule​(URI namespace,
                           String alias)
    • Method Detail

      • newInstance

        public Module newInstance​(State state)
        Description copied from class: Module
        Modules are effectively templates. This passes in the state of the parser at the point a new module is required and the contract is to create a new instance of this module with the state. Note that the state passed in may have nothing to do with the state here. You are creating a new module for the given state using this as a template.

        All implementations should gracefully handle a null state with the assumption that the full state will be set later. This is because of bootstrapping networks of modules during deserialization.
        Specified by:
        newInstance in class Module
        Returns: