01: package org.drools.lang.descr;
02:
03: /**
04: *
05: * This represents a method call.
06: * As in:
07: *
08: * variableName.methodName(argument list)
09: *
10: */
11: public class MethodAccessDescr extends DeclarativeInvokerDescr {
12:
13: private static final long serialVersionUID = 400L;
14:
15: private String methodName;
16: private String arguments;
17:
18: public MethodAccessDescr(final String methodName) {
19: this .methodName = methodName;
20: }
21:
22: public MethodAccessDescr(final String methodName,
23: final String arguments) {
24: this .methodName = methodName;
25: this .arguments = arguments;
26: }
27:
28: public String getArguments() {
29: return this .arguments;
30: }
31:
32: public void setArguments(final String arguments) {
33: this .arguments = arguments;
34: }
35:
36: public String getMethodName() {
37: return this .methodName;
38: }
39:
40: public void setMethodName(final String methodName) {
41: this .methodName = methodName;
42: }
43:
44: public String toString() {
45: return this.methodName + this.arguments;
46: }
47:
48: }
|