예제 #1
0
 @Override
 public String toString() {
   return StringUtils.concat(
       "Enumeration[",
       StringUtils.join(rootEnum, ", "),
       (hasExceptionSpec() || additionalEnum != null ? ", " + "..." : ""),
       exceptionSpec != null ? " ! " + exceptionSpec : "",
       (additionalEnum != null ? ", " + StringUtils.join(additionalEnum, ", ") : ""),
       "]");
 }
예제 #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);
  }
예제 #3
0
 @Override
 public String toString() {
   return StringUtils.concat("ExternalValueReference[", module, ".", getValue(), "]");
 }
예제 #4
0
 @Override
 public String toString() {
   return components != null ? StringUtils.join(components, ".") : "null";
 }