CtUnaryOperator extends CtStatement


I can't understand why.

In the expression if (a++ > 0) {...} a++ can't be a Statement but since a++ is a CtUnaryOperator then it's also a CtStatement.

How can I differentiate between a++; and i = a++; since in both cases a++ will be a CtStatement?


to differentiate between both, one looks at the parent. One class encapsulates this logic:

// does element act as a statement? boolean hasStatementRole = new LineFilter().matches(element)


Since the issues in this questions comes from design decisions in the Spoon tool, it can't be answered properly.


  • Best practices accessing a logged in User object from other classes [closed]
  • trying to get equal height columns but div after the columns does not work
  • Access all entries of HttpParams
  • doGet or doPost method invocation [duplicate]
  • beforeunload event during window close Vs meteor-auto-reload
  • XNA Number lock affects input
  • Colorize knockoutjs comment bindings in code editor
  • Not able to display correct data in table -AngularJS
  • How do I bind multiple properties in an Android layout element
  • Tools for understanding HTML layout
  • crash in __tcf_0
  • Create a link to a web page that runs a Javascript function on the page
  • For loop with if condition on multiple R functions
  • NUnit 3.0 TestCase const custom object arguments
  • Plotting line graph with factors in R
  • PLSQL: Get number of records updated vs inserted when a merge statement is used
  • RxJava debounce by arbitrary value
  • Force show.bind execution
  • C: Incompatible pointer type initializing
  • why xml file does not aligned properly after append the string in beginning and end of the file usin
  • onBackPressed() not being executed
  • Content-Length header not returned from Pylons response
  • Can you perform a UNION without a subquery in SQLAlchemy?
  • Disable Enter in editText android
  • FFmpeg Conversion Error
  • ActionScript 2 vs ActionScript 3 performance
  • Weird JavaScript statement, what does it mean?
  • PHP: When would you need the self:: keyword?
  • Why joiner is not used after Sequence generator or Update statergy
  • Java static initializers and reflection
  • Linking SubReports Without LinkChild/LinkMaster
  • unknown Exception android
  • Easiest way to encapsulate a HTML5 webpage into an android app?
  • Django query for large number of relationships
  • costura.fody for a dll that references another dll
  • Observable and ngFor in Angular 2
  • How to Embed XSL into XML
  • UserPrincipal.Current returns apppool on IIS
  • Unable to use reactive element in my shiny app
  • Conditional In-Line CSS for IE and Others?