You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Steve Lawrence (Jira)" <ji...@apache.org> on 2022/07/01 15:37:00 UTC
[jira] [Created] (DAFFODIL-2709) Add "info processor" command to CLI debugger
Steve Lawrence created DAFFODIL-2709:
----------------------------------------
Summary: Add "info processor" command to CLI debugger
Key: DAFFODIL-2709
URL: https://issues.apache.org/jira/browse/DAFFODIL-2709
Project: Daffodil
Issue Type: New Feature
Components: CLI, Debugger
Reporter: Steve Lawrence
We should add a new "info processor" command to the CLI debugger, which would print out either the parser or unparser depending on which is available.
This would likely replace the InfoProcessorBase abstract class with a concrete InfoProcessor object. And then the "not available" logic would move to the individual parser/unparse commands. E.g.
{code:scala}
class InfoParser ... {
def act(...) = {
state match {
case _: PState => debugPrintln("%s: %s".format(name, processor.toBriefXML(2)))
case _ => debugPrintln("%s: not available".format(name))
}
}
}
{code}
InfoUnparser would be the same but would match on UState instead of PState.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)