Class VbaModule

  • All Implemented Interfaces:
    IVbaModule

    public final class VbaModule
    extends Object
    implements IVbaModule

    Represents a VBA module.

    • Method Detail

      • createClassModule

        public static VbaModule createClassModule​(String name)

        Creates an instance of VbaModule with VbaModuleType.ClassModule type.

      • createProceduralModule

        public static VbaModule createProceduralModule​(String name)

        Creates an instance of VbaModule with VbaModuleType.ProceduralModule type.

      • getName

        public final String getName()

        Gets a name of the VBA module

        Specified by:
        getName in interface IVbaModule
        Returns:
        a name of the VBA module
      • setName

        public final void setName​(String value)

        A name of the VBA module

        Parameters:
        value - a name of the VBA module
      • getSourceCode

        public final String getSourceCode()

        Gets a source code of the VBA module

        Specified by:
        getSourceCode in interface IVbaModule
        Returns:
        a source code of the VBA module
      • setSourceCode

        public final void setSourceCode​(String value)

        Sets a source code of the VBA module

        Parameters:
        value - a source code of the VBA module
      • getType

        public final int getType()

        Gets the type of the module.

        Returns:
        the type of the module.