All Versions
203
Latest Version
Avg Release Cycle
19 days
Latest Release
-

Changelog History
Page 18

  • v3.1.0-beta.1 Changes

    This version is a beta because there are a lot of new features that may still change.

    This version needs a minor version increase because of a backwards compatability issue:

    • 719 getJavadoc, getJavadocComment and getComment could return null. Our promise was to return Optional, so that is what they do now.

    ๐Ÿ†• New:

    • 658 718 736 737 we have created a metamodel. It gives information about the structure of the various AST nodes, as if you are introspecting them. ๐Ÿ“œ You can find it in javaparser-metamodel, the main class is JavaParserMetaModel
    • 353 365 visitors are no longer hand made, they are now generated from the metamodel. This should make them 100% reliable. ๐Ÿ‘ฏ Affected visitors are: GenericVisitorAdapter, EqualsVisitor, VoidVisitorAdapter, VoidVisitor, GenericVisitor, HashCodeVisitor, CloneVisitor.

    ๐Ÿ“œ If you want to generate your own visitors, you can use the VisitorGenerator class from javaparser-core-generators

    ๐Ÿ“œ If you want to reuse the code generation utilities, look at module javaparser-generator-utils - there is a very useful SourceRoot class in there that takes away a lot of file management troubles.

    • 538 735 TreeStructureVisitor has been added, which should be considered beta.
    • ๐Ÿ›  220 733 717 749 745 750 743 748 666 732 746 734 733 smaller improvements and fixes
  • v3.0.1 Changes

    • ๐Ÿ“œ 699 433 325 Javadoc can now be parsed
    • 703 696 added NodeWithOptionalScope
    • 702 FieldAccessExpr now implements NodeWithSimpleName, which means that "field" has been renamed to "name"
    • 707 706 improve range of array types and levels
    • ๐Ÿ›  709 smaller improvements and fixes
  • v3.0.0 Changes

    • ๐Ÿ›  695 697 689 680 693 691 682 690 677 679 688 684 683 smaller improvements and fixes
  • v3.0.0-RC.4 Changes

    • 668 669 TypeDeclarationStmt became LocalClassDeclarationStmt
    • ๐Ÿ“š 347 665 every node now has some documentation
    • ๐Ÿ”€ 660 670 673 four types of import declaration have been merged back into the old ImportDeclaration
    • ๐Ÿ–จ 659 The pretty printer can now take customized visitors
    • ๐Ÿ›  650 671 672 674 524 smaller improvements and fixes
  • v3.0.0-RC.3 Changes

    • ๐Ÿ›  639 622 632 657 656 652 653 647 648 645 194 643 630 624 628 627 626 625 623 cleanups, small fixes, and general housekeeping
  • v3.0.0-RC.2 Changes

    • ๐Ÿšš 593 EmptyImportDeclaration and NonEmptyImportDeclaration have been removed
    • ๐Ÿšš 612 VariableDeclaratorId has been removed. It has been substituted by "SimpleName name"
    • 614 617 the list of tokens has been linearized and simplified
    • ๐Ÿ‘€ 615 support for arrays has once more been changed. See the issue
    • ๐Ÿ›  580 453 380 618 580 611 610 424 608 smaller improvements and fixes
  • v3.0.0-RC.1 Changes

    • 499 601 renames many fields to be more consistent
    • ๐Ÿ›  596 605 602 604 smaller improvements and fixes
  • v3.0.0-alpha.9 Changes

    • 403 358 549 Make all names nodes: either SimpleName or Name. This makes every name in the AST visitable. NameExpr is now a wrapper to use SimpleName in an expression.
    • 516 536 use Optional<> for return values.
    • ๐Ÿ›  556 557 558 550 small improvements and fixes.
    • 560 559 make nodes observable.
  • v3.0.0-alpha.8 Changes

    • ๐Ÿ–จ 344 529 turn DumpVisitor into an official PrettyPrinter
    • 532 508 427 530 531 513 528 cleanups
  • v3.0.0-alpha.7 Changes

    • 515 roll back attempt at using Optional
    • โช 522 504 make NodeList not a Node (restores parent/children behaviour to before alpha.4)
    • 527 526 rename getChildrenNodes to getChildNodes
    • 525 495 520 bug fix