01: package net.sourceforge.orbroker;
02:
03: import java.lang.reflect.Member;
04:
05: /*
06: * Created on Mar 25, 2004
07: */
08:
09: /**
10: * Represents a member with arguments.
11: * @author Nils Kilden-Pedersen
12: */
13: abstract class ArgumentsMember extends ResultObjectMember {
14:
15: private ArgumentList argumentList;
16:
17: protected ArgumentsMember(Member member) {
18: super (member);
19: }
20:
21: protected void setArgumentList(ArgumentList parameterList) {
22: assert this .argumentList == null : "Argument list has already been set.";
23: this .argumentList = parameterList;
24: this .argumentList.close();
25: }
26:
27: protected void setParameter(ValueType valueType) {
28: ArgumentList parmList = new ArgumentList(1);
29: parmList.add(valueType);
30: setArgumentList(parmList);
31: }
32:
33: /**
34: * @return Returns argumentList.
35: */
36: protected final ArgumentList getArgumentList() {
37: return this.argumentList;
38: }
39: }
|