Package org.openjdk.asmtools.jasm
Class ParserInstr
java.lang.Object
org.openjdk.asmtools.jasm.ParseBase
org.openjdk.asmtools.jasm.ParserInstr
Instruction Parser
ParserInstr is a parser class owned by Parser.java. It is primarily responsible for
parsing instruction byte codes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ParserCP
local handle for the constant parser - needed for parsing constants during instruction construction.Fields inherited from class org.openjdk.asmtools.jasm.ParseBase
debugFlag, environment, parser, scanner
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ParserInstr
(Parser parser, ParserCP cpParser) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Parse an instruction.protected Indexer
Parse a label instruction argumentprotected SwitchTable
Parse a Switch Table.Methods inherited from class org.openjdk.asmtools.jasm.ParseBase
init, init, init, setDebugFlag, traceMethodInfoLn, traceMethodInfoLn
-
Field Details
-
instructionParser
local handle for the constant parser - needed for parsing constants during instruction construction.
-
-
Constructor Details
-
ParserInstr
Constructor- Parameters:
parser
- parent, main parsercpParser
- constant pool parser- Throws:
IOException
-
-
Method Details
-
parseInstr
Parse an instruction.- Throws:
SyntaxError
IOException
-
parseSwitchTable
Parse a Switch Table. return value: SwitchTable.- Throws:
SyntaxError
IOException
-
parseLabelRef
Parse a label instruction argument- Throws:
SyntaxError
IOException
-