Grape.Class Class
A static class for storing keyword related functions. To see how to create a class, check the Class method in the Grape class.
Item Index
Methods
- registerKeyword static
- registerKeywordMatching static
Methods
registerKeyword
(
static
-
name
-
handlers
Registers a new keyword (like 'final' or 'static'). Todov2 callback params
Parameters:
-
name
String -
handlers
ObjectThe functions called during the class creation
-
[onInit]
Function optionalCalled when a new class is about to create
-
[onAdd]
Function optionalCalled when a method with the keyword is added to the class
-
[onFinish]
Function optionalCalled when the class is ready
-
registerKeywordMatching
(
static
-
k1
-
k2
Tells to the Grape class system that two keywords can be used together. If not explicitly told, a keyword cannot be used with other ones. The order of keywords is irrelevant.
Parameters:
-
k1
StringKeyword 1
-
k2
StringKeyword 2