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
An argument declaration supporting argument reordering/ naming and default
values.
-
Constructor Summary
ConstructorsConstructorDescriptionArgumentDeclaration
(Object declarationContext, String name, String modifiers, int index, IDeclaration[] nestedDeclarations) ArgumentDeclaration
(Object declarationContext, String name, String modifiers, int index, IFunctor defaultFunctor) -
Method Summary
Modifier and TypeMethodDescriptionaccept
(IFunctorCall call) Apply this declaration tocall
.protected DeclaredArgs
createDeclaredArgs
(IArgs currentArgs) 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
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 Details
-
ArgumentDeclaration
public ArgumentDeclaration(Object declarationContext, String name, String modifiers, int index, IDeclaration[] nestedDeclarations) -
ArgumentDeclaration
-
-
Method Details
-
accept
Description copied from interface:IDeclaration
Apply this declaration tocall
.The semantics of this method is up to the designer.
- Specified by:
accept
in interfaceIDeclaration
- Parameters:
call
- TheIFunctorCall
to be modified.- Returns:
- The modified or new
IFunctorCall
. - Throws:
DeclarationException
-
createDeclaredArgs
-
getDefaultFunctor
-
getIndex
public int getIndex()
-