eclipse - How to know if a PostfixExpression belongs to a for statement? -


I am using Exclier parser to work with expressions and statements in Java code.

Public Boolean Visit (Postfix Experiment Node)

/ Code>;

The problem I want to differentiate between a statement for postfix, and other postfixes. I thought I might go to node and I can check it in any way that it is for Node.getParent () ... but expression does not return anything like .getParent () .

How to identify any idea that PostfixExpression is related to a loop ?

Thanks

Edit:

" Postfix for the password" means i loop The first line of code> is the postfix. For example:

 For  (i = 0; i <10; i ++)   

I therefore use this i ++ I want to separate from other i ++ .

Can not just call ASTNode.getParent () view it For what kind of expression is in expression?

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -