Version 2.3.0

  • ClassOrInterfaceType implements NamedNode
  • DumpVisitor can now be extended
  • Improved documentation
  • AST: lists are now lazy initialized

Version 2.4.0

  • several fixes in DumpVisitor for bugs due to lazy initialization
  • make TypeDeclaration implements DocumentableNode directly
  • TypedNode interface introduced
  • introduce MultiBoundType
  • refactored IntersectionType and UnionType
  • refactored CatchClause
  • parsing annotations in throws declarations
  • parse orphan semicolons in import statements
  • added PackageDeclaration.getPackageName
  • solved issue with newlines in string literals
  • fixed handling of UnknownType in EqualsVisitor
  • improvements to CommentsParser
  • removing old grammar

Version 2.5.0

API breaking changes:

  • 191: moved TreeVisitor to visitor package

  • 368, 162, 303, 302, 360: use correct type in some places.

  • 371: code is now compiled with Java 8

  • 342, 331: ModifierVisitorAdapter detects and removes broken nodes

  • 328, 270: upgrade JavaCC (use TokenMgrException now) Other changes:

  • 297: enable access to tokens.

  • 341, 361: node positions are now OO

  • 211, 373: escaping of \n \r for string literals

  • 336, 276, 141: JavaDoc support now works

  • 337, 281: reorganize the stream reading code

  • 343, 309, 332, 57: take advantage of common interfaces

  • 329, 326, 327: deal with platform issues

  • 163, 236, 252, 296, 269, 339, 321, 322, 252, 253, 293, 295: various fixes

  • 310, 311, 313, 301, 294: some code clean-ups

Version 2.5.1

  • 394 OSGi manifest added
  • 391 fix ModifierVisitor NullPointerException bug
  • 385 a few new parse methods
  • 386 fix dumping an empty import (a single ; after the package declaration)

Version 3.0.0-alpha.1

  • 400 405 introduce many "builder" style methods for constructing code. Thanks DeepSnowNeeL!
  • 409 remove ASTHelper (methods are now on specific Node subclasses)
  • 414 JavaParser can now be instantiated and reused. InstanceJavaParser removed
  • 418 417 411 408 bugs
  • 367 420 407 402 various cleanups

Version 3.0.0-alpha.2