org.globus.cog.karajan.workflow.nodes
Class JavaMethodInvocationNode

java.lang.Object
  extended by org.globus.cog.karajan.workflow.nodes.FlowNode
      extended by org.globus.cog.karajan.workflow.nodes.FlowContainer
          extended by org.globus.cog.karajan.workflow.nodes.Sequential
              extended by org.globus.cog.karajan.workflow.nodes.AbstractSequentialWithArguments
                  extended by org.globus.cog.karajan.workflow.nodes.SequentialWithArguments
                      extended by org.globus.cog.karajan.workflow.nodes.functions.AbstractFunction
                          extended by org.globus.cog.karajan.workflow.nodes.JavaMethodInvocationNode
All Implemented Interfaces:
LoadListener, EventListener, ExtendedFlowElement, FlowElement

public class JavaMethodInvocationNode
extends AbstractFunction


Nested Class Summary
 
Nested classes/interfaces inherited from class org.globus.cog.karajan.workflow.nodes.FlowNode
FlowNode.FNTP
 
Field Summary
static Arg A_CLASSNAME
           
static Arg A_METHOD
           
static Arg A_OBJECT
           
static Arg A_STATIC
           
static Arg A_TYPES
           
protected static Map TYPES
           
 
Fields inherited from class org.globus.cog.karajan.workflow.nodes.AbstractSequentialWithArguments
QUOTED
 
Fields inherited from class org.globus.cog.karajan.workflow.nodes.FlowNode
A_INLINE_TEXT, debug, startCount, STDERR, STDOUT, threadTracker
 
Fields inherited from interface org.globus.cog.karajan.workflow.nodes.FlowElement
ANNOTATION, CALLER, FILENAME, LINE, TEXT, UID
 
Constructor Summary
JavaMethodInvocationNode()
           
 
Method Summary
protected static Object convert(Class type, Object src)
           
protected static Object convert(Class type, Object src, boolean array)
           
 Object function(VariableStack stack)
           
static Class getClass(String type)
           
static String prettyPrintArray(Object[] array)
           
 
Methods inherited from class org.globus.cog.karajan.workflow.nodes.functions.AbstractFunction
executeChildren, executeSimple, isSimple, post, pre, ret, setSimple, setValue
 
Methods inherited from class org.globus.cog.karajan.workflow.nodes.AbstractSequentialWithArguments
addChannel, argumentsEvaluated, checkArguments, childCompleted, getArgument, getArgumentCount, getArgumentIndex, getArgumentNames, getArguments, getChannels, getMaxArgIndex, getNonpropargs, getOptionalArgs, getQuotedArgs, getSortedArgs, hasChannels, hasNestedArguments, hasVariableArguments, initializeArgs, initializeStatic, newNameBindingVariableArguments, newVariableArguments, processArguments, setArguments, setHasVargs, setNestedArgs, setNonpropargs, setQuotedArgs, setVargs
 
Methods inherited from class org.globus.cog.karajan.workflow.nodes.Sequential
executeSingle, exit, getIndex, moreToExecute, notificationEvent, preDecIndex, preIncIndex, setIndex, startElement, startNext
 
Methods inherited from class org.globus.cog.karajan.workflow.nodes.FlowContainer
execute, getChildFailed, isOptimizable, setChildFailed, setOptimize
 
Methods inherited from class org.globus.cog.karajan.workflow.nodes.FlowNode
_finally, abort, abortEvent, acceptsInlineText, addElement, addStaticArgument, checkClass, checkCompleted, checkFailed, complete, controlEvent, copy, echo, echo, elementCount, elements, event, executeErrorHandler, fail, fail, failIfNotDefined, failIfNull, failIfNull, failImmediately, failImmediately, failImmediately, failImmediately, fireControlEvent, fireMonitoringEvent, fireNotificationEvent, fireStatusMonitoringEvent, get_locator, getBooleanProperty, getBooleanProperty, getCanonicalType, getElement, getElementType, getIntProperty, getIntProperty, getParent, getProperty, getStaticArguments, getStringProperty, getTextualName, getTreeProperty, getUID, hasFrame, hasProperty, isCheckpointable, isSystemProperty, loadComplete, loadStarted, monitoringEvent, propertyNames, removeElement, removeElement, removeProperty, replaceElement, restart, restartElement, set_locator, setAcceptsInlineText, setCheckpointable, setElements, setElementType, setFrame, setParent, setProperties, setProperty, setProperty, setProperty, setStaticArguments, start, startElement, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

A_METHOD

public static final Arg A_METHOD

A_STATIC

public static final Arg A_STATIC

A_CLASSNAME

public static final Arg A_CLASSNAME

A_OBJECT

public static final Arg A_OBJECT

A_TYPES

public static final Arg A_TYPES

TYPES

protected static final Map TYPES
Constructor Detail

JavaMethodInvocationNode

public JavaMethodInvocationNode()
Method Detail

function

public Object function(VariableStack stack)
                throws ExecutionException
Specified by:
function in class AbstractFunction
Throws:
ExecutionException

getClass

public static Class getClass(String type)
                      throws ExecutionException
Throws:
ExecutionException

convert

protected static Object convert(Class type,
                                Object src,
                                boolean array)
                         throws ExecutionException
Throws:
ExecutionException

convert

protected static Object convert(Class type,
                                Object src)
                         throws ExecutionException
Throws:
ExecutionException

prettyPrintArray

public static String prettyPrintArray(Object[] array)