Ejemplo n.º 1
0
 @Override
 public String toString() {
   return StringUtils.concat(
       "Enumeration[",
       StringUtils.join(rootEnum, ", "),
       (hasExceptionSpec() || additionalEnum != null ? ", " + "..." : ""),
       exceptionSpec != null ? " ! " + exceptionSpec : "",
       (additionalEnum != null ? ", " + StringUtils.join(additionalEnum, ", ") : ""),
       "]");
 }
Ejemplo n.º 2
0
  public void writeClasses() throws CompilerException {
    String pkgDir = pkg.replace('.', File.separatorChar);

    File pkgFile = new File(StringUtils.concat(outputDir, File.separator, pkgDir));

    if (!pkgFile.exists()) {
      if (!pkgFile.mkdirs()) {
        throw new CompilerException("Failed to create directory " + pkgFile);
      }
    }

    new JavaWriter().write(structs, outputDir);
  }
Ejemplo n.º 3
0
 @Override
 public String toString() {
   return StringUtils.concat("ExternalValueReference[", module, ".", getValue(), "]");
 }
Ejemplo n.º 4
0
 @Override
 public String toString() {
   return components != null ? StringUtils.join(components, ".") : "null";
 }