Package org.fhirfrog.frog.tph
Class TPHProcessor
java.lang.Object
org.fhirfrog.frog.tph.TPHProcessor
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionParse TPH string and return AST.Parse TPH file and return AST.
-
Constructor Details
-
TPHProcessor
public TPHProcessor()
-
-
Method Details
-
parse
Parse TPH file and return AST.- Parameters:
tphFile- path to .tph file- Returns:
- parsed TestPlan AST
- Throws:
IOException- if file cannot be read
-
parse
Parse TPH string and return AST.- Parameters:
tphContent- TPH source code- Returns:
- parsed TestPlan AST
-