Constructor and Description |
---|
ObjectArgument(E value)
Instantiates an argument that wraps the specified value.
|
Modifier and Type | Method and Description |
---|---|
E |
getObject()
Returns the underlying value (the one provided to the constructor).
|
String |
getValueDescriptor()
Return the String representation of the underlying value.
|
Object |
resolveValue(LaunchContext context)
Returns the wrapped value as-is.
|
String |
toString()
Returns the value descriptor.
|
public ObjectArgument(E value)
value
- the value wrapped in this argument.public final E getObject()
public String getValueDescriptor()
getValueDescriptor
in interface Argument
public Object resolveValue(LaunchContext context) throws CoreException
resolveValue
in interface Argument
context
- the launch contextCoreException
- if resolving the value fails.public String toString()
toString
in class Object
getValueDescriptor()