A 'CommandCell' represents an executable cell. NCube ships with support for Groovy CommandCells that allow the NCube author to write cells that contain Groovy expressions, Groovy methods, or Groovy classes. Javascript executable cells, as well as Java executable cells can be added to NCube. The CommandCell expects to call the method "def run()" on whatever object is assigned to the runnableCode member. Subclasses must implement 'getCubeNamesFromCommandText()' which returns any NCube names the subclass may reference. For example, if NCubes are referenced in the Groovy code, the Groovy CommandCell subclasses would return any NCube names they reference. This is required so that when an NCube is loaded, it can find referenced NCubes and load those as well.
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.Object |
execute(java.util.Map<java.lang.String, java.lang.Object> ctx) |
|
java.lang.String |
getCmd() |
|
void |
getCubeNamesFromCommandText(java.util.Set<java.lang.String> cubeNames) |
|
void |
getScopeKeys(java.util.Set<java.lang.String> scopeKeys) |
|
java.lang.String |
getUrl() |
|
boolean |
isCacheable() |
Methods inherited from class | Name |
---|---|
interface java.lang.Comparable |
java.lang.Comparable#compareTo(java.lang.Object) |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |