Package de.intarsys.tools.functor
Class ArgumentDeclaration
- java.lang.Object
-
- de.intarsys.tools.functor.Declaration
-
- de.intarsys.tools.functor.DeclarationElement
-
- 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
Constructors Constructor Description ArgumentDeclaration(java.lang.Object declarationContext, java.lang.String name, java.lang.String modifiers, int index, IDeclaration[] nestedDeclarations)ArgumentDeclaration(java.lang.Object declarationContext, java.lang.String name, java.lang.String modifiers, int index, IFunctor defaultFunctor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFunctorCallaccept(IFunctorCall call)Apply this declaration tocall.protected DeclaredArgscreateDeclaredArgs(IArgs currentArgs)IFunctorgetDefaultFunctor()intgetIndex()-
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.intarsys.tools.functor.IDeclaration
getDeclarationContext, isBlock
-
Methods inherited from interface de.intarsys.tools.functor.IDeclarationElement
getName, hasModifier
-
-
-
-
Constructor Detail
-
ArgumentDeclaration
public ArgumentDeclaration(java.lang.Object declarationContext, java.lang.String name, java.lang.String modifiers, int index, IDeclaration[] nestedDeclarations)
-
ArgumentDeclaration
public ArgumentDeclaration(java.lang.Object declarationContext, java.lang.String name, java.lang.String modifiers, int index, IFunctor defaultFunctor)
-
-
Method Detail
-
accept
public IFunctorCall accept(IFunctorCall call) throws DeclarationException
Description copied from interface:IDeclarationApply this declaration tocall.The semantics of this method is up to the designer.
- Specified by:
acceptin interfaceIDeclaration- Parameters:
call- TheIFunctorCallto be modified.- Returns:
- The modified or new
IFunctorCall. - Throws:
DeclarationException
-
createDeclaredArgs
protected DeclaredArgs createDeclaredArgs(IArgs currentArgs)
-
getDefaultFunctor
public IFunctor getDefaultFunctor()
-
getIndex
public int getIndex()
-
-