Skip to contentMethod: KeywordToken(Position)
      1: package de.fhdw.wtf.common.token.keywords;
2: 
3: import de.fhdw.wtf.common.token.Position;
4: import de.fhdw.wtf.common.token.Token;
5: 
6: /**
7:  * Represents all keywords as tokens in WTF.
8:  */
9: public abstract class KeywordToken extends Token {
10:         
11:         /**
12:          * generated.
13:          */
14:         private static final long serialVersionUID = 5967366273656660506L;
15:         
16:         /**
17:          * Protected constructor for {@link KeywordToken}. Use create(...)-Factory instead!
18:          * 
19:          * @param position
20:          *            represents the start position of an {@link KeywordToken} in the original input.
21:          */
22:         protected KeywordToken(final Position position) {
23:                 super(position);
24:         }
25:         
26:         @Override
27:         public boolean isKeywordToken() {
28:                 return true;
29:         }
30:         
31: }