io.sarl.lang.compiler
Class AbstractResourceTypeDetector
All Superinterfaces:
IResourceTypeDetector
All Known Subclasses:
DefaultResourceTypeDetector
abstract class AbstractResourceTypeDetector
extends java.lang.Object
implements 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.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
compiler
Since:
0.8
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
protected static boolean isTestURI(URI,List<E>)
Replies if the given URI corresponds to a test resource.
Constructor Details
new
new
Action Details
isTestURI(URI,List<E>)
protected def isTestURI(URI,List<E>) : boolean
Replies if the given URI corresponds to a test resource.
Parameters:
uri - the uri to test against the test folder name.
testFolderName - the name of the test folder.
Returns:
true if the URI is for a test resource.