类 CompilationResult


  • public class CompilationResult
    extends java.lang.Object
    • 字段详细资料

      • version

        public java.lang.String version
    • 构造器详细资料

      • CompilationResult

        public CompilationResult()
    • 方法详细资料

      • parse

        public static CompilationResult parse​(java.lang.String rawJson)
                                       throws java.io.IOException
        抛出:
        java.io.IOException
      • getContract

        public CompilationResult.ContractMetadata getContract​(java.lang.String contractName)
        参数:
        contractName - The contract name
        返回:
        the first contract found for a given contract name; use getContract(Path, String) if this compilation result contains more than one contract with the same name
      • getContract

        public CompilationResult.ContractMetadata getContract​(java.nio.file.Path contractPath,
                                                              java.lang.String contractName)
        参数:
        contractPath - The contract path
        contractName - The contract name
        返回:
        the contract with key contractPath:contractName if it exists; null otherwise
      • getContractKeys

        public java.util.List<java.lang.String> getContractKeys()
        返回:
        all keys from this compilation result