The best way to do it would be to use the ConstantEvaluator.
Take a look at LogDetector and look for ConstantEvaluator.evaluateString
for an example.

-- Tor

On Fri, Nov 6, 2015 at 1:23 PM Jing Sun <[email protected]> wrote:

> Hi All,
>
>
> I got getApplicableConstructorTypes  and visitConstructor pair working to
> catch the the constructor usages.
>
> How can I check the String value passed in a constructor as an argument is
> a certain String constant?
>
> Is Detector.JavaScanner the right one to use or the ClassScanner?
>
>
> Thanks,
> Jing
>
> --
> You received this message because you are subscribed to the Google Groups
> "adt-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to