@Override @Nullable public LeafElement createLeaf(@NotNull final IElementType type, @NotNull CharSequence text) { if (type == PlainTextTokenTypes.PLAIN_TEXT) { return new PsiPlainTextImpl(text); } return null; }
@Override @Nullable public LeafElement createLeaf(final IElementType type, CharSequence text) { if (type == PlainTextTokenTypes.PLAIN_TEXT) { return new PsiPlainTextImpl(text); } return null; }
@Override public ASTNode parseContents(ASTNode chameleon) { final CharSequence chars = chameleon.getChars(); return ASTFactory.leaf(PlainTextTokenTypes.PLAIN_TEXT, chars); }
protected PsiPlainTextImpl(@NotNull CharSequence text) { super(PlainTextTokenTypes.PLAIN_TEXT, text); }
protected PsiPlainTextImpl(CharSequence text) { super(PlainTextTokenTypes.PLAIN_TEXT, text); }
@Override public boolean apply(@Nullable IElementType input) { return input == PlainTextTokenTypes.PLAIN_TEXT; }