2 * Copyright 2000-2009 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package org
.jetbrains
.plugins
.groovy
.lang
.lexer
;
19 import com
.intellij
.psi
.tree
.TokenSet
;
22 * Utility classdef, tha contains various useful TokenSets
26 public abstract class TokenSets
implements GroovyTokenTypes
{
28 public static TokenSet COMMENTS_TOKEN_SET
= TokenSet
.create(
34 public static TokenSet SEPARATORS
= TokenSet
.create(
40 public static TokenSet WHITE_SPACE_TOKEN_SET
= TokenSet
.create(
45 public static TokenSet SUSPICIOUS_EXPRESSION_STATEMENT_START_TOKEN_SET
= TokenSet
.create(
53 public static final TokenSet NUMBERS
= TokenSet
.create(mNUM_INT
,
61 public static final TokenSet CONSTANTS
= TokenSet
.create(
76 public static final TokenSet BUILT_IN_TYPE
= TokenSet
.create(
88 public static TokenSet KEYWORD_REFERENCE_NAMES
= TokenSet
.orSet(TokenSet
.create(
105 public static final TokenSet PROPERTY_NAMES
= TokenSet
.create(mIDENT
, mSTRING_LITERAL
, mGSTRING_LITERAL
);
107 public static TokenSet REFERENCE_NAMES
= TokenSet
.orSet(KEYWORD_REFERENCE_NAMES
, PROPERTY_NAMES
);
110 public static TokenSet VISIBILITY_MODIFIERS
= TokenSet
.create(
116 public static TokenSet MODIFIERS
= TokenSet
.create(
132 public static TokenSet STRING_LITERALS
= TokenSet
.create(
138 public static TokenSet FOR_IN_DELIMITERS
= TokenSet
.create(kIN
, mCOLON
);