Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Can I create an Expression object and set it according to my own idea ?(Get the if statement expression and change something ,then store it as an Expression object)
Can I create an Expression object and set it according to my own idea ? [message #1779400] Sat, 06 January 2018 11:55
John snow is currently offline John snowFriend
Messages: 1
Registered: January 2018
Junior Member
Hello,everyone
I am new to JDT and now I am doing something interesting.So far ,I want to extract the if statement expression in java source code,and change the simpleName or operator of the expression ,then store it as an Expression object.But the problem is that I do not want to change the AST,so I can not use the rewrite method to get those expression information.
e.g,
-------------------------source code------------------
if(a>b&&a!=0)
dosomething()
-------------------------soure code end--------------
I extract the expression "a>b&&a!=0",if I want to set "a"to"A",then store it as an Expression which likes"A>b&&A!=0",how can I do this?
Is there any way to help me out?
Previous Topic:Nonetype object is not iterable
Next Topic:PILLOW IN ECLIPSE-PYDEV
Goto Forum:
  


Current Time: Fri Apr 26 10:24:36 GMT 2024

Powered by FUDForum. Page generated in 0.07800 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top