Package: LexKeywordToken

LexKeywordToken

nameinstructionbranchcomplexitylinemethod
LexKeywordToken(VDMToken, ILexLocation)
M: 0 C: 5
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
clone()
M: 0 C: 8
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

Coverage

1: /*******************************************************************************
2: *
3: *        Copyright (c) 2008 Fujitsu Services Ltd.
4: *
5: *        Author: Nick Battle
6: *
7: *        This file is part of VDMJ.
8: *
9: *        VDMJ is free software: you can redistribute it and/or modify
10: *        it under the terms of the GNU General Public License as published by
11: *        the Free Software Foundation, either version 3 of the License, or
12: *        (at your option) any later version.
13: *
14: *        VDMJ is distributed in the hope that it will be useful,
15: *        but WITHOUT ANY WARRANTY; without even the implied warranty of
16: *        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17: *        GNU General Public License for more details.
18: *
19: *        You should have received a copy of the GNU General Public License
20: *        along with VDMJ. If not, see <http://www.gnu.org/licenses/>.
21: *
22: ******************************************************************************/
23:
24: package org.overture.ast.lex;
25:
26: import org.overture.ast.intf.lex.ILexKeywordToken;
27: import org.overture.ast.intf.lex.ILexLocation;
28:
29: public class LexKeywordToken extends LexToken implements ILexKeywordToken
30: {
31:         private static final long serialVersionUID = 1L;
32:
33:         public LexKeywordToken(VDMToken type, ILexLocation location)
34:         {
35:                 super(location, type);
36:         }
37:
38:         @Override
39:         public ILexKeywordToken clone()
40:         {
41:                 return new LexKeywordToken(type, location);
42:         }
43:
44:         // @Override
45:         // public void apply(IAnalysis analysis) {
46:         // analysis.caselexk(this);
47:         // }
48:         //
49:         // @Override
50:         // public <A> A apply(IAnswer<A> caller) {
51:         // return caller.caseLexKeywordToken(this);
52:         // }
53:         //
54:         // @Override
55:         // public <Q> void apply(IQuestion<Q> caller, Q question) {
56:         // caller.caseLexKeywordToken(this, question);
57:         // }
58:         //
59:         // @Override
60:         // public <Q, A> A apply(IQuestionAnswer<Q, A> caller, Q question) {
61:         // return caller.caseLexKeywordToken(this, question);
62:         // }
63:
64: }