Releases: phax/jcodemodel
Releases · phax/jcodemodel
JCodeModel 3.3.0
- Added check for package names so that no invalid package names can be created (issue #70 from @guiguilechat)
- Added check to avoid creating classes existing in the "java.lang" package (issue #71 from @guiguilechat)
JLambdaMethodRef
now works with arbitrary expressions as the left hand side
JCodeModel 3.2.4
- Made class
JavaUnicodeEscapeWriter
publicly accessible - Extended enum constant ref API (issue #68 from @guiguilechat)
JCodeModel 3.2.3
JCodeModel 3.2.2
- Using
jsr305
instead ofannotations
in POM (issue #66 from @jjYBdx4IL)
JCodeModel 3.2.1
- Added
var
as reserved word - Made
JReturn
constructor public - Added
JInvocation._this
static method - Added
IJExpression.castTo
method - Added support to create
final
variables infor each
loops JExpr.dotClass
now takesAbstractJType
and not justAbstractJClass
- Made constructors of subclasses of
IJStatement
public - No line breaks for annotations to parameters
- Put each method parameter on a separate line if more than 3 parameters are present
JCodeModel 3.2.0
- Introduced class
JCMWriter
that should be used to emit the outgoing Java files. This replacescodemodel.build
and offers a more consistent API. Most existing method remain existing and deprecated and just forward toJCMWriter
.- Instead of
cm.build (...)
usenew JCMWriter (cm).build (...)
- Instead of
- Extracted
IJFormatter
interface for better separation of concerns.JFormatter
was moved to a sub-package ProgressCodeWriter
no longer needs an explicitPrintStream
but aProgressCodeWriter.IProgressTracker
instead.- Default charset for Java classes is now
UTF-8
. - Added new
JAnnotationUse
method overloads that automatically passvalue
as the annotation parameter name (issue #64)
JCodeModel 3.1.0
- Added
AbstractJType._new()
- Change return types of special
JBlock
methods tovoid
to avoid chaining (issue #62) - incompatible change! - Added new
JExpr.invokeThis
andJExpr.invokeSuper
static methods
JCodemodel 3.0.2
- Fixed method resolution using direct class references (issue #58)
- Added some additional
JInvocation.arg...
sanity methods - Enum constant argument list is now accessible