io.sarl.apputils.eclipseextensions.buildpath
Class SARLPathComparator
All Superinterfaces:
java.util.Comparator<T>
class SARLPathComparator
extends java.lang.Object
implements java.util.Comparator<T>
Comparator of paths according to the standard SARL project structure.

The order assumed by this comparator is based on:
Order index per category of resource
Category Subcategory Description Example
0 Regular code
0 SARL code .../src/main/sarl
20 Other code .../src/main/...
40 Resources .../src/main/resources
200 Unit tests
200 SARL tests .../src/test/sarl
220 Other tests .../src/test/...
240 Test resources .../src/test/resources
400 Integration tests
400 SARL integration tests .../src/it/sarl
420 Other integration tests .../src/it/...
440 Test integration resources .../src/it/resources
600 Generated code
600 Any generated code .../generated-sources/...
Maven Group Identifier:
io.sarl.apputils
Maven Artifact Identifier:
eclipseextensions
Since:
0.15
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
static int categorizes(IPath)
Replies the category of the given path according to the category table that is described in the document of this class.
int compare(IPath,IPath)
static SARLPathComparator getSingleton
Replies the singleton instance for this comparator.
Constructor Details
new
new
Action Details
categorizes(IPath)
def categorizes(IPath) : int
Replies the category of the given path according to the category table that is described in the document of this class.
Parameters:
path - the path to analyze. It must not be null.
Returns:
the category according to the category table.
compare(IPath,IPath)
def compare(IPath,IPath) : int
getSingleton
def getSingleton : SARLPathComparator
Replies the singleton instance for this comparator.
Returns:
the comparator, never null .