Package org.openjdk.asmtools.jasm
Class ParserCP
java.lang.Object
org.openjdk.asmtools.jasm.ParseBase
org.openjdk.asmtools.jasm.ParserCP
ParserCP
ParseCP is a parser class owned by Parser.java. It is primarily responsible for parsing
the constant pool and constant declarations.
-
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ParserCP
(Scanner scanner, org.openjdk.asmtools.jasm.Parser parser, Environment env) main constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected ConstantPool.ConstCell
parseConstRef
(Tables.ConstType defaultTag) protected ConstantPool.ConstCell
parseConstRef
(Tables.ConstType defaultTag, Tables.ConstType default2Tag) protected ConstantPool.ConstCell
parseConstRef
(Tables.ConstType defaultTag, Tables.ConstType default2Tag, boolean ignoreKeywords) Parse an instruction argument, one of: * #NUMBER, #NAME, [TAG] CONSTVALUEprotected ConstantPool.ConstValue
Parse CONSTVALUEprotected ConstantPool.ConstValue
parseTagConstValue
(Tables.ConstType defaultTag) Parse [TAG] CONSTVALUEprotected ConstantPool.ConstValue
parseTagConstValue
(Tables.ConstType defaultTag, Tables.ConstType default2Tag, boolean ignoreKeywords) Methods inherited from class org.openjdk.asmtools.jasm.ParseBase
debugScan, debugStr, enableDebug, init
-
Constructor Details
-
ParserCP
main constructor- Parameters:
scanner
-parser
-env
-
-
-
Method Details
-
parseConstValue
protected ConstantPool.ConstValue parseConstValue(Tables.ConstType tag) throws IOException, Scanner.SyntaxError Parse CONSTVALUE- Throws:
IOException
Scanner.SyntaxError
-
parseTagConstValue
protected ConstantPool.ConstValue parseTagConstValue(Tables.ConstType defaultTag) throws Scanner.SyntaxError, IOException Parse [TAG] CONSTVALUE- Throws:
Scanner.SyntaxError
IOException
-
parseTagConstValue
protected ConstantPool.ConstValue parseTagConstValue(Tables.ConstType defaultTag, Tables.ConstType default2Tag, boolean ignoreKeywords) throws Scanner.SyntaxError, IOException - Throws:
Scanner.SyntaxError
IOException
-
parseConstRef
protected ConstantPool.ConstCell parseConstRef(Tables.ConstType defaultTag) throws Scanner.SyntaxError, IOException - Throws:
Scanner.SyntaxError
IOException
-
parseConstRef
protected ConstantPool.ConstCell parseConstRef(Tables.ConstType defaultTag, Tables.ConstType default2Tag) throws Scanner.SyntaxError, IOException - Throws:
Scanner.SyntaxError
IOException
-
parseConstRef
protected ConstantPool.ConstCell parseConstRef(Tables.ConstType defaultTag, Tables.ConstType default2Tag, boolean ignoreKeywords) throws Scanner.SyntaxError, IOException Parse an instruction argument, one of: * #NUMBER, #NAME, [TAG] CONSTVALUE- Throws:
Scanner.SyntaxError
IOException
-