Giter Site home page Giter Site logo

systemmethodsremover's Introduction

SystemMethodsRemover

Removes system ($) methods from the codebase. InterSystems Caché utility.

What it does?

  1. Replaces .$ with .<something of your choice> (.% by default)
  2. Capitalizes the letter after $
  3. Replaces references from %Object to %DynamicObject etc

Use

Import classes and call one of the entry points:

s st = ##class(SMR.Main).RemoveFromAllClasses(Replace, Capitalize) - for all user classes

s st = ##class(SMR.Main).RemoveFromSubclassesOf(Class, Replace, Capitalize) - for subclasses

s st = ##class(SMR.Main).RemoveFromMatchingClasses(Mask, Replace, Capitalize) - for LIKE SQL

Arguments:

  • Replace - what to replace $ with (% by default but, for example, you can specify $$$)
  • Capitalize - capitalize the letter after $ (boolean, yse by default)
  • Class - class which subclasses the utility would try to convert (including the class)
  • Mask - passed into the SQL query SELECT ID FROM %Dictionary.ClassDefinition Where ID LIKE ?

More docs are in the code docs. The utility works only in a current namespace.

Requirements

Works in 2016.2 Field Test or later.

systemmethodsremover's People

Contributors

eduard93 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.