Class ParsingContext
java.lang.Object
org.keycloak.client.registration.cli.common.ParsingContext
An iterator wrapping command line
- Author:
- Marko Strukelj
-
Constructor Summary
ConstructorsConstructorDescriptionParsingContext(String[] args) ParsingContext(String[] args, int offset) ParsingContext(String[] args, int offset, int pos) -
Method Summary
-
Constructor Details
-
ParsingContext
-
ParsingContext
-
ParsingContext
-
-
Method Details
-
hasNext
public boolean hasNext() -
hasNext
public boolean hasNext(int count) -
hasPrevious
public boolean hasPrevious() -
next
Get next argument- Returns:
- Next argument or null if beyond the end of arguments
-
nextRequired
Check that a next argument is available- Returns:
- Next argument or RuntimeException if next argument is not available
-
next
Get next n-th argument- Returns:
- Next n-th argument or null if beyond the end of arguments
-
previous
Get previous argument- Returns:
- Previous argument or null if previous call was at the beginning of the arguments (pos == 0)
-
current
Get current argument- Returns:
- Current argument or null if current parsing position is beyond end, or before start
-
getArgs
-