Class BnfParserDefinition

  • All Implemented Interfaces:
    com.intellij.lang.ParserDefinition

    public class BnfParserDefinition
    extends java.lang.Object
    implements com.intellij.lang.ParserDefinition
    User: gregory Date: 13.07.11 Time: 22:43
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.intellij.lang.ParserDefinition

        com.intellij.lang.ParserDefinition.SpaceRequirements
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static com.intellij.psi.tree.TokenSet ATOMS  
      static com.intellij.psi.tree.IElementType BNF_BLOCK_COMMENT  
      static com.intellij.psi.tree.IFileElementType BNF_FILE_ELEMENT_TYPE  
      static com.intellij.psi.tree.IElementType BNF_LINE_COMMENT  
      static com.intellij.psi.tree.TokenSet COMMENTS  
      static com.intellij.psi.tree.TokenSet LITERALS  
      static com.intellij.psi.tree.TokenSet OPERATORS  
      static com.intellij.psi.tree.TokenSet PARENS  
      static com.intellij.psi.tree.TokenSet PARENS_L  
      static com.intellij.psi.tree.TokenSet PARENS_R  
      static com.intellij.psi.tree.TokenSet WS  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull com.intellij.psi.PsiElement createElement​(com.intellij.lang.ASTNode astNode)  
      @NotNull com.intellij.psi.PsiFile createFile​(@NotNull com.intellij.psi.FileViewProvider fileViewProvider)  
      @NotNull com.intellij.lexer.Lexer createLexer​(com.intellij.openapi.project.Project project)  
      @NotNull com.intellij.lang.PsiParser createParser​(com.intellij.openapi.project.Project project)  
      @NotNull com.intellij.psi.tree.TokenSet getCommentTokens()  
      @NotNull com.intellij.psi.tree.IFileElementType getFileNodeType()  
      @NotNull com.intellij.psi.tree.TokenSet getStringLiteralElements()  
      @NotNull com.intellij.psi.tree.TokenSet getWhitespaceTokens()  
      @NotNull com.intellij.lang.ParserDefinition.SpaceRequirements spaceExistenceTypeBetweenTokens​(com.intellij.lang.ASTNode node1, com.intellij.lang.ASTNode node2)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.intellij.lang.ParserDefinition

        reparseSpace, spaceExistanceTypeBetweenTokens
    • Field Detail

      • BNF_FILE_ELEMENT_TYPE

        public static final com.intellij.psi.tree.IFileElementType BNF_FILE_ELEMENT_TYPE
      • WS

        public static final com.intellij.psi.tree.TokenSet WS
      • BNF_LINE_COMMENT

        public static final com.intellij.psi.tree.IElementType BNF_LINE_COMMENT
      • BNF_BLOCK_COMMENT

        public static final com.intellij.psi.tree.IElementType BNF_BLOCK_COMMENT
      • COMMENTS

        public static final com.intellij.psi.tree.TokenSet COMMENTS
      • LITERALS

        public static final com.intellij.psi.tree.TokenSet LITERALS
      • PARENS_L

        public static final com.intellij.psi.tree.TokenSet PARENS_L
      • PARENS_R

        public static final com.intellij.psi.tree.TokenSet PARENS_R
      • PARENS

        public static final com.intellij.psi.tree.TokenSet PARENS
      • OPERATORS

        public static final com.intellij.psi.tree.TokenSet OPERATORS
      • ATOMS

        public static final com.intellij.psi.tree.TokenSet ATOMS
    • Constructor Detail

      • BnfParserDefinition

        public BnfParserDefinition()
    • Method Detail

      • createLexer

        @NotNull
        public @NotNull com.intellij.lexer.Lexer createLexer​(com.intellij.openapi.project.Project project)
        Specified by:
        createLexer in interface com.intellij.lang.ParserDefinition
      • createParser

        @NotNull
        public @NotNull com.intellij.lang.PsiParser createParser​(com.intellij.openapi.project.Project project)
        Specified by:
        createParser in interface com.intellij.lang.ParserDefinition
      • getFileNodeType

        @NotNull
        public @NotNull com.intellij.psi.tree.IFileElementType getFileNodeType()
        Specified by:
        getFileNodeType in interface com.intellij.lang.ParserDefinition
      • getWhitespaceTokens

        @NotNull
        public @NotNull com.intellij.psi.tree.TokenSet getWhitespaceTokens()
        Specified by:
        getWhitespaceTokens in interface com.intellij.lang.ParserDefinition
      • getCommentTokens

        @NotNull
        public @NotNull com.intellij.psi.tree.TokenSet getCommentTokens()
        Specified by:
        getCommentTokens in interface com.intellij.lang.ParserDefinition
      • getStringLiteralElements

        @NotNull
        public @NotNull com.intellij.psi.tree.TokenSet getStringLiteralElements()
        Specified by:
        getStringLiteralElements in interface com.intellij.lang.ParserDefinition
      • createElement

        @NotNull
        public @NotNull com.intellij.psi.PsiElement createElement​(com.intellij.lang.ASTNode astNode)
        Specified by:
        createElement in interface com.intellij.lang.ParserDefinition
      • createFile

        @NotNull
        public @NotNull com.intellij.psi.PsiFile createFile​(@NotNull
                                                            @NotNull com.intellij.psi.FileViewProvider fileViewProvider)
        Specified by:
        createFile in interface com.intellij.lang.ParserDefinition
      • spaceExistenceTypeBetweenTokens

        @NotNull
        public @NotNull com.intellij.lang.ParserDefinition.SpaceRequirements spaceExistenceTypeBetweenTokens​(com.intellij.lang.ASTNode node1,
                                                                                                             com.intellij.lang.ASTNode node2)
        Specified by:
        spaceExistenceTypeBetweenTokens in interface com.intellij.lang.ParserDefinition