Menu

Get ProgramModelInfo throw a MethodReference?

Developers
2008-07-21
2012-10-08
  • rodrigo lanza herrero

    First of all, congratulations for the great work. I've started to work with Recoder, implementing my own SourceVisitor. From VisitMethodReference method in SourceVisitor is there any form to get the ProgramModelInfo? I don't understand why, for example, I can get it from a ClassDeclaration and not from a MethodReference.

    Thanks in advance

     
    • Tobias Gutzmann

      Tobias Gutzmann - 2008-07-23

      Hej,

      The corresponding ProgramModelInfos are set only for elements of type ProgramModelElement, i.e., types, methods etc.
      But you can always get the different services by calling

      JavaProgramFactory.getInstance().getServiceConfiguration().getSERVICENAME();

      where SERVICENAME is e.g. SourceInfo, ImplicitElementInfo, NameInfo etc.

      Best regards,

      Tobias

       
    • rodrigo lanza herrero

      It's very simple. I'm forget that way. Sorry, thanks for your response.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.