Package org.openjdk.asmtools.jasm
Class ParserAnnotation
java.lang.Object
org.openjdk.asmtools.jasm.ParseBase
org.openjdk.asmtools.jasm.ParserAnnotation
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
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ParserAnnotation
(Scanner scanner, org.openjdk.asmtools.jasm.Parser parser, Environment env) -
Method Summary
Modifier and TypeMethodDescriptionprotected DefaultAnnotationAttr
parseDefaultAnnotation parses a default Annotation attributeprotected 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
-
Constructor Details
-
ParserAnnotation
protected ParserAnnotation(Scanner scanner, org.openjdk.asmtools.jasm.Parser parser, Environment env)
-
-
Method Details
-
scanParamName
protected void scanParamName(int totalParams, int paramNum, org.openjdk.asmtools.jasm.MethodData curMethod) throws IOException - Throws:
IOException
-
parseDefaultAnnotation
parseDefaultAnnotation parses a default Annotation attribute- Returns:
- the parsed Annotation Attribute
- Throws:
Scanner.SyntaxError
IOException
-
parseParamAnnots
protected void parseParamAnnots(int _totalParams, org.openjdk.asmtools.jasm.MethodData curMethod) throws Scanner.SyntaxError, IOException parseParamAnnots Parses Parameter Annotations attributes.- Parameters:
_totalParams
-curMethod
-- Throws:
Scanner.SyntaxError
IOException
-