Java 类com.intellij.psi.PlainTextTokenTypes 实例源码

项目:intellij-ce-playground    文件:PlainTextASTFactory.java   
@Override
@Nullable
public LeafElement createLeaf(@NotNull final IElementType type, @NotNull CharSequence text) {
  if (type == PlainTextTokenTypes.PLAIN_TEXT) {
    return new PsiPlainTextImpl(text);
  }
  return null;
}
项目:tools-idea    文件:PlainTextASTFactory.java   
@Override
@Nullable
public LeafElement createLeaf(final IElementType type, CharSequence text) {
  if (type == PlainTextTokenTypes.PLAIN_TEXT) {
    return new PsiPlainTextImpl(text);
  }
  return null;
}
项目:intellij-ce-playground    文件:PlainTextParserDefinition.java   
@Override
public ASTNode parseContents(ASTNode chameleon) {
  final CharSequence chars = chameleon.getChars();
  return ASTFactory.leaf(PlainTextTokenTypes.PLAIN_TEXT, chars);
}
项目:intellij-ce-playground    文件:PsiPlainTextImpl.java   
protected PsiPlainTextImpl(@NotNull CharSequence text) {
  super(PlainTextTokenTypes.PLAIN_TEXT, text);
}
项目:tools-idea    文件:PlainTextParserDefinition.java   
@Override
public ASTNode parseContents(ASTNode chameleon) {
  final CharSequence chars = chameleon.getChars();
  return ASTFactory.leaf(PlainTextTokenTypes.PLAIN_TEXT, chars);
}
项目:tools-idea    文件:PsiPlainTextImpl.java   
protected PsiPlainTextImpl(CharSequence text) {
  super(PlainTextTokenTypes.PLAIN_TEXT, text);
}
项目:consulo    文件:PlainTextParserDefinition.java   
@Override
public ASTNode parseContents(ASTNode chameleon) {
  final CharSequence chars = chameleon.getChars();
  return ASTFactory.leaf(PlainTextTokenTypes.PLAIN_TEXT, chars);
}
项目:consulo    文件:PlainTextASTLeafFactory.java   
@Override
public boolean apply(@Nullable IElementType input) {
  return input == PlainTextTokenTypes.PLAIN_TEXT;
}
项目:consulo    文件:PsiPlainTextImpl.java   
protected PsiPlainTextImpl(CharSequence text) {
  super(PlainTextTokenTypes.PLAIN_TEXT, text);
}