Class TPHProcessor

java.lang.Object
org.fhirfrog.frog.tph.TPHProcessor

public class TPHProcessor extends Object
Main entry point for parsing TPH files and compiling to FHIR TestPlan resources.

Example usage:


 TPHProcessor processor = new TPHProcessor();
 
 // Parse from file
 TestPlanNode ast = processor.parse(Path.of("test.tph"));
 
 // Parse from string
 String tph = "TestPlan: MyTest\nTitle: \"My Test\"\n...";
 TestPlanNode ast = processor.parse(tph);
 
  • Constructor Details

    • TPHProcessor

      public TPHProcessor()
  • Method Details

    • parse

      public TestPlanNode parse(Path tphFile) throws IOException
      Parse TPH file and return AST.
      Parameters:
      tphFile - path to .tph file
      Returns:
      parsed TestPlan AST
      Throws:
      IOException - if file cannot be read
    • parse

      public TestPlanNode parse(String tphContent)
      Parse TPH string and return AST.
      Parameters:
      tphContent - TPH source code
      Returns:
      parsed TestPlan AST