Class BnfFileImpl

  • All Implemented Interfaces:
    com.intellij.navigation.NavigationItem, com.intellij.openapi.ui.Queryable, com.intellij.openapi.util.Iconable, com.intellij.openapi.util.UserDataHolder, com.intellij.openapi.util.UserDataHolderEx, com.intellij.pom.Navigatable, com.intellij.psi.impl.PsiFileEx, com.intellij.psi.impl.source.PsiFileWithStubSupport, com.intellij.psi.NavigatablePsiElement, com.intellij.psi.PsiCheckedRenameElement, com.intellij.psi.PsiElement, com.intellij.psi.PsiFile, com.intellij.psi.PsiFileSystemItem, com.intellij.psi.PsiNamedElement, java.io.Serializable, java.lang.Cloneable, BnfFile

    public class BnfFileImpl
    extends com.intellij.extapi.psi.PsiFileBase
    implements BnfFile
    User: gregory Date: 13.07.11 Time: 23:55
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.intellij.openapi.util.Iconable

        com.intellij.openapi.util.Iconable.IconFlags
      • Nested classes/interfaces inherited from interface com.intellij.openapi.ui.Queryable

        com.intellij.openapi.ui.Queryable.Contributor, com.intellij.openapi.ui.Queryable.PrintInfo, com.intellij.openapi.ui.Queryable.Util
    • Field Summary

      • Fields inherited from class com.intellij.psi.impl.source.PsiFileImpl

        BUILDING_STUB, myContentElementType, myManager, myOriginalFile
      • Fields inherited from class com.intellij.psi.impl.ElementBase

        FLAGS_LOCKED
      • Fields inherited from interface com.intellij.openapi.util.Iconable

        ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
      • Fields inherited from interface com.intellij.psi.NavigatablePsiElement

        EMPTY_NAVIGATABLE_ELEMENT_ARRAY
      • Fields inherited from interface com.intellij.navigation.NavigationItem

        EMPTY_NAVIGATION_ITEM_ARRAY
      • Fields inherited from interface com.intellij.psi.PsiElement

        ARRAY_FACTORY
      • Fields inherited from interface com.intellij.psi.PsiFile

        EMPTY_ARRAY
      • Fields inherited from interface com.intellij.psi.impl.PsiFileEx

        BATCH_REFERENCE_PROCESSING
    • Constructor Summary

      Constructors 
      Constructor Description
      BnfFileImpl​(com.intellij.psi.FileViewProvider fileViewProvider)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @Nullable BnfAttr findAttribute​(@Nullable BnfRule rule, @NotNull KnownAttribute<?> knownAttribute, @Nullable java.lang.String match)  
      <T> T findAttributeValue​(@Nullable BnfRule rule, @NotNull KnownAttribute<T> knownAttribute, @Nullable java.lang.String match)  
      @NotNull java.util.List<BnfAttrs> getAttributes()  
      @NotNull com.intellij.openapi.fileTypes.FileType getFileType()  
      @Nullable BnfRule getRule​(@Nullable java.lang.String ruleName)  
      @NotNull java.util.List<BnfRule> getRules()  
      void subtreeChanged()  
      java.lang.String toString()  
      • Methods inherited from class com.intellij.extapi.psi.PsiFileBase

        accept, getLanguage, getParserDefinition
      • Methods inherited from class com.intellij.psi.impl.source.PsiFileImpl

        acceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, assertReadAccessAllowed, beforeAstChange, calcStubTree, calcTreeElement, canNavigate, canNavigateToSource, checkAdd, checkDelete, checkSetName, clearCaches, clone, cloneImpl, copy, createContentLeafElement, createFileElement, delete, deleteChildRange, derefStub, findChildByClass, findChildrenByClass, findElementAt, findReferenceAt, getChildren, getContainingDirectory, getContainingFile, getContentElementType, getContext, getElementTypeForStubBuilder, getFileElementType, getFirstChild, getGreenStub, getGreenStubTree, getLastChild, getManager, getModificationStamp, getName, getNavigationElement, getNextSibling, getNode, getNodeIfLoaded, getOriginalElement, getOriginalFile, getParent, getPresentation, getPrevSibling, getProject, getPsiRoots, getReference, getReferences, getResolveScope, getStartOffsetInParent, getStub, getStubbedSpine, getStubTree, getText, getTextLength, getTextOffset, getTextRange, getTreeElement, getUseScope, getViewProvider, getVirtualFile, init, isContentsLoaded, isDirectory, isEquivalentTo, isPhysical, isTemplateDataFile, isValid, isWritable, markInvalidated, navigate, onContentReload, processChildren, processDeclarations, putInfo, putInfo, replace, setContentElementType, setName, setOriginalFile, setTreeElementPointer, textContains, textMatches, textMatches, textToCharArray
      • Methods inherited from class com.intellij.psi.impl.ElementBase

        buildRowIcon, computeBaseIcon, getAdjustedBaseIcon, getBaseIcon, getElementIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, transformFlags
      • Methods inherited from class com.intellij.openapi.util.UserDataHolderBase

        changeUserMap, clearUserData, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
      • Methods inherited from class java.util.concurrent.atomic.AtomicReference

        accumulateAndGet, compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, get, getAcquire, getAndAccumulate, getAndSet, getAndUpdate, getOpaque, getPlain, lazySet, set, setOpaque, setPlain, setRelease, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatile
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.intellij.openapi.util.Iconable

        getIcon
      • Methods inherited from interface com.intellij.pom.Navigatable

        canNavigate, canNavigateToSource, navigate
      • Methods inherited from interface com.intellij.navigation.NavigationItem

        getPresentation
      • Methods inherited from interface com.intellij.psi.PsiCheckedRenameElement

        checkSetName
      • Methods inherited from interface com.intellij.psi.PsiElement

        accept, acceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, checkAdd, checkDelete, copy, delete, deleteChildRange, findElementAt, findReferenceAt, getChildren, getContainingFile, getContext, getCopyableUserData, getFirstChild, getLanguage, getLastChild, getManager, getNavigationElement, getNextSibling, getOriginalElement, getOwnDeclarations, getOwnReferences, getPrevSibling, getProject, getReference, getReferences, getResolveScope, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, getTextRangeInParent, getUseScope, isEquivalentTo, isPhysical, isValid, isWritable, processDeclarations, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArray
      • Methods inherited from interface com.intellij.psi.PsiFile

        clearCaches, getContainingDirectory, getFileElementType, getModificationStamp, getNode, getOriginalFile, getParent, getPsiRoots, getViewProvider, getVirtualFile
      • Methods inherited from interface com.intellij.psi.PsiFileSystemItem

        getName, isDirectory, processChildren
      • Methods inherited from interface com.intellij.psi.PsiNamedElement

        setName
      • Methods inherited from interface com.intellij.openapi.util.UserDataHolder

        getUserData, putUserData
    • Constructor Detail

      • BnfFileImpl

        public BnfFileImpl​(com.intellij.psi.FileViewProvider fileViewProvider)
    • Method Detail

      • subtreeChanged

        public void subtreeChanged()
        Specified by:
        subtreeChanged in interface com.intellij.psi.PsiFile
        Overrides:
        subtreeChanged in class com.intellij.psi.impl.source.PsiFileImpl
      • getRules

        @NotNull
        public @NotNull java.util.List<BnfRule> getRules()
        Specified by:
        getRules in interface BnfFile
      • getRule

        @Nullable
        public @Nullable BnfRule getRule​(@Nullable
                                         @Nullable java.lang.String ruleName)
        Specified by:
        getRule in interface BnfFile
      • findAttribute

        @Nullable
        public @Nullable BnfAttr findAttribute​(@Nullable
                                               @Nullable BnfRule rule,
                                               @NotNull
                                               @NotNull KnownAttribute<?> knownAttribute,
                                               @Nullable
                                               @Nullable java.lang.String match)
        Specified by:
        findAttribute in interface BnfFile
      • findAttributeValue

        public <T> T findAttributeValue​(@Nullable
                                        @Nullable BnfRule rule,
                                        @NotNull
                                        @NotNull KnownAttribute<T> knownAttribute,
                                        @Nullable
                                        @Nullable java.lang.String match)
        Specified by:
        findAttributeValue in interface BnfFile
      • getFileType

        @NotNull
        public @NotNull com.intellij.openapi.fileTypes.FileType getFileType()
        Specified by:
        getFileType in interface com.intellij.psi.PsiFile
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface com.intellij.psi.PsiElement
        Overrides:
        toString in class com.intellij.psi.impl.source.PsiFileImpl