Class CompilerOptions

java.lang.Object
org.cqframework.cql.cql2elm.CompilerOptions

public class CompilerOptions extends Object
This class provides functions for extracting and parsing CQL Compiler Options from a Library
  • Method Details

    • getCompilerOptions

      public static Set<CqlCompilerOptions.Options> getCompilerOptions(org.hl7.elm.r1.Library library)
      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

      public static Set<CqlCompilerOptions.Options> parseCompilerOptions(String compilerOptions)
      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

      public static String getCompilerVersion(org.hl7.elm.r1.Library library)
      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.