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 DeclaredArgscreateDeclaredArgs(IArgs currentArgs) intgetIndex()Methods inherited from class de.intarsys.tools.functor.DeclarationElement
getDeclarations, getName, hasModifier, isBlock, size, toStringMethods inherited from class de.intarsys.tools.functor.Declaration
getDeclarationContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.intarsys.tools.functor.IDeclaration
getDeclarationContext, isBlockMethods 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: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
-
getDefaultFunctor
-
getIndex
public int getIndex()
-