public class PluginExecutionResultImpl extends java.lang.Object implements PluginExecutionResult
Constructor and Description |
---|
PluginExecutionResultImpl(java.lang.Class<?>[] returnTypes,
java.lang.String[] returnNames,
PluginDescriptor plugin) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getParameters() |
PluginDescriptor |
getPlugin()
Returns the plugin used to generate this result
|
ProvidedObjectID |
getProvidedObjectID(int i)
Returns the ProvidedObjectID under which the object at index i is known
to the framework's ProvidedObject manager
|
<T> T |
getResult(int resultIndex)
returns the result at the given index, casted to the given returntype.
|
java.lang.String |
getResultName(int resultIndex)
this method returns the name of the result at the given index.
|
java.lang.String[] |
getResultNames()
This method returns the names of the results
|
java.lang.Object[] |
getResults()
returns the results of this plugin in an array.
|
int |
getSize()
Returns the size of this result, i.e.
|
<T> java.lang.Class<? super T> |
getType(int i)
Returns the type of the object at index i, as declared by the plugin
|
void |
setInput(java.lang.Object[] parameters) |
void |
setProvidedObjectID(int i,
ProvidedObjectID id)
Tells this result under which provided object ID the object at index i is
known to the framework
|
void |
synchronize()
Synchronizes on any futures that might still exist in the result.
|
public PluginExecutionResultImpl(java.lang.Class<?>[] returnTypes, java.lang.String[] returnNames, PluginDescriptor plugin)
public int getSize()
PluginExecutionResult
getSize
in interface PluginExecutionResult
public <T> T getResult(int resultIndex) throws java.lang.ClassCastException
PluginExecutionResult
getResult
in interface PluginExecutionResult
java.lang.ClassCastException
public java.lang.String getResultName(int resultIndex)
PluginExecutionResult
getResultName
in interface PluginExecutionResult
public java.lang.String[] getResultNames()
PluginExecutionResult
getResultNames
in interface PluginExecutionResult
public java.lang.Object[] getResults()
PluginExecutionResult
getResults
in interface PluginExecutionResult
public void synchronize() throws java.util.concurrent.CancellationException, java.util.concurrent.ExecutionException, java.lang.InterruptedException
PluginExecutionResult
synchronize
in interface PluginExecutionResult
java.util.concurrent.CancellationException
java.util.concurrent.ExecutionException
java.lang.InterruptedException
public void setProvidedObjectID(int i, ProvidedObjectID id)
PluginExecutionResult
setProvidedObjectID
in interface PluginExecutionResult
i
- index of the objectid
- the id of the provided object refering to the objet at index ipublic ProvidedObjectID getProvidedObjectID(int i)
PluginExecutionResult
getProvidedObjectID
in interface PluginExecutionResult
i
- index of the objectpublic void setInput(java.lang.Object[] parameters)
public java.lang.Object[] getParameters()
public <T> java.lang.Class<? super T> getType(int i)
PluginExecutionResult
getType
in interface PluginExecutionResult
public PluginDescriptor getPlugin()
PluginExecutionResult
getPlugin
in interface PluginExecutionResult