Package org.cqframework.cql.cql2elm
Class CompilerOptions
java.lang.Object
org.cqframework.cql.cql2elm.CompilerOptions
This class provides functions for extracting and parsing CQL Compiler
Options from
a Library
-
Method Summary
Modifier and TypeMethodDescriptionstatic Set<CqlCompilerOptions.Options> getCompilerOptions(org.hl7.elm.r1.Library library) Gets the compiler options used to generate an elm Library.static StringgetCompilerVersion(org.hl7.elm.r1.Library library) Gets the compiler version used to generate an elm Library.static Set<CqlCompilerOptions.Options> parseCompilerOptions(String compilerOptions) Parses a string representing CQL compiler Options into an EnumSet.
-
Method Details
-
getCompilerOptions
Gets the compiler options used to generate an elm Library. Returns null if the compiler options could not be determined. (for example, the Library was translated without annotations)- Parameters:
library- The library to extracts the options from.- Returns:
- The set of options used to translate the library.
-
parseCompilerOptions
Parses a string representing CQL compiler Options into an EnumSet. The string is expected to be a comma delimited list of values from the CqlCompiler.Options enumeration. For example "EnableListPromotion, EnableListDemotion".- Parameters:
compilerOptions- the string to parse- Returns:
- the set of options
-
getCompilerVersion
Gets the compiler version used to generate an elm Library. Returns null if the compiled version could not be determined. (for example, the Library was compiled without annotations)- Parameters:
library- The library to extracts the compiler version from.- Returns:
- The version of compiler used to compiler the library.
-