spoon-core-5.0.0

@GerardPaligot GerardPaligot released this Jan 25, 2016 · 514 commits to master since this release

API major changes

  • Better model for field accesses (now with implicitness information), *.class expressions, and method calls (better handling of static) #475, #473, #458, #458
  • Puts CtReference below CtElement (allows you to process, replace references and get signatures). #391
  • Deprecates CtTypeAnnotation to use CtAnnotation in refs. #391

API minor changes

  • Never throw an UnsupportedOpException in getters. #438
  • Delegates type information handling of CtInvocation, CtNewClass and CtConstructorCall to their executable. #433
  • Puts CtAnonymousExecutable under CtExecutable. #430
  • Minor changes in Snippet helper. #443

Features

  • Allow interruption of a processor. #485
  • Search a package in imports. #466
  • Apply filter on pretty-printed classes. #456
  • New filters to get all overridden/overriding methods. #452
  • Support filtering on parents (getParent(Filter) method in CtElement). #439
  • Delete any element in a Spoon AST. #423

Fixes

  • No classpath
    • Arguments of an inv should be a CtFieldRead. #502
    • Checks if this access parent is final. #497
    • Gets package of types in the class declaration. #477
    • With an unkown argument, prints . #459
    • Supports superclass declared in an interface. #435
    • Supports superclass of a nested class. #434
    • Supports CtLiteral of char. #429
    • Supports CtParameter. #428
    • Supports CtFieldAccess. #424, #417
    • Supports CtConstructorCall. #416
    • Anonymous class in noclasspathmode throws NPE. #415
  • Fixes fully qualified name of type ref with generics. #500
  • Fixes getDeclaration which throws a NPE in anonymous class. #496
  • Prints (i++).toString() and no more i++.toString(). #493
  • Fixed the FieldWrite bug in OperatorAssignment. #487
  • Allows serialization of SourcePosition. #486
  • Fixes the position in the spoon model. #421, #441
  • Fixes bug related to insertBefore, insertAfter, insertEnd and getSignature. #450

Downloads