public abstract class AbstractConsoleArgument extends AbstractHandlerPlugin<LinkedList<String>> implements ConsoleArgument
ConsoleArgument implementations.| Constructor and Description |
|---|
AbstractConsoleArgument() |
AbstractConsoleArgument(int requiredArgs,
String... aliases) |
AbstractConsoleArgument(String... aliases) |
| Modifier and Type | Method and Description |
|---|---|
Class<LinkedList<String>> |
getType()
Gets the type associated with the object.
|
protected boolean |
isAlias(LinkedList<String> args) |
boolean |
supports(LinkedList<String> args)
Gets whether this object is compatible with the given data object.
|
compareTo, getInfo, getPriority, setInfo, setPriority, toStringcontext, getContext, setContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithandlecontext, getContext, setContextgetPriority, setPrioritycompareTogetInfo, setInfopublic AbstractConsoleArgument()
public AbstractConsoleArgument(String... aliases)
public AbstractConsoleArgument(int requiredArgs,
String... aliases)
public boolean supports(LinkedList<String> args)
Typed
By default, this method will return true always, since the type is
known to be compatible. But individual implementations may have other
requirements beyond class assignability.
supports in interface Typed<LinkedList<String>>supports in class AbstractTypedPlugin<LinkedList<String>>public Class<LinkedList<String>> getType()
TypedgetType in interface Typed<LinkedList<String>>protected boolean isAlias(LinkedList<String> args)
ConsoleArgument, or
at least one alias matches the first argument in the provided
listCopyright © 2009–2016 SciJava. All rights reserved.