接口 ILeafElementType


public interface ILeafElementType
An additional interface to be implemented by IElementType instances to allow customizing how leaf AST elements are created for tokens of this type. By default, plain LeafElement instances would be created. Implementing this interface only makes sense if you want to override some methods in LeafElement.
另请参阅:
  • 方法概要

    修饰符和类型
    方法
    说明
    @NotNull ASTNode
    createLeafNode(@NotNull CharSequence leafText)
    Invoked by PsiBuilder to create a leaf AST node based of this type.
  • 方法详细资料

    • createLeafNode

      @NotNull @NotNull ASTNode createLeafNode(@NotNull @NotNull CharSequence leafText)
      Invoked by PsiBuilder to create a leaf AST node based of this type.
      返回:
      a LeafElement object with the given text