Is there a way to decorelate annotations from the source code?

sorry : the title of the question may sound bizarre but , not being a native speaker, I do not know how to precisely state my problem.
I'll try:
an example: suppose you want to annotate your code with annotation such as @MightBeNull (a fictitious annotation) to mark a field as being potentially null.
this annotation is going to be used by annotation processor X and is specified by (fictitious) library org.something.staticcheck ...
Now if a new (and better) tool appears for the same purpose you'll have to change your code. At compile time your code is dependent on a precise library (and a set of precise tools for annotation processing).
I my dreams I would like a way to write my own annotations and configure an adapter that redirects to the precise library that I choose at given moment.
For sure that cannot be so easy since adaptations could not fit easily (but let's forget it for the moment).
This seems impossible ... or it is?
( a better way could be to annotate not the source code itself but a separate description of its features that could be annotated independently)

Sorry bruce I am a bit slow: I don't understand your suggestion.
if I have a code like that:
import org.staticcheck.annotations.MightBeNull ;
public class Thing {
       @MighBeNull private Something relation;
}my code is dependent on library "org.staticcheck.annotations".
then afterwards if I change for another tool that uses annotation
    com.newprovider.annotations.CouldBeNullI am obliged to modify my source code!
I daresay I am tempted by hacks such as :
import com.mybusiness.annotations.MetaAnnotation ;
public class Thing {
       @MetaAnnotation("null_possible") private Something relation;
}and then perform some precompile wizardry (thru a preprocessor ;-( or tricky annotation processor
that transforms the source code). But it could turn out ugly/clumsy ....
that means that there will be a resource for describing a "translation" from the MetaAnnotation to the
real thing needed at a precise moment.
So my question is: has someone found a way to do that elegantly? (btw I can think of many more reasons for this decorrelation between
the source code and its annotations).

Similar Messages

  • Is there another way of getting apps from the appstore without putting your credit card number in, ive heard about the itunes gift card thing can anybody just give me more info about that and how i can buy free things free things from the appstorepls help

    Is there another way of getting apps from the appstore without putting your credit card number in, ive heard about the itunes gift card thing can anybody just give me more info about that and how i can buy free things free things from the appstore...pls help as im only a teenager and have no credit credit and my parents dont trust me with theres and they dont care about the fact that you can set up a password/.... PLEASE SOMEONE HELP I WILL BE SO GRATEFUL... And i would really like to get the iphone 4 but if there is no way of etting apps without your credit number then i would have to get a samsung galaxy s3 maybe ...

    You can set up an Apple ID without a credit card.
    Create iTunes Store account without credit card - Support - Apple - http://support.apple.com/kb/ht2534

  • Is there a way to hide apps from the app store? I don't want my kids to see those "free" apps that nag you to spend real money and download their other apps! I can hide them from "purchased apps", but they still show up when browsing for new apps!

    Is there a way to hide apps from the app store?
    I don't want my kids to see those "free" apps that nag you to spend real money and download their other apps!
    I can hide them from "purchased apps", but  they still show up when browsing for new apps!
    Is there a way to hide them so that my kids will never see them when looking for new apps?

    Not other than parental oversight. On the computer you can implement Parental Controls on a separate user account that they would use. You can then block certain websites. But you cannot do that on the iPad.
    You could change your iTunes account such that they cannot access it in order to buy or download apps.

  • Is there any way to access files from the Classic environment to my iMac running on Leopard (10.5.8)?

    Is there any way to access files from the Classic environment to my iMac running on Leopard (10.5.8)?

    Sorry, no.

  • My iphone 4 is dead with water damage. Is there a way to recover data from the dead phone.

    My iphone 4 is dead with water damage. Is there a way to recover data from the dead phone. Could any one help where exectly the memory chip (not RAM) resides in the phone. Is it on the motherboard or a seperate component in the phone?

    The iPhone's internal components are soldered together. There is no way to recover data from your phone if it refuses to power up.
    ~Lyssa

  • Is there a way to delete names from the address book?

    Is there a way to delete names from the address book?

    I found it thank you. Need to highlight name then press delete button

  • Is there any way in FDQM to validate the source records against the essbase

    hi everyone
    i want to know is there any way that FDQM can validate the source records against essbase. say for example i have a a ud dimension member coming from the source i want to compare this member with essbase member in the outline and pass/fail the validation. can we do this?
    thanks
    tm

    Hi
    Are you processing through the web client or as a batch process?
    If you are loading manually through the web then it is standard functionality to highlight any source metadata imported that does not get mapped to a target, you then get the opportunity to correct those members at the Validate stage. If you are setting up mapping tables with specific target members then these have to be valid members in the Essbase outline (although I guess there is a risk that those members change over time and do you mappings stay in sync), it also doesn't do that validation if you upload your maps from template files (.xls / .tra / .trn) or if you have a * to * like mapping.
    If you are processing in batch then if there are any members that do not have a vliad target member after import (remember mapping is applied during the import stage) then the batch fails. You can use the AutoMapCorrect feature to overcome this and map to a default 'suspense' type member if that gives you an issue.
    Ultimately if you get to the load stage and the combination of members is not valid then FDM produces a load error file, this will contain all of the records exported from FDM that have failed to load to Essbase. What this doesn't easily give you is the source metadata that makes up those failed records.
    Can you provide any more info as to your current process and then we might be able to provide a few more pointers.
    Hope this helps
    Stuart

  • How to set database location in the crystal report X1 from the Source code.

    Dear All,
    I am using Crystal report X1 for report generation.Now I am setting the database location manually in the crystal report. How can I Set the database location from the Source code.
    Awaiting for your reply.
    Thanks in advance.
    Regards,
    Rahaneef T

    Here's a routine that also searches for subreports to set the log on info. Simply remove that aprt to set the main report logon info:
    IDatabaseTablePtr pTable;
    //get first table
    pTable = m_Report->Database->Tables->GetItem(1) ;
    long lTableCount = m_Report->Database->Tables->Count;
    for( long lTable=1; lTable<=lTableCount; lTable++ )
         pTable = m_Report->Database->Tables->GetItem(lTable);
         pTable->ConnectionProperties->DeleteAll();
         pTable->ConnectionProperties->Add("DSN", "Name of your DSN");
         pTable->ConnectionProperties->Add("Database", "Demo");
         pTable->ConnectionProperties->Add("Password", "sa");
         pTable->ConnectionProperties->Add("User ID", "1Oem2000");
    // Log on the tables of the subreports.
    long lSectionCount = m_Report->Sections->Count;
    for( long lSection=1; lSection<=lSectionCount; lSection++ )
         ISectionPtr pSection = m_Report->Sections->Item[lSection];
         long lSubreportCount = pSection->ReportObjects->Count;
         for( long lSubreport=1; lSubreport<=lSubreportCount; lSubreport++ )
              IReportObjectPtr pSubreportObject = pSection->ReportObjects->Item[lSubreport];
              CRObjectKind crObjectKind;
              pSubreportObject->get_Kind(&crObjectKind);
              if( crObjectKind == crSubreportObject )
                   ISubreportObjectPtr SubReportPtr = pSubreportObject;
                   IReportPtr pSubReport = SubReportPtr->OpenSubreport();
                   long lTableCount = pSubReport->Database->Tables->Count;
                   for( long lTable=1; lTable<=lTableCount; lTable++ )
                        pTable = m_Report->Database->Tables->GetItem(lTable);
                        pTable->ConnectionProperties->DeleteAll();
                        //pTable->ConnectionProperties->Add("DSN", "dwcb12003");
                        pTable->ConnectionProperties->Add("Database", "CrystalEport_DB");
                        pTable->ConnectionProperties->Add("Password", "sa");
                        pTable->ConnectionProperties->Add("User ID", "1Oem2000");
    If that doesn't work you need to tell us what is the error you are getting and paste in the code you are using.

  • How to find the Web Dnpro component from the Source code ?

    Hi Gurus,
    Please help me to find out the WD Component Name from the Source Code?
    Regards
    Anil

    Hi Thomos,
    When i right clik on the screen i see the following line by line.
    -Back
    -forward
    -save background as
    -set as background
    -copy background
    -set as desktop item
    -select all
    -Paste
    -create shotcut
    -add to favorites
    -view source
    -encoding
    -print
    -refresh
    -export to microsoft excel
    -properties
    I have mentioned every thing i see when ever i right click on the screen.
    --Anil

  • I've connected my ipad to my TV via hdmi but cannot get sound. Is there a way to get sound from the TV?

    I'd like to get sound from the tv for my keynote presentations. Is there a way to do this via the hdmi connection? Or do I need to connect an 'audio-out? Thanks in advance for your help

    the hdmi should transfer both sound and picture
    http://store.apple.com/us/product/HFQL2VC/A/moshi-mini-displayport-to-hdmi-adapt er-4k?fnode=a8e08a2bb3c16bf3cd606aecff68b12c10fe327cd7b063c9bbc492e57158bbfa0778 d5b941eb2a8c1c5f2e25e51cf7b82e193c9a722651b3fc2694996f7b5281b8bf4338c46284247b76 ccce6907fa6caee062d974158ee4d0336fca558384426e7a6c6cbf3ee58c8f53f8db53c9ef91
    Supports multi-channel digital audio output on compatible devices
    make sure your ipad is not muted
    make sure you volume is not all the way down
    make sure audio play out of the ipad when not connected to the hdmi adapter
    if you did and it don't work then it's likely an issue with the connetor
    or the tv or it's settings

  • Is there any  way to incorporate elements from the 2006 namespace in an application that uses the 2

    I have a desktop app built in AIR using the 2009 namespace.  Is there any way to incorporate any of the of the xmlns:mx="http://www.adobe.com/2006/mxml" components into it? 
    Or better yet, since the AIR namespace is sort of layered on top of the spark namespace, is it possible to do the same with the 2006 namespace?

    xmlns:mx="library://ns.adobe.com/flex/mx"  is the spark mx address, which is completely different than the original 2006 mx library. 
    The thing is:  I love AIR, hate spark, loved the 2006 pre-spark functionality.  It is so much more convenient and user friendly.  Given the choice between having the display seperate from the  processing, or having it be convenient and easy  to work with, I choose the later option.
    For the most part it seems like the AIR api is like a layer on top of the spark - flex system..   I would like to be able to over lay the same AIR functionality on top of the the old system....
    Possible or no?

  • Is there a way to set links from the book title / cover page?

    Mavens!
    I am attempting to design an interactive decision tool with iBooks Author and would like to set some hyperlinks from the actual book cover to avoid the linear book experience.
    Is there a way to do this?
    The widget inspector greys out when you select "Book Title"  in the side bar.
    Ciao
    Russ

    I found it thank you. Need to highlight name then press delete button

  • Is there a way to hide users from the FileVault 2 ''main boot'' login screen?

    After your entire disk is encrypted with FileVault 2, there is a now a ''main'' boot login screen with users displayed--after a full shutdown/restart--as opposed to a ''normal'' login screen when logging users in and out after booting into FileVault 2.
    If that made any sense...there was a way to hide users from the ''normal'' login screen before by running this Terminal command:
    sudo defaults write /Library/Preferences/com.apple.loginwindow \ HiddenUsersList -array-add xxxx
    (xxxx being a short user's name)
    How do I do this now for the login screen that comes up on a full/shutdown restart?

    Not really, but you can move them from the home screen to, say, the 4th, or 10th screens. But you do need to have at least one app in every screen on the phone. My idea was to have several blanks before the screen with her apps, but the phone doesn't allow this.
    Sounds like time for the Iron Fist. ::grin:: Putting your foot down. Funny how those two descriptions don't quite match up. Our 5 year old son loves to use the iPhone, and with consistent training we have minimal trouble when he doesn't want to quit.
    Have a great trip. Joel.

  • Is there a way to browse "Artist" from the now playing screen?

    On my old click-wheel nano - 5th Gen - i believe, when a song is playing, I could hold down the center button and be presented with a number of options.  "Start Genius, Browse Album, etc."  My favorite was "Browse Artist."  Is there a way to do that on the new Nano (7th Gen.)  I know I can hit the little list button to browse an Album, but is there a way to browse the artist without back-tracking to the main menu?  Thanks!

    Not on the 6G Nano.
    B-rock

  • Extracting operators and operands from the source code

    Hi there,
    I am looking for a way to extract operators and operands from a source code to do a complexity analysis of the code. The final outcome I am expecting is to get the number of operators and operands in the code, to perform a Halstead Complexity Analysis.
    Please let me know how this parsing can be done apart from just doing a sequential search of the content in the file.
    Any samples and references are highly appreciated.
    Thanks in advance!
    Regards,
    Aravinda777

    Common way to analyze code is to defining the things you are interested in using some approproate language and then using a parser generator (or compiler compiler = cc). I used antlr some time ago for this reason. Perhaps you want to take a look at it:
    http://www.antlr.org/

Maybe you are looking for

  • How to use Property nodes?

    Hi everyone,                        I am a beginner of LabVIEW. So I want to know about Property Node in detail. Please Please someone help me know the function of each property node...... Thank You in Advance, Solved! Go to Solution.

  • How do I load an .atf file into a ByteArray for upload to the GPU?

    I'm trying to optimise the amount of GPU memory my textures use for a Stage3D project so I thought I'd finally switch to ATF textures. I've converted them from png to atf using the png2atf tool and I'm loading them with a URLLoader but I'm having tro

  • How to change the description of a selection screen

    Hi , I created a selection screen with the description as 'Test' , now the program has grown real big . I want to change the desccription to something else as it shows at the top of the selection screen. Can this be done with out copying the program

  • How can I open one window in Safari with a tab?

    When I open Safari, the window opens up but not in a tab. I prefer the single window being in a tab.

  • A limitation to columns in Numbers

    I have a simple 2 column table with dates in one, and dollar values in another.  I made a simple bar graph of this as well.  X axis is time (dates) y axis is value ($ amounts)  When I try to see the graph, no matter how I size it, I am only able to g