Don't pass five parameters to LeafElement's constuctor to initialize single myText...
[fedora-idea.git] / lang-impl / src / com / intellij / psi / impl / source / tree / ForeignLeafPsiElement.java
blobf636cb50db90148b324e57970fd5d2238f123464
1 /*
2 * @author max
3 */
4 package com.intellij.psi.impl.source.tree;
6 import com.intellij.psi.PsiElement;
7 import com.intellij.psi.tree.IElementType;
8 import org.jetbrains.annotations.NotNull;
10 public class ForeignLeafPsiElement extends LeafPsiElement {
11 public ForeignLeafPsiElement(IElementType type, CharSequence text) {
12 super(type, text);
15 public LeafElement findLeafElementAt(int offset) {
16 return null;
19 @Override
20 public boolean textMatches(@NotNull CharSequence seq) {
21 return false;
24 @Override
25 public boolean textMatches(@NotNull PsiElement element) {
26 return false;
29 @Override
30 public int getTextLength() {
31 return 0;
34 @Override
35 public int getStartOffset() {
36 return 0;
39 @Override
40 public String toString() {
41 return "ForeignLeaf(" + getElementType() + ": " + getText() + ")";