Package org.destecs.core.parsers

Examples of org.destecs.core.parsers.ContractParserWrapper


      infoSharedDesignParameters(sharedDesignParameters);

      contract = null;
      try
      {
        ContractParserWrapper parser = new ContractParserWrapper();
        contract = parser.parse(contractFile);
        if (parser.hasErrors())
        {
          throw new Exception("Invalid Contract - parse errors");
        }
      } catch (Exception e)
      {
View Full Code Here


  {
    @SuppressWarnings("rawtypes")
    @Override
    protected ParserWrapper getParser()
    {
      return new ContractParserWrapper();
    }
View Full Code Here

      {
        CoSimLaunchConfigurationTab cosimLaunchTab = (CoSimLaunchConfigurationTab) tab;
        IProject project = cosimLaunchTab.getProject();
        if (project != null)
        {
          ContractParserWrapper parser = new ContractParserWrapper();
          IDestecsProject dproject = (IDestecsProject) project.getAdapter(IDestecsProject.class);

          Contract contract;
          try
          {
            if (dproject == null)
            {
              return;
            }
            File file = dproject.getContractFile().getLocation().toFile();
            if (!file.exists())
            {
              return;
            }
            contract = parser.parse(file);

            if (contract == null)
            {
              return;
            }
View Full Code Here

   * @throws Exception
   */
  public static Contract getContract(IDestecsProject project,
      IAddErrorHandler errorHandler) throws Exception
  {
    ContractParserWrapper contractParser = new ContractParserWrapper();
    Contract contract = (Contract) parse(contractParser,
        project.getContractFile(), errorHandler);
    return contract;
  }
View Full Code Here

TOP

Related Classes of org.destecs.core.parsers.ContractParserWrapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.