new SearchAPI(data)
The SearchAPI. Allow the user to perform search into the object database.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | The database of objects |
Methods
beginPrepare()
Set the flag "preparing" which means the research should not be executed. Create a new PreparedRequest instance.
endPrepare()
exec(preparedRequest)
To execute a prepared request. Almost time it is when an inspector is running.
Parameters:
Name | Type | Description |
---|---|---|
preparedRequest |
* |
getter(pattern)
Parameters:
Name | Type | Description |
---|---|---|
pattern |
String | Field signature |
gettersOf(pattern)
Parameters:
Name | Type | Description |
---|---|---|
pattern |
String | Field signature |
invoke(pattern)
To seach only method call
Parameters:
Name | Type | Description |
---|---|---|
pattern |
* |
nocase()
Switch case sensitive On/Off of following search
setter(pattern)
Parameters:
Name | Type | Description |
---|---|---|
pattern |
String | Search pattern |
settersOf(pattern)
Parameters:
Name | Type | Description |
---|---|---|
pattern |
String | Field signature |