Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
assmus-menu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Manfred Michaelis
assmus-menu
Commits
9f715b64
Commit
9f715b64
authored
2 years ago
by
Manfred Michaelis
Browse files
Options
Downloads
Patches
Plain Diff
Updated
parent
03b1cfd2
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+18
-3
18 additions, 3 deletions
README.md
with
18 additions
and
3 deletions
README.md
+
18
−
3
View file @
9f715b64
...
@@ -21,9 +21,10 @@ class App extends AssmusMenu {
...
@@ -21,9 +21,10 @@ class App extends AssmusMenu {
}
}
@MenuOption
(
name
=
"Quit"
,
pattern
=
"q"
)
@MenuOption
(
name
=
"Quit"
,
pattern
=
"q"
)
public
void
help
(
Object
[]
args
)
{
public
boolean
quit
()
{
// Sets the run variable of the main loop to false.
// If a boolean is returned, the run variable
args
[
0
]
=
false
;
// of the main loop will be set to its value.
return
false
;
}
}
}
}
```
```
...
@@ -49,6 +50,20 @@ class Main {
...
@@ -49,6 +50,20 @@ class Main {
>
>
```
```
## Method parameters
Following parameter will be passed to the called method if
it declares a parameter of the particular type.
| Type | Passed Object |
|----------------|---------------------------------|
| boolean | run variable of main loop |
| BufferedReader | An instance of a BufferedReader |
## Return types
The annotated method must have a return type of
`void`
or
`boolean`
.
If the type is
`boolean`
, the run variable of the main loop will be
set to the return value of the method.
---
---
## `( •_•)>⌐■-■`
## `( •_•)>⌐■-■`
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment