Package: AstLocationSearcherBase

AstLocationSearcherBase

nameinstructionbranchcomplexitylinemethod
AstLocationSearcherBase()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
caseACaseAlternative(ACaseAlternative)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
caseACaseAlternativeStm(ACaseAlternativeStm)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
caseADefPatternBind(ADefPatternBind)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
caseAPostOpExp(APostOpExp)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
caseILexBooleanToken(ILexBooleanToken)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
caseILexCharacterToken(ILexCharacterToken)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
caseILexIdentifierToken(ILexIdentifierToken)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
caseILexIntegerToken(ILexIntegerToken)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
caseILexNameToken(ILexNameToken)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
caseILexQuoteToken(ILexQuoteToken)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
caseILexRealToken(ILexRealToken)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
caseILexStringToken(ILexStringToken)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
caseILexToken(ILexToken)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
defaultOutPBind(PBind)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
defaultOutPDefinition(PDefinition)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
defaultOutPExp(PExp)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
defaultOutPExport(PExport)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
defaultOutPImport(PImport)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
defaultOutPMultipleBind(PMultipleBind)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
defaultOutPObjectDesignator(PObjectDesignator)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
defaultOutPPattern(PPattern)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
defaultOutPStateDesignator(PStateDesignator)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
defaultOutPStm(PStm)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
defaultOutPTraceCoreDefinition(PTraceCoreDefinition)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
defaultOutPTraceDefinition(PTraceDefinition)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
defaultOutPType(PType)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*
2: * #%~
3: * org.overture.ide.ui
4: * %%
5: * Copyright (C) 2008 - 2014 Overture
6: * %%
7: * This program is free software: you can redistribute it and/or modify
8: * it under the terms of the GNU General Public License as
9: * published by the Free Software Foundation, either version 3 of the
10: * License, or (at your option) any later version.
11: *
12: * This program is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15: * GNU General Public License for more details.
16: *
17: * You should have received a copy of the GNU General Public
18: * License along with this program. If not, see
19: * <http://www.gnu.org/licenses/gpl-3.0.html>.
20: * #~%
21: */
22: package org.overture.ide.ui.utility.ast;
23:
24: import org.overture.ast.analysis.AnalysisException;
25: import org.overture.ast.analysis.DepthFirstAnalysisAdaptor;
26: import org.overture.ast.definitions.PDefinition;
27: import org.overture.ast.definitions.traces.PTraceCoreDefinition;
28: import org.overture.ast.definitions.traces.PTraceDefinition;
29: import org.overture.ast.expressions.ACaseAlternative;
30: import org.overture.ast.expressions.APostOpExp;
31: import org.overture.ast.expressions.PExp;
32: import org.overture.ast.intf.lex.ILexBooleanToken;
33: import org.overture.ast.intf.lex.ILexCharacterToken;
34: import org.overture.ast.intf.lex.ILexIdentifierToken;
35: import org.overture.ast.intf.lex.ILexIntegerToken;
36: import org.overture.ast.intf.lex.ILexNameToken;
37: import org.overture.ast.intf.lex.ILexQuoteToken;
38: import org.overture.ast.intf.lex.ILexRealToken;
39: import org.overture.ast.intf.lex.ILexStringToken;
40: import org.overture.ast.intf.lex.ILexToken;
41: import org.overture.ast.modules.PExport;
42: import org.overture.ast.modules.PImport;
43: import org.overture.ast.patterns.ADefPatternBind;
44: import org.overture.ast.patterns.PBind;
45: import org.overture.ast.patterns.PMultipleBind;
46: import org.overture.ast.patterns.PPattern;
47: import org.overture.ast.statements.ACaseAlternativeStm;
48: import org.overture.ast.statements.PObjectDesignator;
49: import org.overture.ast.statements.PStateDesignator;
50: import org.overture.ast.statements.PStm;
51: import org.overture.ast.types.PType;
52:
53: public class AstLocationSearcherBase extends DepthFirstAnalysisAdaptor
54: {
55:
56:         /**
57:          *
58:          */
59:         private static final long serialVersionUID = 1L;
60:
61:         // /**
62:         // * Never called by analysis from super
63:         // */
64:         // @Override
65:         // public void caseILexLocation(ILexLocation node) throws AnalysisException
66:         // {
67:         // }
68:
69:         /* First all tokens */
70:         @Override
71:         public void caseILexToken(ILexToken node) throws AnalysisException
72:         {
73:                 caseILexLocation(node.getLocation());
74:         }
75:
76:         @Override
77:         public void caseILexNameToken(ILexNameToken node) throws AnalysisException
78:         {
79:                 caseILexLocation(node.getLocation());
80:         }
81:
82:         @Override
83:         public void caseILexIdentifierToken(ILexIdentifierToken node)
84:                         throws AnalysisException
85:         {
86:                 caseILexLocation(node.getLocation());
87:         }
88:
89:         @Override
90:         public void caseILexBooleanToken(ILexBooleanToken node)
91:                         throws AnalysisException
92:         {
93:                 caseILexLocation(node.getLocation());
94:         }
95:
96:         @Override
97:         public void caseILexCharacterToken(ILexCharacterToken node)
98:                         throws AnalysisException
99:         {
100:                 caseILexLocation(node.getLocation());
101:         }
102:
103:         @Override
104:         public void caseILexIntegerToken(ILexIntegerToken node)
105:                         throws AnalysisException
106:         {
107:                 caseILexLocation(node.getLocation());
108:         }
109:
110:         @Override
111:         public void caseILexQuoteToken(ILexQuoteToken node)
112:                         throws AnalysisException
113:         {
114:                 caseILexLocation(node.getLocation());
115:         }
116:
117:         @Override
118:         public void caseILexRealToken(ILexRealToken node) throws AnalysisException
119:         {
120:                 caseILexLocation(node.getLocation());
121:         }
122:
123:         @Override
124:         public void caseILexStringToken(ILexStringToken node)
125:                         throws AnalysisException
126:         {
127:                 caseILexLocation(node.getLocation());
128:         }
129:
130:         /* All nodes that have a location */
131:         @Override
132:         public void caseAPostOpExp(APostOpExp node) throws AnalysisException
133:         {
134:                 caseILexLocation(node.getLocation());
135:         }
136:
137:         @Override
138:         public void caseACaseAlternative(ACaseAlternative node)
139:                         throws AnalysisException
140:         {
141:                 caseILexLocation(node.getLocation());
142:         }
143:
144:         @Override
145:         public void caseADefPatternBind(ADefPatternBind node)
146:                         throws AnalysisException
147:         {
148:                 caseILexLocation(node.getLocation());
149:         }
150:
151:         @Override
152:         public void caseACaseAlternativeStm(ACaseAlternativeStm node)
153:                         throws AnalysisException
154:         {
155:                 caseILexLocation(node.getLocation());
156:         }
157:
158:         @Override
159:         public void defaultOutPExp(PExp node) throws AnalysisException
160:         {
161:                 caseILexLocation(node.getLocation());
162:         }
163:
164:         @Override
165:         public void defaultOutPType(PType node) throws AnalysisException
166:         {
167:                 caseILexLocation(node.getLocation());
168:         }
169:
170:         @Override
171:         public void defaultOutPPattern(PPattern node) throws AnalysisException
172:         {
173:                 caseILexLocation(node.getLocation());
174:         }
175:
176:         
177:         @Override
178:         public void defaultOutPBind(PBind node) throws AnalysisException
179:         {
180:                 caseILexLocation(node.getLocation());
181:         }
182:         
183:
184:         @Override
185:         public void defaultOutPMultipleBind(PMultipleBind node)
186:                         throws AnalysisException
187:         {
188:                 caseILexLocation(node.getLocation());
189:         }
190:
191:         @Override
192:         public void defaultOutPDefinition(PDefinition node)
193:                         throws AnalysisException
194:         {
195:                 caseILexLocation(node.getLocation());
196:         }
197:
198:         @Override
199:         public void defaultOutPStm(PStm node) throws AnalysisException
200:         {
201:                 caseILexLocation(node.getLocation());
202:         }
203:
204:         @Override
205:         public void defaultOutPImport(PImport node) throws AnalysisException
206:         {
207:                 caseILexLocation(node.getLocation());
208:         }
209:
210:         @Override
211:         public void defaultOutPExport(PExport node) throws AnalysisException
212:         {
213:                 caseILexLocation(node.getLocation());
214:         }
215:
216:         @Override
217:         public void defaultOutPTraceDefinition(PTraceDefinition node)
218:                         throws AnalysisException
219:         {
220:                 caseILexLocation(node.getLocation());
221:         }
222:
223:         @Override
224:         public void defaultOutPTraceCoreDefinition(PTraceCoreDefinition node)
225:                         throws AnalysisException
226:         {
227:                 caseILexLocation(node.getLocation());
228:         }
229:
230:         @Override
231:         public void defaultOutPStateDesignator(PStateDesignator node)
232:                         throws AnalysisException
233:         {
234:                 caseILexLocation(node.getLocation());
235:         }
236:
237:         @Override
238:         public void defaultOutPObjectDesignator(PObjectDesignator node)
239:                         throws AnalysisException
240:         {
241:                 caseILexLocation(node.getLocation());
242:         }
243: }