intarsys runtime library

de.intarsys.tools.functor
Class ArgumentDeclaration

java.lang.Object
  extended by de.intarsys.tools.functor.Declaration
      extended by de.intarsys.tools.functor.DeclarationElement
          extended by de.intarsys.tools.functor.ArgumentDeclaration
All Implemented Interfaces:
IArgumentDeclaration, IDeclaration, IDeclarationBlock, IDeclarationElement

public class ArgumentDeclaration
extends DeclarationElement
implements IArgumentDeclaration

An argument declaration supporting argument reordering/ naming and default values.


Constructor Summary
ArgumentDeclaration(Object declarationContext, String name, String modifiers, int index, IDeclaration[] nestedDeclarations)
           
ArgumentDeclaration(Object declarationContext, String name, String modifiers, int index, IFunctor defaultFunctor)
           
 
Method Summary
 IFunctorCall accept(IFunctorCall call)
          Apply this declaration to call.
 IFunctor getDefaultFunctor()
           
 int getIndex()
           
 
Methods inherited from class de.intarsys.tools.functor.DeclarationElement
getDeclarations, getName, hasModifier, isBlock, size, toString
 
Methods inherited from class de.intarsys.tools.functor.Declaration
getDeclarationContext
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.intarsys.tools.functor.IDeclarationElement
getName, hasModifier
 
Methods inherited from interface de.intarsys.tools.functor.IDeclaration
getDeclarationContext, isBlock
 

Constructor Detail

ArgumentDeclaration

public ArgumentDeclaration(Object declarationContext,
                           String name,
                           String modifiers,
                           int index,
                           IDeclaration[] nestedDeclarations)

ArgumentDeclaration

public ArgumentDeclaration(Object declarationContext,
                           String name,
                           String modifiers,
                           int index,
                           IFunctor defaultFunctor)
Method Detail

accept

public IFunctorCall accept(IFunctorCall call)
                    throws DeclarationException
Description copied from interface: IDeclaration
Apply this declaration to call.

The semantics of this method is up to the designer.

Specified by:
accept in interface IDeclaration
Parameters:
call - The IFunctorCall to be modified.
Returns:
The modified or new IFunctorCall.
Throws:
DeclarationException

getDefaultFunctor

public IFunctor getDefaultFunctor()

getIndex

public int getIndex()

intarsys runtime library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.