Package org.openjdk.asmtools.jasm

## Class ParserCP

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

-     public class ParserCP
      extends ParseBase

  ParserCP ParseCP is a parser class owned by Parser.java. It is primarily responsible for parsing the constant pool and constant declarations.

- - ### Field Summary

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

      `debugFlag, env, parser, scanner`

  - ### Constructor Summary

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

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected ConstantPool.ConstCell` | `parseConstRef​(Tables.ConstType defaultTag)` |
    `protected ConstantPool.ConstCell` | `parseConstRef​(Tables.ConstType defaultTag, Tables.ConstType default2Tag)` |
    `protected ConstantPool.ConstCell` | `parseConstRef​(Tables.ConstType defaultTag, Tables.ConstType default2Tag, boolean ignoreKeywords)` | Parse an instruction argument, one of: * #NUMBER, #NAME, [TAG] CONSTVALUE
    `protected ConstantPool.ConstValue` | `parseConstValue​(Tables.ConstType tag)` | Parse CONSTVALUE
    `protected ConstantPool.ConstValue` | `parseTagConstValue​(Tables.ConstType defaultTag)` | Parse [TAG] CONSTVALUE
    `protected ConstantPool.ConstValue` | `parseTagConstValue​(Tables.ConstType defaultTag, Tables.ConstType default2Tag, boolean ignoreKeywords)` |

    - ### 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

    - #### ParserCP

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

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

  - ### Method Detail

    - #### parseConstValue

          protected ConstantPool.ConstValue parseConstValue​(Tables.ConstType tag)
                                                     throws java.io.IOException,
                                                            Scanner.SyntaxError

      Parse CONSTVALUE
      Throws:
        `java.io.IOException`
        `Scanner.SyntaxError`

    - #### parseTagConstValue

          protected ConstantPool.ConstValue parseTagConstValue​(Tables.ConstType defaultTag)
                                                        throws Scanner.SyntaxError,
                                                               java.io.IOException

      Parse [TAG] CONSTVALUE
      Throws:
        `Scanner.SyntaxError`
        `java.io.IOException`

    - #### parseTagConstValue

          protected ConstantPool.ConstValue parseTagConstValue​(Tables.ConstType defaultTag,
                                                               Tables.ConstType default2Tag,
                                                               boolean ignoreKeywords)
                                                        throws Scanner.SyntaxError,
                                                               java.io.IOException

      Throws:
        `Scanner.SyntaxError`
        `java.io.IOException`

    - #### parseConstRef

          protected ConstantPool.ConstCell parseConstRef​(Tables.ConstType defaultTag)
                                                  throws Scanner.SyntaxError,
                                                         java.io.IOException

      Throws:
        `Scanner.SyntaxError`
        `java.io.IOException`

    - #### parseConstRef

          protected ConstantPool.ConstCell parseConstRef​(Tables.ConstType defaultTag,
                                                         Tables.ConstType default2Tag)
                                                  throws Scanner.SyntaxError,
                                                         java.io.IOException

      Throws:
        `Scanner.SyntaxError`
        `java.io.IOException`

    - #### parseConstRef

          protected ConstantPool.ConstCell parseConstRef​(Tables.ConstType defaultTag,
                                                         Tables.ConstType default2Tag,
                                                         boolean ignoreKeywords)
                                                  throws Scanner.SyntaxError,
                                                         java.io.IOException

      Parse an instruction argument, one of: * #NUMBER, #NAME, [TAG] CONSTVALUE
      Throws:
        `Scanner.SyntaxError`
        `java.io.IOException`