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 |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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)
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
createDeclaredArgs
protected DeclaredArgs createDeclaredArgs(IArgs currentArgs)
getDefaultFunctor
public IFunctor getDefaultFunctor()
getIndex
public int getIndex()