Class BnfFileImpl

java.lang.Object
java.util.concurrent.atomic.AtomicReference<com.intellij.util.keyFMap.KeyFMap>
com.intellij.openapi.util.UserDataHolderBase
com.intellij.psi.impl.ElementBase
com.intellij.psi.impl.source.PsiFileImpl
com.intellij.extapi.psi.PsiFileBase
org.intellij.grammar.psi.impl.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, Serializable, Cloneable, BnfFile

public class BnfFileImpl extends com.intellij.extapi.psi.PsiFileBase implements BnfFile
User: gregory Date: 13.07.11 Time: 23:55
See Also:
  • 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.pom.Navigatable

    EMPTY_NAVIGATABLE_ARRAY

    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

    Modifier and Type
    Method
    Description
    void
     
    @Nullable BnfAttr
    findAttribute(@Nullable BnfRule rule, @NotNull KnownAttribute<?> knownAttribute, @Nullable String match)
     
    <T> T
    findAttributeValue(@Nullable BnfRule rule, @NotNull KnownAttribute<T> knownAttribute, @Nullable String match)
     
    @NotNull List<BnfAttrs>
     
    @NotNull com.intellij.openapi.fileTypes.FileType
     
    @Nullable BnfRule
    getRule(@Nullable String ruleName)
     
    @NotNull List<BnfRule>
     
     

    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, 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, subtreeChanged, 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.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, navigationRequest

    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

    getContainingDirectory, getFileElementType, getModificationStamp, getNode, getOriginalFile, getParent, getPsiRoots, getViewProvider, getVirtualFile, subtreeChanged

    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 Details

    • BnfFileImpl

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

    • clearCaches

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

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

      @Nullable public @Nullable BnfRule getRule(@Nullable @Nullable String ruleName)
      Specified by:
      getRule in interface BnfFile
    • getAttributes

      @NotNull public @NotNull List<BnfAttrs> getAttributes()
      Specified by:
      getAttributes in interface BnfFile
    • findAttribute

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

      public <T> T findAttributeValue(@Nullable @Nullable BnfRule rule, @NotNull @NotNull KnownAttribute<T> knownAttribute, @Nullable @Nullable 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 String toString()
      Specified by:
      toString in interface com.intellij.psi.PsiElement
      Overrides:
      toString in class com.intellij.psi.impl.source.PsiFileImpl