org.globus.cog.karajan.arguments
Class Arg

java.lang.Object
  extended by org.globus.cog.karajan.arguments.Arg
Direct Known Subclasses:
Arg.Channel, Arg.Optional, Arg.Positional, Arg.TypedPositional

public abstract class Arg
extends Object


Nested Class Summary
static class Arg.Channel
           
static class Arg.Optional
           
static class Arg.Positional
           
static class Arg.TypedPositional
           
static class Arg.Vargs
           
 
Field Summary
static int CHANNEL
           
static int IMPLICIT
           
static int NOINDEX
           
static Arg.Vargs VARGS
           
 
Constructor Summary
Arg(String name)
           
Arg(String name, int index)
           
 
Method Summary
 int getIndex()
           
 String getName()
           
protected  NamedArguments getNamed(VariableStack stack)
           
 Object getStatic(FlowElement node)
           
 Object getStatic(FlowElement node, Object def)
           
 Object getValue(VariableStack stack)
           
 Object getValue(VariableStack stack, Object defaultValue)
           
 boolean hasIndex()
           
 boolean isPresent(VariableStack stack)
           
 boolean isPresentStatic(FlowElement node)
           
 void setStatic(FlowElement node, boolean value)
           
 void setStatic(FlowElement node, Object value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NOINDEX

public static final int NOINDEX
See Also:
Constant Field Values

CHANNEL

public static final int CHANNEL
See Also:
Constant Field Values

IMPLICIT

public static final int IMPLICIT
See Also:
Constant Field Values

VARGS

public static final Arg.Vargs VARGS
Constructor Detail

Arg

public Arg(String name,
           int index)

Arg

public Arg(String name)
Method Detail

getName

public final String getName()

getIndex

public final int getIndex()

hasIndex

public final boolean hasIndex()

getNamed

protected final NamedArguments getNamed(VariableStack stack)
                                 throws ExecutionException
Throws:
ExecutionException

isPresent

public boolean isPresent(VariableStack stack)
                  throws ExecutionException
Throws:
ExecutionException

getValue

public Object getValue(VariableStack stack)
                throws ExecutionException
Throws:
ExecutionException

getValue

public final Object getValue(VariableStack stack,
                             Object defaultValue)
                      throws ExecutionException
Throws:
ExecutionException

getStatic

public Object getStatic(FlowElement node)

getStatic

public final Object getStatic(FlowElement node,
                              Object def)

setStatic

public final void setStatic(FlowElement node,
                            Object value)

setStatic

public final void setStatic(FlowElement node,
                            boolean value)

isPresentStatic

public final boolean isPresentStatic(FlowElement node)

toString

public String toString()
Overrides:
toString in class Object