Class SimpleFilePathExpression
- java.lang.Object
-
- org.eclipse.lemminx.extensions.filepath.SimpleFilePathExpression
-
- All Implemented Interfaces:
IFilePathExpression
- Direct Known Subclasses:
FilePathExpression
public class SimpleFilePathExpression extends Object implements IFilePathExpression
Basic implementation of theIFilePathExpression.
-
-
Constructor Summary
Constructors Constructor Description SimpleFilePathExpression()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanacceptFile(Path path)booleanacceptPath(Path path)Returns true if given file path is allowed for the file path completion and false otherwise.CharactergetSeparator()Returns the separator character (ex: ';') used to separate multiple files declaration (ex: file1.xml;file2.xml) and null otherwise.booleanmatch(Node node)Returns true if the given DOM node matches the file path expression and false otherwise.
-
-
-
Method Detail
-
match
public boolean match(Node node)
Description copied from interface:IFilePathExpressionReturns true if the given DOM node matches the file path expression and false otherwise.- Specified by:
matchin interfaceIFilePathExpression- Parameters:
node- the DOM node.- Returns:
- true if the given DOM node matches the file path expression and false otherwise.
-
getSeparator
public Character getSeparator()
Description copied from interface:IFilePathExpressionReturns the separator character (ex: ';') used to separate multiple files declaration (ex: file1.xml;file2.xml) and null otherwise.- Specified by:
getSeparatorin interfaceIFilePathExpression- Returns:
- the separator character (ex: ';') used to separate multiple files declaration (ex: file1.xml;file2.xml) and null otherwise.
-
acceptPath
public boolean acceptPath(Path path)
Description copied from interface:IFilePathExpressionReturns true if given file path is allowed for the file path completion and false otherwise.- Specified by:
acceptPathin interfaceIFilePathExpression- Parameters:
path- the file path.- Returns:
- true if given file path is allowed for the file path completion and false otherwise.
-
acceptFile
protected boolean acceptFile(Path path)
-
-