to.etc.iocular.def
Class MethodCallBuilder

java.lang.Object
  extended by to.etc.iocular.def.MethodCallBuilder

public class MethodCallBuilder
extends java.lang.Object

Some kind of method or constructor call builder.

Author:
jal Created on Apr 22, 2007

Constructor Summary
MethodCallBuilder(ComponentBuilder component, java.lang.Class<?> baseClass, java.lang.String methodName)
           
MethodCallBuilder(ComponentBuilder component, java.lang.Class<?> baseClass, java.lang.String methodName, java.lang.Class<?>[] actuals, boolean staticOnly)
           
 
Method Summary
 MethodInvoker createInvoker(ISelfDef self, java.util.Stack<ComponentBuilder> stack)
          Create an unique invoker for this method.
 void setParameter(java.lang.Class<?> type)
          Set an unnumbered/unordered parameter from a container object identified by the specified type.
 void setParameter(int index, java.lang.Class<?> type)
          Set a numbered parameter from a container object identified by the specified type.
 void setParameter(int index, java.lang.String name)
          Set a numbered parameter from a container object identified by the specified name.
 void setParameter(java.lang.String name)
          Set an unnumbered/unordered parameter from a container object identified by the specified name.
 void setParameterSelf()
          Set an unnumbered/unordered parameter from the actual object being built by the current definition.
 void setParameterSelf(int index)
          Define a numbered parameter as the actual object being built by the current definition.
 void setStaticOnly(boolean staticOnly)
           
 void setThisIsSelf()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodCallBuilder

public MethodCallBuilder(ComponentBuilder component,
                         java.lang.Class<?> baseClass,
                         java.lang.String methodName,
                         java.lang.Class<?>[] actuals,
                         boolean staticOnly)

MethodCallBuilder

public MethodCallBuilder(ComponentBuilder component,
                         java.lang.Class<?> baseClass,
                         java.lang.String methodName)
Method Detail

setStaticOnly

public void setStaticOnly(boolean staticOnly)

setParameter

public void setParameter(int index,
                         java.lang.Class<?> type)
Set a numbered parameter from a container object identified by the specified type.

Parameters:
index -
type -

setParameter

public void setParameter(int index,
                         java.lang.String name)
Set a numbered parameter from a container object identified by the specified name.

Parameters:
index -
name -

setParameterSelf

public void setParameterSelf(int index)
Define a numbered parameter as the actual object being built by the current definition.

Parameters:
index -

setParameter

public void setParameter(java.lang.Class<?> type)
Set an unnumbered/unordered parameter from a container object identified by the specified type.

Parameters:
type -

setParameter

public void setParameter(java.lang.String name)
Set an unnumbered/unordered parameter from a container object identified by the specified name.

Parameters:
name -

setParameterSelf

public void setParameterSelf()
Set an unnumbered/unordered parameter from the actual object being built by the current definition.


createInvoker

public MethodInvoker createInvoker(ISelfDef self,
                                   java.util.Stack<ComponentBuilder> stack)
Create an unique invoker for this method. The invoker encapsulates the method to call plus references to all parameters for the method as obtained from a container.

Parameters:
self -
stack -
Returns:

setThisIsSelf

public void setThisIsSelf()