12.07.2015 Views

Code Generation with Cache'' Object Script - InterSystems Benelux

Code Generation with Cache'' Object Script - InterSystems Benelux

Code Generation with Cache'' Object Script - InterSystems Benelux

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

How Method Generators Work• If present, the compiler will arrange the order in which it invokes themethod generators by looking at the value of the GenerateAfterkeyword for each of the methods.– This keyword gives you some control in cases where there may be compilertiming dependencies among methods.• Copies the results of each method generator (lines of code plus anychanges to other method keywords) into the compiled class structureure(used to generate the actual code for the class).• the original method signature (arguments and return type), as well asany method keyword values, are used for the generated method.– If you specify a method generator as having a return type of %Integer, , thenthe actual method will have a return type of %Integer.• Generates the executable code for the class by combining the codegenerated by the method generators along <strong>with</strong> the code from all thenon-method generator methods.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!