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 ( "\"" , "" ) ; }
Returns the string value of passed argument .