/*
 * Copyright 2000-2009 JetBrains s.r.o.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.jetbrains.plugins.groovy.lang.psi.impl.statements.expressions.literals;

import com.intellij.lang.ASTNode;
import com.intellij.psi.PsiType;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor;
import org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.literals.GrRegex;
import org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.literals.GrStringInjection;
import org.jetbrains.plugins.groovy.lang.psi.impl.statements.expressions.GrExpressionImpl;

/**
 * @author ilyas
 */
public class GrRegexImpl extends GrExpressionImpl implements GrRegex {

  public GrRegexImpl(@NotNull ASTNode node) {
    super(node);
  }

  public String toString() {
    return "Compound regular expression";
  }

  public PsiType getType() {
    return null;
  }

  public boolean isPlainString() {
    return true;
  }

  @Override
  public GrStringInjection[] getInjections() {
    return GrStringInjection.EMPTY_ARRAY;
  }

  public void accept(GroovyElementVisitor visitor) {
    visitor.visitRegexExpression(this);
  }

  public Object getValue() {
    return null;
  }
}


@@ -20,10 +20,10 @@
 0-20
-09
+11
  Jet
@@ -718,41 +718,8 @@
 de;%0A
-import com.intellij.psi.PsiType;%0A
 impo
@@ -916,199 +916,8 @@
 gex;
-%0Aimport org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.literals.GrStringInjection;%0Aimport org.jetbrains.plugins.groovy.lang.psi.impl.statements.expressions.GrExpressionImpl;
 %0A%0A/*
@@ -974,26 +974,22 @@
 tends Gr
-Expression
+String
 Impl imp
@@ -1164,206 +1164,50 @@
 lic 
-PsiType getType() %7B%0A    return null;%0A  %7D%0A%0A  public boolean isPlainString() %7B%0A    return true;%0A  %7D%0A%0A  @Override%0A  public GrStringInjection%5B%5D getInjections() %7B%0A    return GrStringInjection.EMPTY_ARRAY
+boolean isPlainString() %7B%0A    return false
 ;%0A  
@@ -1311,57 +1311,7 @@
  %7D%0A%0A
-  public Object getValue() %7B%0A    return null;%0A  %7D%0A
 %7D%0A%0A

GrRegex is GrString