ILanguageDiscoveryRequest

public interface ILanguageDiscoveryRequest

Request for language discovery.

Methods

available

boolean available()

See also: .valid()

config

ILanguageComponentConfig config()

Gets the configuration of the language.

Returns:The configuration; or null when not available.

errors

Collection<String> errors()

Gets the errors produced during the creation of this request. The resulting collection is empty when valid() is true.

Returns:The produced error messages.

exceptions

Collection<Throwable> exceptions()

Gets the exceptions thrown during the creation of this request. The resulting collection is empty when valid() is true.

Returns:The thrown exceptions.

location

FileObject location()

Gets the location of the request.

Returns:The location of the request.

valid

boolean valid()

Gets whether the language component is available. A language component is available when all required files exist, such as the parse table and JAR files, and all configuration files are valid.

Returns:true when a request is available; otherwise, false.