1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package net.sf.zel.vm;
19
20 import net.sf.zel.math.ExtendedMathContext;
21
22 public class ProcDepContext
23 implements ParsingContext
24 {
25
26
27
28
29 private java.util.Set<Variable> dependencies = new java.util.HashSet<Variable>();
30
31 public ProcDepContext()
32 {
33 }
34
35
36
37
38
39
40
41 @Override
42 final public void generateCode(Object... args)
43 {
44 }
45
46
47
48
49 @Override
50 public int getAddress()
51 {
52 throw new UnsupportedOperationException("Not supported yet.");
53 }
54
55
56
57
58
59
60 @Override
61 final public void process(Object obj)
62 {
63 if (obj instanceof java.util.List)
64 {
65 dependencies.add(new Variable((java.util.List) obj));
66 } else
67 {
68 dependencies.add(new Variable((String) obj));
69 }
70 }
71 ;
72
73
74
75
76
77 final public java.util.Set<Variable> getDependencySet()
78 {
79 return dependencies;
80 }
81
82
83
84
85
86 @Override
87 final public ProgramBuilder getProgramBuilder()
88 {
89 throw new UnsupportedOperationException("Code is not generated with ProcDepContext");
90 }
91
92
93
94
95
96 @Override
97 final public void generateCodeAll(ParsingContext parsingContext)
98 {
99 }
100
101 @Override
102 public ProcDepContext createSubContext()
103 {
104 return this;
105 }
106
107 @Override
108 public ExtendedMathContext getMathContext()
109 {
110 return null;
111 }
112
113 @Override
114 public void generateCodeAt(int address, Object... args)
115 {
116 }
117 }