Class MsCreateAssembly


public final class MsCreateAssembly extends MsParserAbstract
Parser for Microsoft SQL CREATE ASSEMBLY statements. Handles assembly creation including binary data, owner settings, and permission levels with proper formatting of binary hexadecimal data.
  • Constructor Details

    • MsCreateAssembly

      public MsCreateAssembly(TSQLParser.Create_assemblyContext ctx, MsDatabase db, ISettings settings)
      Creates a parser for Microsoft SQL CREATE ASSEMBLY statements.
      Parameters:
      ctx - the ANTLR parse tree context for the CREATE ASSEMBLY statement
      db - the Microsoft SQL database schema being processed
      settings - parsing configuration settings
  • Method Details

    • parseObject

      public void parseObject()
      Description copied from class: ParserAbstract
      Parses a database object from the current context. Must be implemented by concrete subclasses to handle specific object types.
      Specified by:
      parseObject in class ParserAbstract<MsDatabase>
    • formatBinary

      public static String formatBinary(String hex)
      Formats binary hexadecimal data for assembly storage. Removes newlines from input and reformats with proper line breaks for readability.
      Parameters:
      hex - the hexadecimal string to format
      Returns:
      formatted hexadecimal string with proper line breaks