01: /*
02: * Copyright 2006 JBoss Inc
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: *
16: * Created on Jun 18, 2007
17: */
18: package org.drools.rule.builder.dialect.mvel;
19:
20: import java.util.Collections;
21: import java.util.List;
22: import java.util.Map;
23:
24: import org.drools.compiler.Dialect.AnalysisResult;
25:
26: /**
27: * An analysis result implementation for the MVEL dialect
28: *
29: * @author etirelli
30: */
31: public class MVELAnalysisResult implements AnalysisResult {
32: private static final List[] EMPTY_ARRAY_OF_LISTS = new List[0];
33:
34: private List[] boundIdentifiers = EMPTY_ARRAY_OF_LISTS;
35: private List identifiers = Collections.EMPTY_LIST;
36: private List localVariables = Collections.EMPTY_LIST;
37: private List notBoundedIdentifiers = Collections.EMPTY_LIST;
38:
39: private Map mvelVariables;
40: private Map mvelInputs;
41:
42: public List[] getBoundIdentifiers() {
43: return boundIdentifiers;
44: }
45:
46: public void setBoundIdentifiers(List[] boundIdentifiers) {
47: this .boundIdentifiers = boundIdentifiers;
48: }
49:
50: public List getIdentifiers() {
51: return identifiers;
52: }
53:
54: public void setIdentifiers(List identifiers) {
55: this .identifiers = identifiers;
56: }
57:
58: public List getLocalVariables() {
59: return this .localVariables;
60: }
61:
62: public void setLocalVariables(List localVariables) {
63: this .localVariables = localVariables;
64: }
65:
66: public List getNotBoundedIdentifiers() {
67: return notBoundedIdentifiers;
68: }
69:
70: public void setNotBoundedIdentifiers(List notBoundedIdentifiers) {
71: this .notBoundedIdentifiers = notBoundedIdentifiers;
72: }
73:
74: public Map getMvelVariables() {
75: return mvelVariables;
76: }
77:
78: public void setMvelVariables(Map mvelVariables) {
79: this.mvelVariables = mvelVariables;
80: }
81:
82: }
|