01: package org.drools.eclipse.core;
02:
03: /**
04: * This represents a function.
05: *
06: * @author <a href="mailto:kris_verlaenen@hotmail.com">kris verlaenen </a>
07: */
08: public class Function extends DroolsElement {
09:
10: private final String functionName;
11:
12: Function(Package parent, String functionName) {
13: super (parent);
14: this .functionName = functionName;
15: }
16:
17: public Package getParentPackage() {
18: return (Package) getParent();
19: }
20:
21: public String getFunctionName() {
22: return functionName;
23: }
24:
25: public int getType() {
26: return FUNCTION;
27: }
28:
29: public DroolsElement[] getChildren() {
30: return NO_ELEMENTS;
31: }
32:
33: public String toString() {
34: return functionName;
35: }
36:
37: }
|