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
) {
15 public LeafElement
findLeafElementAt(int offset
) {
20 public boolean textMatches(@NotNull CharSequence seq
) {
25 public boolean textMatches(@NotNull PsiElement element
) {
30 public int getTextLength() {
35 public int getStartOffset() {
40 public String
toString() {
41 return "ForeignLeaf(" + getElementType() + ": " + getText() + ")";