io.sarl.lang.compiler
Interface IResourceTypeDetector
All Known Implementing Classes:
AbstractResourceTypeDetector, DefaultResourceTypeDetector
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or action reference.
interface IResourceTypeDetector
Detect the type of a folder.

A resource may be inside a standard source folder or a folder that is dedicated to test code. Detecting in which case a resource is is the purpose of this interface.

The way how a folder is detected as a test folder depends on the implementation.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
compiler
Since:
0.8
Action Summary
Modifier and type Action and description
abstract java.lang.Boolean isTestResource(Resource)
Replies the given resource is a test resource.
Action Details
isTestResource(Resource)
def isTestResource(Resource) : java.lang.Boolean
Replies the given resource is a test resource.
Parameters:
resource - the resource to test.
Returns:
TRUE if the resource is a test resource. FALSE if the resource is not a test resource. null if the detector cannot determine the type of the resource.