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+)
-
-
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 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 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
-
-