01: package org.drools.lang.descr;
02:
03: /*
04: * Copyright 2005 JBoss Inc
05: *
06: * Licensed under the Apache License, Version 2.0 (the "License");
07: * you may not use this file except in compliance with the License.
08: * You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */
18:
19: import java.util.Collections;
20: import java.util.List;
21:
22: public class EvalDescr extends BaseDescr implements
23: ConditionalElementDescr {
24: /**
25: *
26: */
27: private static final long serialVersionUID = 400L;
28:
29: private Object content;
30:
31: private String[] declarations;
32:
33: private String classMethodName;
34:
35: public EvalDescr() {
36: }
37:
38: public EvalDescr(final Object content) {
39: this .content = content;
40: }
41:
42: public Object getContent() {
43: return this .content;
44: }
45:
46: public void setContent(final Object content) {
47: this .content = content;
48: }
49:
50: public String getClassMethodName() {
51: return this .classMethodName;
52: }
53:
54: public void setClassMethodName(final String classMethodName) {
55: this .classMethodName = classMethodName;
56: }
57:
58: public void setDeclarations(final String[] declarations) {
59: this .declarations = declarations;
60: }
61:
62: public String[] getDeclarations() {
63: return this .declarations;
64: }
65:
66: public List getDescrs() {
67: return Collections.EMPTY_LIST;
68: }
69:
70: public void addDescr(final BaseDescr baseDescr) {
71: throw new UnsupportedOperationException(
72: "Can't add descriptors to " + this .getClass().getName());
73: }
74:
75: public void insertBeforeLast(final Class clazz,
76: final BaseDescr baseDescr) {
77: throw new UnsupportedOperationException(
78: "Can't add descriptors to " + this .getClass().getName());
79: }
80:
81: public void addOrMerge(BaseDescr baseDescr) {
82: throw new UnsupportedOperationException(
83: "Can't add descriptors to " + this.getClass().getName());
84: }
85:
86: }
|