Changes between Version 5 and Version 6 of ScriptableInterface
- Timestamp:
- Apr 19, 2012, 10:22:50 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ScriptableInterface
v5 v6 39 39 40 40 41 '''eliminate/1''' 41 * '''eliminate/1''': Eliminates the given variable(s). ([[RefactoringSteps/EliminateVariable|eliminate variable]]). \\ 42 42 43 Eliminates the given variable(s). ([[RefactoringSteps/EliminateVariable|eliminate variable]]). 43 * '''extfun/2, extract/2''': This is the [[RefactoringSteps/ExtractFunction|extract function]] transformation. \\ 44 44 45 * '''inline/1''': Inlines the given function(s), or macro(s). ([[RefactoringSteps/InlineFunction|inline function]], [[RefactoringSteps/InlineMacro|inline macro]]). \\ 45 46 46 '''extfun/2, extract/2''' 47 * '''move/2''': Moves the given [[RefactoringSteps/MoveFunction|function]], [[RefactoringSteps/MoveMacro|macro]], or [[RefactoringSteps/MoveRecord|record]] into another module. 47 48 48 This is the [[RefactoringSteps/ExtractFunction|extract function]] transformation.49 50 51 '''inline/1'''52 53 Inlines the given function(s), or macro(s). ([[RefactoringSteps/InlineFunction|inline function]], [[RefactoringSteps/InlineMacro|inline macro]]).54 55 56 '''move/2'''57 58 Moves the given [[RefactoringSteps/MoveFunction|function]], [[RefactoringSteps/MoveMacro|macro]], or [[RefactoringSteps/MoveRecord|record]] to another module.59 60 Example:61 49 {{{ 62 50 #!erlang … … 67 55 "other_mod"), 68 56 "mymod"). 69 }}} 57 }}} 70 58 71 59 72 '''rename/2''' 60 * '''rename/2''': Renames [[RefactoringSteps/RenameVariable|variable]], [[RefactoringSteps/RenameFunction|function]], [[RefactoringSteps/RenameRecord|record]], [[RefactoringSteps/RenameRecordField|record field]], [[RefactoringSteps/RenameMacro|macro]], [[RefactoringSteps/RenameHeader|header file]] or [[RefactoringSteps/RenameModule|module file]]. 73 61 74 Renames [[RefactoringSteps/RenameVariable|variable]], [[RefactoringSteps/RenameFunction|function]], [[RefactoringSteps/RenameRecord|record]], [[RefactoringSteps/RenameRecordField|record field]], [[RefactoringSteps/RenameMacro|macro]], [[RefactoringSteps/RenameHeader|header file]] or [[RefactoringSteps/RenameModule|module file]].75 76 Example:77 62 {{{ 78 63 #!erlang 79 64 ris:rename("mods[name=='mymod'].fun[name=='Colour']", "Color"). 80 65 }}} 81 82 83 84 85 66 86 67 {{{#!comment … … 140 121 * '''intersect''': The following example takes the intersection of the files included by the two modules. 141 122 142 Example:143 123 {{{ 144 124 ris:q({"mods[name==mod1].includes", intersect, … … 147 127 148 128 * '''union''': The union set operation. (Example: same as above, just substitute 'intersect' with 'union') \\ 129 149 130 * '''minus''': The substraction set operation. (Example: same as above, just substitute 'intersect' with 'minus') \\ 131 150 132 * '''Sequence''': Queries can be sequenced to continue a query from where another has left off. This example first adds the module from file 'mymodule.erl'. The add call returns the entities loaded. A semantic query aggregate of a list works by executing the first query (or in this case, specifying a starting entity), and then running the next query in the chain (in this case getting the name of files included by the add call). 151 133 152 Example:153 134 {{{ 154 135 #!erlang