本文整理匯總了Java中com.intellij.psi.PlainTextTokenTypes類的典型用法代碼示例。如果您正苦於以下問題:Java PlainTextTokenTypes類的具體用法?Java PlainTextTokenTypes怎麽用?Java PlainTextTokenTypes使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
PlainTextTokenTypes類屬於com.intellij.psi包,在下文中一共展示了PlainTextTokenTypes類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createLeaf
import com.intellij.psi.PlainTextTokenTypes; //導入依賴的package包/類
@Override
@Nullable
public LeafElement createLeaf(@NotNull final IElementType type, @NotNull CharSequence text) {
if (type == PlainTextTokenTypes.PLAIN_TEXT) {
return new PsiPlainTextImpl(text);
}
return null;
}
示例2: createLeaf
import com.intellij.psi.PlainTextTokenTypes; //導入依賴的package包/類
@Override
@Nullable
public LeafElement createLeaf(final IElementType type, CharSequence text) {
if (type == PlainTextTokenTypes.PLAIN_TEXT) {
return new PsiPlainTextImpl(text);
}
return null;
}
示例3: parseContents
import com.intellij.psi.PlainTextTokenTypes; //導入依賴的package包/類
@Override
public ASTNode parseContents(ASTNode chameleon) {
final CharSequence chars = chameleon.getChars();
return ASTFactory.leaf(PlainTextTokenTypes.PLAIN_TEXT, chars);
}
示例4: PsiPlainTextImpl
import com.intellij.psi.PlainTextTokenTypes; //導入依賴的package包/類
protected PsiPlainTextImpl(@NotNull CharSequence text) {
super(PlainTextTokenTypes.PLAIN_TEXT, text);
}
示例5: PsiPlainTextImpl
import com.intellij.psi.PlainTextTokenTypes; //導入依賴的package包/類
protected PsiPlainTextImpl(CharSequence text) {
super(PlainTextTokenTypes.PLAIN_TEXT, text);
}
示例6: apply
import com.intellij.psi.PlainTextTokenTypes; //導入依賴的package包/類
@Override
public boolean apply(@Nullable IElementType input) {
return input == PlainTextTokenTypes.PLAIN_TEXT;
}