01: /**
02: * MVEL (The MVFLEX Expression Language)
03: *
04: * Copyright (C) 2007 Christopher Brock, MVFLEX/Valhalla Project and the Codehaus
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: */package org.mvel.debug;
19:
20: import org.mvel.ParserContext;
21: import org.mvel.ast.LineLabel;
22: import org.mvel.integration.VariableResolverFactory;
23:
24: public class Frame {
25: private String sourceName;
26: private int lineNumber;
27:
28: private VariableResolverFactory factory;
29: private ParserContext parserContext;
30:
31: public Frame(LineLabel label, VariableResolverFactory factory,
32: ParserContext pCtx) {
33: this .sourceName = label.getSourceFile();
34: this .lineNumber = label.getLineNumber();
35: this .factory = factory;
36: this .parserContext = pCtx;
37: }
38:
39: public Frame(String sourceName, int lineNumber,
40: VariableResolverFactory factory, ParserContext pCtx) {
41: this .sourceName = sourceName;
42: this .lineNumber = lineNumber;
43: this .factory = factory;
44: this .parserContext = pCtx;
45: }
46:
47: public String getSourceName() {
48: return sourceName;
49: }
50:
51: public void setSourceName(String sourceName) {
52: this .sourceName = sourceName;
53: }
54:
55: public int getLineNumber() {
56: return lineNumber;
57: }
58:
59: public void setLineNumber(int lineNumber) {
60: this .lineNumber = lineNumber;
61: }
62:
63: public VariableResolverFactory getFactory() {
64: return factory;
65: }
66:
67: public void setFactory(VariableResolverFactory factory) {
68: this .factory = factory;
69: }
70:
71: public ParserContext getParserContext() {
72: return parserContext;
73: }
74:
75: public void setParserContext(ParserContext parserContext) {
76: this.parserContext = parserContext;
77: }
78: }
|