Package org.openjdk.asmtools.jasm

## Class ParserAnnotation

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

-     public class ParserAnnotation
      extends ParseBase

  ParserAnnotation ParserAnnotation is a parser class owned by Parser.java. It is primarily responsible for parsing Annotations (for classes, methods or fields). ParserAnnotation can parse the different types of Annotation Attributes: Runtime(In)Visible Annotations (JDK 6+) Default Annotations (JDK 6+) Runtime(In)VisibleParameter Annotations (JDK 7+) Runtime(In)VisibleType Annotations (JSR308, JDK8+)

- - ### Field Summary

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

      `debugFlag, env, parser, scanner`

  - ### Constructor Summary

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

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected DefaultAnnotationAttr` | `parseDefaultAnnotation()` | parseDefaultAnnotation parses a default Annotation attribute
    `protected void` | `parseParamAnnots​(int _totalParams, org.openjdk.asmtools.jasm.MethodData curMethod)` | parseParamAnnots Parses Parameter Annotations attributes.
    `protected void` | `scanParamName​(int totalParams, int paramNum, org.openjdk.asmtools.jasm.MethodData curMethod)` |

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

    - #### ParserAnnotation

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

  - ### Method Detail

    - #### scanParamName

          protected void scanParamName​(int totalParams,
                                       int paramNum,
                                       org.openjdk.asmtools.jasm.MethodData curMethod)
                                throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### parseDefaultAnnotation

          protected DefaultAnnotationAttr parseDefaultAnnotation()
                                                          throws Scanner.SyntaxError,
                                                                 java.io.IOException

      parseDefaultAnnotation parses a default Annotation attribute
      Returns:
        the parsed Annotation Attribute
      Throws:
        `Scanner.SyntaxError`
        `java.io.IOException`

    - #### parseParamAnnots

          protected void parseParamAnnots​(int _totalParams,
                                          org.openjdk.asmtools.jasm.MethodData curMethod)
                                   throws Scanner.SyntaxError,
                                          java.io.IOException

      parseParamAnnots Parses Parameter Annotations attributes.
      Parameters:
        `_totalParams` -
        `curMethod` -
      Throws:
        `Scanner.SyntaxError`
        `java.io.IOException`