public class VirtualFilePattern extends TreeElementPattern<VirtualFile,VirtualFile,VirtualFilePattern>
ObjectPattern.Capture<T>
Constructor and Description |
---|
VirtualFilePattern() |
Modifier and Type | Method and Description |
---|---|
protected VirtualFile[] |
getChildren(VirtualFile file) |
protected VirtualFile |
getParent(VirtualFile t) |
VirtualFilePattern |
ofType(FileType type) |
VirtualFilePattern |
withExtension(java.lang.String... alternatives) |
VirtualFilePattern |
withExtension(java.lang.String extension) |
VirtualFilePattern |
withName(ElementPattern<java.lang.String> namePattern) |
VirtualFilePattern |
withName(java.lang.String name) |
VirtualFilePattern |
withPath(ElementPattern<java.lang.String> pathPattern) |
afterSibling, afterSiblingSkipping, inside, inside, inside, inside, insideSequence, isFirstAcceptedChild, withAncestor, withChild, withChildren, withFirstChild, withLastChild, withParent, withParent, withParents, withSuperParent, withSuperParent
public VirtualFilePattern ofType(FileType type)
public VirtualFilePattern withName(java.lang.String name)
public VirtualFilePattern withExtension(java.lang.String... alternatives)
public VirtualFilePattern withExtension(java.lang.String extension)
public VirtualFilePattern withName(ElementPattern<java.lang.String> namePattern)
public VirtualFilePattern withPath(ElementPattern<java.lang.String> pathPattern)
protected VirtualFile getParent(VirtualFile t)
getParent
in class TreeElementPattern<VirtualFile,VirtualFile,VirtualFilePattern>
protected VirtualFile[] getChildren(VirtualFile file)
getChildren
in class TreeElementPattern<VirtualFile,VirtualFile,VirtualFilePattern>