Package com.sun.codemodel

Examples of com.sun.codemodel.JFormatter


  public static final String generableToString(JGenerable generable) {
    // There is hardly any clean universal way to get the value from e.g. JExpression except of serializing it.
    // Compare JStringLiteral and JExp#dotclass().
    Writer w = new StringWriter();

    generable.generate(new JFormatter(w));

    // FIXME: Hopefully nobody will put quotes into annotation member value.
    return w.toString().replace("\"", "");
  }
View Full Code Here

TOP

Related Classes of com.sun.codemodel.JFormatter

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.