Class ParseInstruction
java.lang.Object
org.openjdk.asmtools.jasm.ParseBase
org.openjdk.asmtools.jasm.ParseInstruction
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 ParseConstPoollocal handle for the constant parser - needed for parsing constants during instruction construction.Fields inherited from class ParseBase
debugFlag, environment, parser, scanner -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedParseInstruction(Parser parser, ParseConstPool cpParser) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanisInstruction(JasmTokens.Token token) protected voidParse an instruction.protected IndexerParse a label instruction argumentprotected SwitchTableParse a Switch Table.Methods inherited from class ParseBase
init, init, init, setDebugFlag, traceMethodInfoLn, traceMethodInfoLn, traceMethodInfoLn
-
Field Details
-
instructionParser
local handle for the constant parser - needed for parsing constants during instruction construction.
-
-
Constructor Details
-
ParseInstruction
Constructor- Parameters:
parser- parent, main parsercpParser- constant pool parser- Throws:
IOException
-
-
Method Details
-
isInstruction
-
parseInstr
Parse an instruction.- Throws:
SyntaxErrorIOException
-
parseSwitchTable
Parse a Switch Table. return value: SwitchTable.- Throws:
SyntaxErrorIOException
-
parseLabelRef
Parse a label instruction argument- Throws:
SyntaxErrorIOException
-