public class ParsingContext extends Object
Constructor and Description |
---|
ParsingContext(String[] args) |
ParsingContext(String[] args,
int offset) |
ParsingContext(String[] args,
int offset,
int pos) |
Modifier and Type | Method and Description |
---|---|
String |
current()
Get current argument
|
String[] |
getArgs() |
boolean |
hasNext() |
boolean |
hasNext(int count) |
boolean |
hasPrevious() |
String |
next()
Get next argument
|
String |
next(int n)
Get next n-th argument
|
String |
nextRequired()
Check that a next argument is available
|
String |
previous()
Get previous argument
|
public ParsingContext(String[] args)
public ParsingContext(String[] args, int offset)
public ParsingContext(String[] args, int offset, int pos)
public boolean hasNext()
public boolean hasNext(int count)
public boolean hasPrevious()
public String next()
public String nextRequired()
public String next(int n)
public String previous()
public String current()
public String[] getArgs()
Copyright © 2021 JBoss by Red Hat. All rights reserved.