Package org.openjdk.asmtools.jasm

## Class ParserInstr

- java.lang.Object
- - org.openjdk.asmtools.jasm.ParseBase
  - - org.openjdk.asmtools.jasm.ParserInstr

-     public class ParserInstr
      extends ParseBase

  ParserInstr ParserInstr is a parser class owned by Parser.java. It is primarily responsible for parsing instruction byte codes.

- - ### Field Summary

    - ### Fields inherited from class org.openjdk.asmtools.jasm.ParseBase

      `debugFlag, env, parser, scanner`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor | Description
    --- | --- | ---
    `protected` | `ParserInstr​(Scanner scanner, org.openjdk.asmtools.jasm.Parser parser, ParserCP cpParser, Environment env)` | main constructor

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected void` | `parseInstr()` | Parse an instruction.
    `protected org.openjdk.asmtools.jasm.Argument` | `parseLabelRef()` | Parse a label instruction argument
    `protected org.openjdk.asmtools.jasm.SwitchTable` | `parseSwitchTable()` | Parse a Switch Table. return value: SwitchTable.

    - ### Methods inherited from class org.openjdk.asmtools.jasm.ParseBase

      `debugScan, debugStr, enableDebug, init`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ParserInstr

          protected ParserInstr​(Scanner scanner,
                                org.openjdk.asmtools.jasm.Parser parser,
                                ParserCP cpParser,
                                Environment env)

      main constructor
      Parameters:
        `scanner` -
        `parser` -
        `env` -

  - ### Method Detail

    - #### parseInstr

          protected void parseInstr()
                             throws Scanner.SyntaxError,
                                    java.io.IOException

      Parse an instruction.
      Throws:
        `Scanner.SyntaxError`
        `java.io.IOException`

    - #### parseSwitchTable

          protected org.openjdk.asmtools.jasm.SwitchTable parseSwitchTable()
                                                                    throws Scanner.SyntaxError,
                                                                           java.io.IOException

      Parse a Switch Table. return value: SwitchTable.
      Throws:
        `Scanner.SyntaxError`
        `java.io.IOException`

    - #### parseLabelRef

          protected org.openjdk.asmtools.jasm.Argument parseLabelRef()
                                                              throws Scanner.SyntaxError,
                                                                     java.io.IOException

      Parse a label instruction argument
      Throws:
        `Scanner.SyntaxError`
        `java.io.IOException`