How to access float style in Literal: 0.7f (float style) in PMD via xpath -


enter image description here

this pmd screen shot part of code. trying write xpath query in order determine literal in above screenshot float style. there way can access "float style"; currently, have //equalityexpression/primaryexpression/primanyprefix/literal , now, not know how access float style. me this? thank much!

the following xpath expression should trick:

//equalityexpression/primaryexpression/primaryprefix/literal[@floatliteral='true'] 

you can access additional attributes of literal. designer show them in lower left area:

designer screenshot

there other attributes such "doubleliteral", "intliteral", "longliteral", , on.


Comments