# Uses of Class
com.snmp4j.smi.CompilationResult

Packages that use CompilationResult
Package
Description
com.snmp4j.smi
Provides classes and interfaces for parsing, compiling, loading, and using Management Information Base (MIB) specifications written in Structure of Management Information (SMI) version 1 and 2 with SNMP4J to format and parse SNMP data.
com.snmp4j.smi.util.json

- ## Uses of CompilationResult in com.snmp4j.smi

  Methods in com.snmp4j.smi that return types with arguments of type CompilationResult
  Modifier and Type
  Method
  Description
  `List<CompilationResult>`
  SmiCompiler.`compile(NamedInputStream[] files, CompilationMonitor compilationMonitor, SmiCompiler.TargetMode compilerTargetMode, SmiCompiler.OverwriteMode overwriteMode, SmiCompiler.Strictness strictness)`
  Compiles an array of text or ZIP files provided as `NamedInputStream`s.
  `List<CompilationResult>`
  SmiManager.`compile(NamedInputStream[] files, CompilationMonitor compilationMonitor, boolean loadIntoRepository, boolean updateExistent, boolean compileLeniently)`
  Deprecated.
  Use `SmiManager.compile(NamedInputStream[], CompilationMonitor, com.snmp4j.smi.SmiCompiler.TargetMode, com.snmp4j.smi.SmiCompiler.OverwriteMode, com.snmp4j.smi.SmiCompiler.Strictness)` instead which provides a cleaner interface.
  `List<CompilationResult>`
  SmiManager.`compile(NamedInputStream[] files, CompilationMonitor compilationMonitor, SmiCompiler.TargetMode compilerTargetMode, SmiCompiler.OverwriteMode overwriteMode, SmiCompiler.Strictness strictness)`
  `List<CompilationResult>`
  SmiManager.`compile(NamedInputStream[] files, CompilationMonitor compilationMonitor, SmiCompiler.TargetMode compilerTargetMode, SmiCompiler.OverwriteMode overwriteMode, SmiCompiler.Strictness strictness, int maxThreads)`
  Compiles an array of text or ZIP files provided as `NamedInputStream`s, optionally using several threads to compile independent MIB modules in parallel.
  `List<CompilationResult>`
  SmiManager.`compile(File[] files, CompilationMonitor compilationMonitor, boolean loadIntoRepository, boolean updateExistent, boolean compileLeniently)`
  Compiles an array of text or ZIP files provided as `File`s.
  Method parameters in com.snmp4j.smi with type arguments of type CompilationResult
  Modifier and Type
  Method
  Description
  `static List<String>`
  CompilationResult.`getFailedFiles(List<CompilationResult> compilationResults)`
  Gets the file names from the given `CompilationResult`s which had errors during compilation.
  `static List<String>`
  CompilationResult.`getModuleNames(List<CompilationResult> compilationResults)`
  Get all MIB module names successfully compiled from the given compilation result list.
  `static boolean`
  CompilationResult.`hasErrors(List<CompilationResult> compilationResults)`
  Returns `true` if the list of compilation results contains at least one detected SMI error.

- ## Uses of CompilationResult in com.snmp4j.smi.util.json

  Methods in com.snmp4j.smi.util.json with parameters of type CompilationResult
  Modifier and Type
  Method
  Description
  `static String`
  CompilationResultJsonConverter.`toJson(CompilationResult result)`
  Converts a CompilationResult instance to JSON format.