Examples of RubySyntaxException


Examples of com.puppetlabs.geppetto.ruby.RubySyntaxException

  @Override
  public List<PPFunctionInfo> getFunctionInfo(File file) throws IOException, RubySyntaxException {
    List<PPFunctionInfo> functions = Lists.newArrayList();
    Result result = internalParse(file);
    if(result.hasErrors())
      throw new RubySyntaxException(result.getIssues());
    RubyModuleFinder finder = new RubyModuleFinder();
    ModuleNode foundModule = finder.findModule(result.getAST(), functionModuleFQN);
    if(foundModule == null)
      return functions;
    // find the function
View Full Code Here

Examples of com.puppetlabs.geppetto.ruby.RubySyntaxException

    return getFunctionInfo(result);
  }

  protected List<PPFunctionInfo> getFunctionInfo(Result result) throws IOException, RubySyntaxException {
    if(result.hasErrors())
      throw new RubySyntaxException(result.getIssues());
    List<PPFunctionInfo> functions = Lists.newArrayList();
    RubyCallFinder callFinder = new RubyCallFinder();
    GenericCallNode found = callFinder.findCall(result.getAST(), newFunctionFQN);
    if(found == null)
      return functions;
View Full Code Here

Examples of com.puppetlabs.geppetto.ruby.RubySyntaxException

    return getMetaTypeProperties(result);
  }

  protected PPTypeInfo getMetaTypeProperties(Result result) throws IOException, RubySyntaxException {
    if(result.hasErrors())
      throw new RubySyntaxException(result.getIssues());
    PPTypeFinder typeFinder = new PPTypeFinder();
    PPTypeInfo typeInfo = typeFinder.findMetaTypeInfo(result.getAST());
    return typeInfo;
  }
View Full Code Here

Examples of com.puppetlabs.geppetto.ruby.RubySyntaxException

    return getTypeInfo(result, isNagiosLoad(file));
  }

  protected List<PPTypeInfo> getTypeInfo(Result result, boolean nagiosLoad) throws IOException, RubySyntaxException {
    if(result.hasErrors())
      throw new RubySyntaxException(result.getIssues());
    PPTypeFinder typeFinder = new PPTypeFinder();

    if(nagiosLoad)
      return typeFinder.findNagiosTypeInfo(result.getAST());
View Full Code Here

Examples of com.puppetlabs.geppetto.ruby.RubySyntaxException

  }

  public List<PPTypeInfo> getTypePropertiesInfo(Result result) throws IOException, RubySyntaxException {
    List<PPTypeInfo> types = Lists.newArrayList();
    if(result.hasErrors())
      throw new RubySyntaxException(result.getIssues());
    PPTypeFinder typeFinder = new PPTypeFinder();
    List<PPTypeInfo> typeInfo = typeFinder.findTypePropertyInfo(result.getAST());
    if(typeInfo != null)
      types.addAll(typeInfo);
    return types;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.