IDialectIdentifier

public interface IDialectIdentifier

Interface for identifying the dialect of a resource.

Methods

identify

IdentifiedDialect identify(FileObject resource)

Attempts to identify the dialect of given resource.

Parameters:
  • resource – Resource to identify.
Throws:
Returns:

Identified dialect, or null if dialect could not be identified.

identify

boolean identify(FileObject resource, ILanguageImpl dialect)

Checks if given resource is of given dialect.

Parameters:
  • resource – Resource to check.
  • dialect – Dialect to check against.
Throws:
Returns:

True if resource is of given dialect, false otherwise.