public abstract class AbstractConsoleArgument extends AbstractHandlerPlugin<LinkedList<String>> implements ConsoleArgument
ConsoleArgument implementations.| Constructor and Description |
|---|
AbstractConsoleArgument() |
AbstractConsoleArgument(int requiredArgs,
String... flags) |
AbstractConsoleArgument(String... flags) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getParam(LinkedList<String> args)
If the next argument is an appropriate parameter to a
ConsoleArgument, retrieves it; otherwise, returns null. |
protected boolean |
isFlag(LinkedList<String> args)
Check if the given list of arguments starts with a flag that matches this
ConsoleArgument. |
boolean |
supports(LinkedList<String> args)
Gets whether this object is compatible with the given data object.
|
getInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetType, handlegetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersionpublic AbstractConsoleArgument()
public AbstractConsoleArgument(String... flags)
public AbstractConsoleArgument(int requiredArgs,
String... flags)
public boolean supports(LinkedList<String> args)
Typed
By default, this method will return true iff the data is assignable
to the associated type given by Typed.getType(). But individual
implementations may have other requirements beyond class assignability.
supports in interface Typed<LinkedList<String>>supports in class AbstractTypedPlugin<LinkedList<String>>protected boolean isFlag(LinkedList<String> args)
ConsoleArgument.protected String getParam(LinkedList<String> args)
ConsoleArgument, retrieves it; otherwise, returns null.'-' character; or null otherwise.Copyright © 2015–2022 SciJava. All rights reserved.